:root {
    --bg-dark-1: #292929;
    --bg-dark-2: #3b3b3b;
    --bg-dark-grey: #404040;
    --bg-footer: #222222;
    --primary-purple: #6632e7;
    --primary-purple-hover: #711ff0;
    --light-purple: #977cff;
    --blue-accent: #0986c0;
    --cyan-accent: #00d2ff;
    --text-light: #ffffff;
    --text-muted: #c4c4c4;
    --text-dark: #3b3b3b;
    --font-body: 'Sora', sans-serif;
    --font-display: 'Nothing You Could Do', cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utils */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.mt-0 {
    margin-top: 0;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.pt-0 {
    padding-top: 0;
}

.pt-2 {
    padding-top: 1rem;
}

.pt-3 {
    padding-top: 1.5rem;
}

.pt-4 {
    padding-top: 2rem;
}

.pt-5 {
    padding-top: 4rem;
}

.pb-0 {
    padding-bottom: 0;
}

.pb-2 {
    padding-bottom: 1rem;
}

.pb-3 {
    padding-bottom: 1.5rem;
}

.pb-4 {
    padding-bottom: 2rem;
}

.pb-5 {
    padding-bottom: 4rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.position-relative {
    position: relative;
}

.d-block {
    display: block;
}

.d-inline-block {
    display: inline-block;
}

.purple-text {
    color: var(--primary-purple);
    font-weight: 600;
}

.text-blue {
    color: var(--cyan-accent);
}

.italic-bold {
    font-weight: 700;
    font-style: italic;
    font-size: 1rem;
}

.text-white {
    color: #ffffff !important;
}

/* Header / Hero */
.header {
    height: 100vh;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--text-light);
    overflow: hidden;
}

/* JS Parallax target */
.hero-bg-parallax {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 150%;
    background-image: url('../images/background-orlando-scaled.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(30, 30, 30, 0.2), rgba(10, 10, 10, 0.45));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding-top: 60px;
}

.logo {
    max-width: 280px;
    margin: 0 auto 2rem;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.3;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-subtitle-desktop {
    white-space: nowrap;
}

.hero-desc {
    font-size: 1rem;
    color: #eaeaea;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.microcopy {
    font-size: 0.8rem;
    color: #ddd;
    display: block;
    margin-top: 8px;
}

/* Divider Architecture */
.section-relative {
    position: relative;
}

.divider-bottom-anchor {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    height: 130px;
    width: auto;
    max-width: none;
    pointer-events: none;
    z-index: 10;
}

.divider-top-anchor {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 130px;
    width: auto;
    max-width: none;
    pointer-events: none;
    z-index: 10;
}

/* Section Header Typography */
.section-header {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.background-text {
    font-family: var(--font-display);
    font-size: 5rem;
    color: rgba(200, 200, 200, 0.2);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
    letter-spacing: 0.5rem;
}

.main-heading {
    position: relative;
    z-index: 2;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #000;
}

.main-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--primary-purple);
    margin: 10px auto 0;
}

.dark-mode-text .main-heading {
    color: var(--text-light);
}

.dark-mode-text .background-text {
    color: rgba(255, 255, 255, 0.05);
}

/* Video Section */
.video-wrap {
    max-width: 800px;
    margin: 0 auto 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-wrap video {
    width: 100%;
    height: auto;
    display: block;
}

.video-section-text {
    font-size: 1.4rem;
    line-height: 1.5;
    font-weight: 600;
    max-width: 800px;
    margin: 0 auto;
}

.expertos-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 750px;
    margin: 0 auto;
    text-align: left;
    gap: 1.5rem;
}

.best-of-img {
    max-width: 90px;
    flex-shrink: 0;
}

.expertos-desc {
    font-size: 0.8rem;
    color: #666;
}

.logos-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 1.5rem auto 0;
}

/* Tu Viaje Perfecto */

.mano-celular-wrap {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.mano-celular-img {
    max-width: 600px;
    /* Reducido de 800px para un look más compacto en desktop */
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.ia-subline {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
}

/* Columnas de Planificación y Durante */
.servicio-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    margin-top: 1rem;
}

.servicio-col {
    text-align: center;
}

.servicio-col img {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
}

.servicio-col-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 0.8rem;
}

.servicio-col p {
    font-size: 0.77rem;
    margin-bottom: 0.8rem;
    color: #444;
}

/* Imagen Intermedia Ultrawide */
.img-intermedia-ultrawide {
    width: 100%;
    /* Spans exactly 100% of the unbound section */
}

.img-ultrawide {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Pastillas */
.pastillas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.pastilla-card {
    background: #f1f2f6;
    /* Se mantiene el gris suave original */
    padding: 1.5rem 1rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--cyan-accent);
}

.pastilla-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.8rem;
    fill: var(--primary-purple);
}

.pastilla-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
}

.pastilla-text {
    font-size: 0.77rem;
    color: #666;
}

/* Testimonios */
.bg-dark-section {
    background-color: var(--bg-dark-grey);
    color: var(--text-light);
}

.testimonios-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.testimonio-col {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 100px;
}

.testimonio-img-wrap img {
    border-radius: 50%;
    width: 130px;
    height: 130px;
    object-fit: cover;
    flex-shrink: 0;
    /* Previene compresión destructiva en flex */
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    margin: 0 auto 0.5rem;
}

.familia-nombre {
    font-size: 0.75rem;
    color: #aaaaaa;
    line-height: 1.2;
}

.cientos-familias {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.estrellas {
    color: #FFD700;
    font-size: 1.8rem;
    letter-spacing: 2px;
}

/* Quotes Carousel */
.quotes-carousel {
    position: relative;
    height: 45px;
    /* Soporta hasta 2 lineas cómodas en desktop si la frase es larga */
    max-width: 600px;
    /* Ancho de lectura óptimo, evita que sea un renglón infinito */
}

@media (max-width: 767px) {
    .quotes-carousel {
        height: 75px;
        /* Extra caja para mobile por si requiere 3 líneas */
    }
}

.quote-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 1s ease, transform 1s ease;
    font-size: 0.85rem;
    font-style: italic;
    color: #FFD700;
    text-align: center;
    pointer-events: none;
    line-height: 1.4;
    padding: 0 10px;
}

.quote-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hola */
.nosotros-img {
    width: 170px;
    height: auto;
    border-radius: 10px;
}

.about-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    font-size: 0.85rem;
    text-align: center;
}

/* Contacto / CTA */
.cta-heading-strong {
    font-family: var(--font-display);
    font-size: 2.8rem;
    color: var(--primary-purple);
    letter-spacing: 0;
    line-height: 1.2;
}

.cta-bar {
    background-color: transparent;
    color: var(--primary-purple);
    padding: 0;
    font-size: 1.1rem;
    font-weight: 500;
    font-style: italic;
    max-width: 750px;
    margin: 0 auto 1rem;
    line-height: 1.6;
}

/* Buttons */
.btn-whatsapp-large {
    background-color: #25D366;
    color: white;
    padding: 12px 25px;
    border-radius: 40px;
    font-size: 1.1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    justify-content: center;
}

.btn-whatsapp-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.wa-icon {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}

/* Footer */
.footer {
    background-color: var(--bg-footer);
    color: #999;
}

.footer-text-small {
    font-size: 0.65rem;
    color: #999;
    word-wrap: break-word;
}

.footer-text-small a {
    word-wrap: break-word;
}

/* Floating WhatsApp Button */
.floating-whatsapp-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wa-tooltip {
    background: #fff;
    color: #333;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.floating-whatsapp {
    width: 55px;
    height: 55px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(37, 211, 102, 0.6);
    }

    70% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 15px rgba(37, 211, 102, 0);
    }

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

.floating-whatsapp:hover {
    transform: scale(1.1);
}

.whatsapp-ico {
    width: 30px;
    height: 30px;
    fill: #ffffff;
}

/* Responsive Constraints */
@media (min-width: 768px) {
    .hide-desktop {
        display: none !important;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .background-text {
        font-size: 7rem;
    }

    .main-heading {
        font-size: 2.2rem;
    }

    .about-flex {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .about-text {
        margin-top: 0;
        padding-left: 2rem;
        text-align: left;
    }

    .expertos-flex {
        flex-direction: row;
        text-align: left;
    }

    .testimonios-row {
        flex-wrap: nowrap;
        gap: 0.5rem;
        justify-content: center;
        width: 100%;
        max-width: 1100px;
        margin-left: auto;
        margin-right: auto;
    }

    .cta-heading-strong {
        font-size: 3.8rem;
    }
}

@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }

    .divider-bottom-anchor,
    .divider-top-anchor {
        width: 100vw;
        height: 130px;
        object-fit: cover;
    }

    /* Solves overflow clipping without drastic gaps */
    .header {
        height: auto;
        min-height: 100vh;
        padding-top: 20px;
    }

    /* 1. Header Padding for Divider Clearance */
    .hero-content {
        padding-top: 20px;
        padding-bottom: 35px;
        /* Safe space to avoid divider overlap on text bottom margin */
    }

    .hero-title {
        font-size: 2.0rem;
        padding: 0 10px;
    }

    .hero-subtitle-desktop {
        white-space: normal;
        line-height: 1.4;
    }

    /* 2. Compact Vertical Rhythm for Pastillas & Columns */
    .pastillas-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        /* Mas compacto verticalmente */
    }

    .pastilla-card {
        padding: 1rem 0.8rem;
        /* Cajas mas chatas */
    }

    .pastilla-icon {
        margin-bottom: 0.3rem;
    }

    .servicio-cols {
        grid-template-columns: 1fr;
        padding: 0 10px;
        gap: 1.5rem;
        /* Reducción a la mitad del gap */
    }

    .servicio-col p {
        margin-bottom: 0.4rem;
        /* Mas chatos los textos */
    }

    /* 3. Strict Geometric Lock for Testimonials (Exactly 2 rows of 3, no squash) */
    .testimonios-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        padding: 0 5px;
    }

    .testimonio-col {
        min-width: 0;
        /* Reset flex artifacts inside grid */
    }

    .testimonio-img-wrap img {
        width: 85px;
        /* Calculado milimetricamente para q entren 3 en <350px width */
        height: 85px;
        object-fit: cover;
    }

    .familia-nombre {
        font-size: 0.65rem;
        /* Ajustadopara no quebrar lineas forzosamente en 3 cols */
    }

    .expertos-flex {
        flex-direction: column;
        text-align: center;
    }

    .wa-tooltip {
        display: none;
    }

    .logos-img {
        max-width: 100%;
        padding: 0 15px;
    }

    /* Forzar "Crop" de la imagen apaisada para que no quede como una franja tan estrecha */
    .img-ultrawide {
        height: 250px;
        /* Aumenta el alto relativo */
        object-fit: cover;
        /* Cropea inteligentemente los lados perdiendo ancho sin deformar */
        object-position: center center;
        /* Mantiene el foco en el medio donde esta la persona */
    }

    .nosotros-img {
        margin-bottom: 1.5rem;
        /* Evita que la foto pegue contra el primer parrafo biográfico en vertical */
    }
}