/* ============================
   HERO BASE
============================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding: 80px 0;
    overflow: hidden;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

/* Background */
.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../img/bg1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

/* Color corporativo MLF overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(136, 0, 154, 0.78);
    z-index: -1;
}

/* ============================
   STUDIOS-STYLE ANIMATIONS
============================ */

/* Entrada suave desde abajo */
.fade-up {
    opacity: 0;
    animation: fadeUp 1.2s ease forwards;
}

@keyframes fadeUp {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Entrada retardada */
.fade-up-delay {
    opacity: 0;
    animation: fadeUp 1.4s ease forwards;
    animation-delay: 0.35s;
}

/* Imagen flotante */
.hero-agenda {
    max-width: 650px;
    opacity: 1 !important;
    animation: floatY 5s ease-in-out infinite;
    position: relative;
    z-index: 3 !important;
    visibility: visible !important;
    object-fit: contain;
}

@keyframes floatY {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0);
    }
}

/* ============================
   WHATSAPP BUTTON ANIMATION
============================ */
.btn-whatsapp-pulse {
    animation: pulseGlow 2s infinite ease-in-out;
    position: relative;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 0 25px rgba(37, 211, 102, 0.9);
    }

    100% {
        box-shadow: 0 0 0px rgba(37, 211, 102, 0.4);
    }
}

/* Vibración suave al hover */
.btn-whatsapp-pulse:hover {
    animation: vibrate .3s linear infinite;
}

@keyframes vibrate {
    0% {
        transform: translate(0);
    }

    25% {
        transform: translate(1px, -1px);
    }

    50% {
        transform: translate(-1px, 1px);
    }

    75% {
        transform: translate(1px, 1px);
    }

    100% {
        transform: translate(0);
    }
}

/* ============================
   LOGO MLF
============================ */

.mlf-logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
}

.mlf-logo i {
    color: #fff;
    font-size: 1.6rem;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    opacity: 0.8;
    color: #fff;
    animation: fadeUp 1.5s ease forwards;
}

.scroll-indicator i {
    font-size: 1.5rem;
    animation: bounceDown 1.7s infinite;
}

@keyframes bounceDown {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }

    100% {
        transform: translateY(0);
    }
}

.review-card {
    transition: transform .2s ease, box-shadow .2s ease;
    border: 1px solid #f0f0f0;
}

.review-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0px 12px 35px rgba(0, 0, 0, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.review-stars {
    color: #f4b400; /* Color estilo Google */
    font-size: 1.1rem;
    letter-spacing: 2px;
    animation: starPulse 2.2s infinite ease-in-out;
}

@keyframes starPulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .9;
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

#testimonios h2 {
    font-weight: 800;
}

#testimonios .review-card p {
    line-height: 1.45;
}

/* ============================================
   FOOTER ESTILO PREMIUM MLF
============================================ */

.footer-mLF {
    background: #52006A;
    /* tono elegante acorde al overlay */
    position: relative;
    overflow: hidden;
}

/* Brillo diagonal suave */
.footer-mLF::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -30%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at top right,
            rgba(255, 255, 255, 0.09) 0%,
            transparent 50%);
    z-index: 0;
}

.footer-mLF .container {
    position: relative;
    z-index: 2;
}

/* === ICONOS DE REDES === */
.footer-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .25s;
    color: #fff;
}

.footer-icon.facebook {
    background: #1877F2;
}

.footer-icon.instagram {
    background: #E1306C;
}

.footer-icon.tiktok {
    background: #000;
    border: 1px solid #fff;
}

.footer-icon.youtube {
    background: #FF0000;
}

/* Hover */
.footer-icon:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

/* === BOTÓN WHATSAPP CTA === */
.btn-whatsapp-cta {
    background: #25D366;
    color: #fff;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 40px;
    transition: .3s;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Pulso suave */
.btn-whatsapp-cta {
    animation: pulseWhats 2s infinite ease-in-out;
}

@keyframes pulseWhats {
    0% {
        box-shadow: 0 0 0 rgba(37, 211, 102, 0.3);
    }

    50% {
        box-shadow: 0 0 25px rgba(37, 211, 102, 0.8);
    }

    100% {
        box-shadow: 0 0 0 rgba(37, 211, 102, 0.3);
    }
}

/* Hover */
.btn-whatsapp-cta:hover {
    transform: translateY(-3px);
    background: #1ebe5a;
}

/* Quitar guiones/subrayado debajo de íconos */
.footer-social a,
.footer-social a:link,
.footer-social a:visited {
    text-decoration: none !important;
}

#faq h2 {
    font-weight: 800;
}

.accordion-button {
    font-weight: 600;
    font-size: 1.05rem;
}

.accordion-button:not(.collapsed) {
    background-color: #f8edf9;
    color: #52006A;
    box-shadow: none;
}

.accordion-item {
    border: none;
    margin-bottom: 10px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.accordion-button:focus {
    box-shadow: none;
}


/* ------------------------------
   TÍTULOS DE CATEGORÍA
--------------------------------*/
.title-category {
    color: #A16C83;
    letter-spacing: 1px;
}

.divider-category {
    border: none;
    height: 2px;
    background: #A16C83;
    opacity: .4;
}

/* ===========================
   SECCIÓN MODELO PREMIUM
=========================== */

.modelo-section {
    padding: 80px 0;
    position: relative;
}

/* Tag */
.modelo-tag {
    background: #A16C83;
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Título */
.modelo-title {
    font-size: 2.2rem;
    margin-top: 15px;
    color: #3c003d;
    font-weight: 800;
}

/* Descripción */
.modelo-desc {
    margin: 15px 0;
    color: #444;
    font-size: 1.05rem;
}

/* Lista */
.modelo-list li {
    margin-bottom: 6px;
    color: #555;
    font-size: 0.95rem;
}

/* Precio */
.modelo-precio {
    display: inline-block;
    background: #F4DCE8;
    color: #A16C83;
    font-size: 1.5rem;
    padding: 10px 20px;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: 800;
}

.modelo-size {
    margin-top: 8px;
    color: #555;
    font-weight: 600;
}

/* Imagen */
.modelo-img-container {
    position: relative;
    perspective: 1000px;
}

.modelo-img {
    width: 90%;
    max-width: 650px;
    animation: fadeSlide 1.2s ease forwards;
    opacity: 0;
    transform: translateY(40px);
    transition: transform .2s ease-out;
}


.modelo-img-container .modelo-img {
    width: 90%;
    max-width: 650px;
    animation: fadeSlide 1.2s ease forwards;
    opacity: 0;
    transform: translateY(40px);
    transition: transform .2s ease-out;
}

/* Efecto entrada */
@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade-out al hacer scroll */
.fade-out {
    opacity: 0 !important;
    transition: opacity .6s ease;
}

.modelo-img-container {
    overflow: visible;
    transform-style: preserve-3d;
}

.scroll-fade {
    transition: opacity .8s ease;
}

.scroll-fade.fade-out {
    opacity: 0 !important;
}

.zoom-modal-img {
    max-width: 100%;
    border-radius: 10px;
    animation: zoomIn .4s ease;
}

@keyframes zoomIn {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Fondo oscuro más suave */
.modal-backdrop.show {
    background-color: rgba(0, 0, 0, 0.93) !important;
}

.zoom-trigger {
    cursor: zoom-in !important;
    transition: transform .25s ease;
}

.zoom-trigger:hover {
    transform: scale(1.02);
    opacity: 0.95;
}

.zoom-hint {
    font-size: 0.85rem;
    color: #555;
    opacity: 0.7;
    transition: .3s ease;
    cursor: pointer;
}

.zoom-hint:hover {
    opacity: 1;
    color: #A16C83;
}

/* Animación suave flotante */
.float-hero {
    animation: floatUpDown 2.5s ease-in-out infinite;
}

@keyframes floatUpDown {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0);
    }
}

.hero-section .modelo-img {
    opacity: 1 !important;
    transform: translateY(0) !important;
    animation: floatUpDown 4.5s ease-in-out infinite !important;
}

.banner-top {
    position: sticky;
    top: 0;
    width: 100%;
    background: linear-gradient(90deg, #6A008E, #B300FF);
    color: #fff;
    padding: 12px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    z-index: 9999;
    animation: bannerSlide 0.9s ease-out forwards;
    left: 0 !important;
    right: 0 !important;
    overflow-x: hidden !important;
    max-width: 100% !important;
}

/* Entrada suave desde arriba */
@keyframes bannerSlide {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.banner-text {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.banner-icon {
    font-size: 1.4rem;
    animation: sparkle 2s infinite ease-in-out;
}

/* Efecto brillante */
@keyframes sparkle {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* BOTÓN DESCARGA */
.btn-banner-download {
    background: #e60000;
    color: #fff;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: .3s ease;
    animation: glow 2.2s infinite ease-in-out;
}

/* Brillo tipo WhatsApp */
@keyframes glow {
    0% {
        box-shadow: 0 0 0px rgba(255, 13, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.9);
    }

    100% {
        box-shadow: 0 0 0px rgba(255, 0, 0, 0.3);
    }
}

.btn-banner-download:hover {
    background: #c90000;
    transform: translateY(-2px);
}

/* RESPONSIVE */
@media(max-width: 768px) {
    .banner-top .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* =====================================
   BURBUJA FLOTANTE WHATSAPP
====================================== */
.whatsapp-bubble {
    position: fixed;
    right: 22px;
    bottom: 28px;
    width: 65px;
    height: 65px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none !important;
    z-index: 99999;
    box-shadow: 0px 0px 18px rgba(0, 0, 0, 0.25);
    animation: pulseWhats 1.8s infinite ease-in-out;
    transition: .3s ease;
}

/* ÍCONO */
.whatsapp-bubble i {
    margin-left: 2px;
}

/* Hover */
.whatsapp-bubble:hover {
    transform: scale(1.12);
    background: #1ebe5a;
}

/* PULSO */
@keyframes pulseWhats {
    0%   { box-shadow: 0 0 0px rgba(37, 211, 102, 0.4); }
    50%  { box-shadow: 0 0 25px rgba(37, 211, 102, 0.9); }
    100% { box-shadow: 0 0 0px rgba(37, 211, 102, 0.4); }
}

/* MENSAJE EMERGENTE */
.bubble-message {
    position: absolute;
    right: 75px;
    bottom: 8px;
    background: #fff;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    color: #333;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateX(10px);
    transition: .35s ease;
    pointer-events: none;
    font-weight: 600;
}

/* Mostrar mensaje al hover */
.whatsapp-bubble:hover .bubble-message {
    opacity: 1;
    transform: translateX(0);
}

/* Burbuja tipo "habla" */
.bubble-message::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 6px solid #fff;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

/* RESPONSIVE */
@media(max-width: 768px) {
    .bubble-message {
        display: none;
    }
}

/* ===============================
   WHATSAPP FLOAT BUTTON + BURBUJA (FIXED)
================================ */

.whatsapp-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* BURBUJA */
.whatsapp-bubble {
    background: #ffffff;
    color: #333;
    padding: 12px 16px;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
    margin-bottom: 10px;
    font-size: 0.95rem;
    max-width: 220px;
    width: max-content;
    opacity: 0;
    transform: translateY(8px);
    transition: all .4s ease;
    pointer-events: none;
    position: relative;
    text-align: left;
    line-height: 1.3;
}

/* Triangulito estilo WhatsApp */
.whatsapp-bubble::after {
    content: "";
    position: absolute;
    bottom: -6px;
    right: 22px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    transform: rotate(45deg);
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

/* Mostrar */
.whatsapp-bubble.show {
    opacity: 1;
    transform: translateY(0);
}

/* Animación typing */
.typing-animation {
    margin-top: 6px;
    display: flex;
    align-items: center;
}

.typing-animation span {
    width: 6px;
    height: 6px;
    background: #25d366;
    border-radius: 50%;
    margin-right: 4px;
    opacity: 0.4;
    animation: blink 1.4s infinite ease-in-out;
}

.typing-animation span:nth-child(2) {
    animation-delay: .2s;
}

.typing-animation span:nth-child(3) {
    animation-delay: .4s;
}

@keyframes blink {
    0% {
        opacity: .3;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-2px);
    }

    100% {
        opacity: .3;
        transform: translateY(0);
    }
}

/* BOTÓN FLOTANTE */
.whatsapp-float {
    background: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    display: flex;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.6);
    animation: pulseWhats2 2s infinite ease-in-out;
    transition: .3s;
}

@keyframes pulseWhats2 {
    0% {
        box-shadow: 0 0 0 rgba(37, 211, 102, 0.5);
    }

    50% {
        box-shadow: 0 0 25px rgba(37, 211, 102, 1);
    }

    100% {
        box-shadow: 0 0 0 rgba(37, 211, 102, 0.5);
    }
}

.whatsapp-float:hover {
    transform: scale(1.08);
}

.whatsapp-float,
.whatsapp-float *,
.whatsapp-float:before,
.whatsapp-float:after {
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none;
}

/* ===== Responsive Fix para el Chat Flotante ===== */
@media (max-width: 576px) {

    /* Reducir tamaño del tooltip */
    .chat-bubble {
        position: fixed;
        bottom: 95px;
        /* SIEMPRE justo encima del botón */
        right: 20px;
        /* ALINEADA CON EL BOTÓN */
        max-width: 240px;
        background: #fff;
        border-radius: 15px;
        padding: 12px 16px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        z-index: 9998;
    }

    /* Asegurar que no se corte */
    .chat-bubble p {
        font-size: 0.85rem !important;
        line-height: 1.25 !important;
        white-space: normal !important;
    }

    /* Botón flotante más pequeño */
    .whatsapp-float {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 65px;
        height: 65px;
        background: #25D366;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999;
    }

    .whatsapp-float i {
        font-size: 28px !important;
    }
}

@media (max-width: 576px) {

    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
    }

    .chat-bubble {
        bottom: 85px !important;
        /* más arriba para móviles */
        right: 15px !important;
        /* pegada al botón */
        max-width: 180px !important;
        font-size: 0.85rem !important;
    }
}

/* === Ajuste del HERO para pantallas móviles === */
@media (max-width: 768px) {

    .hero-agenda {
        max-width: 100% !important;
        /* Reduce tamaño */
        margin: 0 auto;
        /* Centrar */
        display: block;
        transform: translateY(0);
        /* Sin flotación agresiva */
        animation: floatY 4s ease-in-out infinite;
    }
}

/* Más pequeño aún (celulares chicos) */
@media (max-width: 480px) {

    .hero-agenda {
        max-width: 100% !important;
        /* Se ajusta aún mejor */
        margin-top: 20px;
    }
}
