@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

main {
    transform: translateZ(0);
}
:root {
    --primary-color: #693CEE;
    --deep-purple: #39227F;
    --text-color: #39227F;
    --background-color: #FFFFFF;
    --bone-color: #F9F8F4;
    --font-family: 'Inter', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-family); background-color: var(--background-color); color: var(--text-color); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }


.main-header { 
    position: sticky; 
    top: 30px;
    z-index: 1000; 
    transition: top 0.3s ease-in-out; 
}
.main-header.scrolled { top: 20px; }
.navbar {
    position: relative; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 1280px;
    margin: 20px auto; 
    background-color: var(--bone-color); 
    border-radius: 16px; 
    padding: 16px 24px; 
    border: 1px solid #EAEAEA;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.navbar-logo img { height: 60px; display: block; }
.navbar-content {
    display: flex; 
    align-items: center; 
    gap: 40px;
}
.navbar-menu { display: flex; gap: 40px; }
.navbar-link { font-size: 16px; font-weight: 500; }

.navbar-link:hover {
    color: var(--primary-color); 
}


.navbar-link:active {
    transform: scale(0.95);
    opacity: 0.8;
}
.btn {
    
    padding: 18px 22px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    border: none;
    
   
    display: inline-flex;    
    align-items: center;     
    justify-content: center; 
    gap: 8px;               
    text-decoration: none;   
}


.btn-icon {
    width: 20px;   
    height: 20px;
    display: block; 
    object-fit: contain;
    flex-shrink: 0; 
}


.btn span {
    line-height: 1; 
    position: relative;
    top: 1px; 
}


.btn-primary { 
    background-color: var(--primary-color); 
    color: white; 
}

.btn-primary:hover,
.btn-primary:active {
    background-color: var(--deep-purple);
}


.navbar-toggle { display: none; cursor: pointer; }
.navbar-toggle span {
    display: block; width: 25px; height: 3px; background-color: var(--text-color);
    margin: 5px 0; transition: all 0.3s ease-in-out;
}
.navbar-toggle.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.navbar-toggle.is-active span:nth-child(2) { opacity: 0; }
.navbar-toggle.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }



@media (max-width: 1024px) {
    .main-header { top: 0; padding: 0 16px; }
    .navbar { margin: 16px 0; }
    .navbar-toggle { display: block; }
    
    
    .navbar-content {
        display: none;
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background-color: var(--bone-color);
        padding: 32px;
        margin-top: 16px; 
        border-radius: 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }
    .navbar-content.is-active {
        display: flex; 
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    .navbar-menu {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        width: 70%;
    }
}


/* ============================================= */
/* ========= ESTILOS COMPLETOS: HOME ======== */
/* ============================================= */


.hero-section {
    background-color: #040404;
    color: var(--background-color);
    position: relative;
    overflow: hidden;
    margin-top: -140px; 
    padding-top: 160px;
    padding-bottom: 0; 
}


@media (max-width: 1024px) {
    .hero-section .container {
        padding-left: 40px;
        padding-right: 40px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.hero-section .container {
    display: flex;
    align-items: stretch; 
    gap: 10px;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-bottom: 80px; 
}

.hero-title {
    
    font-size: clamp(36px, 5vw, 46px);

    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-title span {
    color: var(--background-color);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500; 
}

.hero-description {
    
    font-size: clamp(16px, 2vw, 18px);

    line-height: 1.6;
    margin: 24px 0 32px;
    max-width: 500px;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-content .btn-icon {
    width: 16px;
}

.hero-image-wrapper {
    flex: 1;
    min-width: 0;
    position: relative; 
    display: flex;
    justify-content: center;
    align-items: flex-end; 
}


.hero-image-wrapper::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    
    background: radial-gradient(
        ellipse 60% 85%,
        rgba(255, 220, 50, 0.45) 0%, 
        rgba(255, 220, 50, 0) 80%
    );
    
    filter: blur(80px);
}


.hero-image-wrapper img {
    max-width: 85%;
    height: auto;
    border-radius: 24px 24px 0 0;
    position: relative; 
    z-index: 2;
    display: block;
}

.hero-background-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('Imagenes/hero-waves.webp'); /* <-- Llama al archivo */
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 1;
    object-position: bottom;
}



@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-title {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-description {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-content .btn {
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.hero-image-wrapper {
    animation: fadeIn 1.2s ease-in forwards;
}



@media (max-width: 540px) {
    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-bottom: 0; 
        align-items: center; 
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image-wrapper {
        text-align: center;
        margin-top: 40px;
        width: 100%;
        height: 400px;
    }

    .hero-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 20%;
    }
}



/* ================================================= */
/* ========= VIDEO REVEAL SECTION (APPLE STYLE) ==== */
/* ================================================= */

.video-reveal-section {
    width: 100%;
    height: auto; 
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #050507;
    padding: 30px 24px; 
    scroll-snap-align: start;
    overflow: hidden;
    position: relative; 
}


.video-reveal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    
    background-image: url('Imagenes/waves_video.webp'); 
    background-size: cover;
    background-position: center;
    
    
    opacity: 0.6; 
    z-index: 0; 
    pointer-events: none; 
}


.video-wrapper {
    width: 90%; 
    max-width: 1200px; 
    aspect-ratio: 16 / 9; 
    height: auto; 
    position: relative;
    
 
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform: scale(1.15) translateY(40px); 
    opacity: 0.5; 
  
    border-radius: 4px;
    z-index: 2;
}


.video-wrapper.in-view {
    transform: scale(1) translateY(0); 
    opacity: 1; 
    
    
    border-radius: 24px; 
    
    
    border: 1px solid rgba(255, 255, 255, 0.1);
    
   
    box-shadow: 
        0 20px 50px -10px rgba(0, 0, 0, 0.8), 
        0 0 0 1px rgba(0, 0, 0, 1); 
        
    overflow: hidden; 
}


#main-brand-video {
    width: 100%;
    height: 100%;
    
   
    object-fit: cover; 
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.4));
    
   
    pointer-events: none; 
    
    z-index: 2; 
    border-radius: 24px; 
}


#main-brand-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer; 
    z-index: 1;
}


video::-webkit-media-controls-panel {
    background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.5)); 
}


@media (max-width: 768px) {
    .video-reveal-section {
        padding: 18px 16px;
    }
}



/* =================================================== */
/* ========= ESTILOS DE LA SECCIÓN SERVICES ======== */
/* =================================================== */

.services-section { padding: 40px 40px; background-color: var(--background-color); }

.section-title { font-size: clamp(36px, 4vw, 38px); font-weight: 700; color: var(--primary-color); text-align: center; margin-bottom: 48px; }

.section-title span { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 500; color: var(--text-color); }

.slider-wrapper { position: relative; display: flex; align-items: center; }

.slider-btn {
    position: absolute; z-index: 10; background-color: var(--primary-color);
    border-radius: 50%; width: 48px; height: 48px; display: flex;
    align-items: center; justify-content: center; cursor: pointer; border: none;
    transition: all 0.3s ease;
}

.slider-btn:hover { background-color: var(--deep-purple); }

.prev-btn { left: -24px; }
.next-btn { right: -24px; }

.services-container {
    display: flex; gap: 24px; 
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth; padding: 24px; margin: 0 -24px;
    scroll-snap-type: x mandatory; 
}

.services-container::-webkit-scrollbar { display: none; }
.services-container { -ms-overflow-style: none; scrollbar-width: none; }

.service-card {
    flex: 0 0 calc((100% / 3) - 24px);
    background-color: var(--bone-color);
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    scroll-snap-align: center; 
    opacity: 0; 
    transform: translateY(40px); 
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; 
}

.service-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:nth-child(2) { transition-delay: 0.10s; }
.service-card:nth-child(3) { transition-delay: 0.2s; }
.service-card:nth-child(4) { transition-delay: 0.3s; }
.service-card:nth-child(5) { transition-delay: 0.4s; }
.service-card:nth-child(6) { transition-delay: 0.50s; }

.card-icon-wrapper {
    width: 64px; height: 64px; border-radius: 50%; background-color: var(--primary-color);
    display: flex; justify-content: center; align-items: center; margin: 0 auto 24px;
}

.card-title { font-size: clamp(20px, 2.5vw, 24px); color: var(--primary-color); margin-bottom: 16px; }

.card-description { font-size: clamp(14px, 1.8vw, 16px); line-height: 1.6; }


@media (max-width: 1000px) {
    .service-card { flex-basis: calc((100% / 2) - 16px); }
}

@media (max-width: 768px) {
    .service-card { flex-basis: 80%; }
}

/* =================================================== */
/* ========= ESTILOS DE LA SECCIÓN "ENGINE" == */
/* =================================================== */

.engine-section {
    background: linear-gradient(to right, #080C1D, #171716);
    color: var(--background-color);
    
   
    padding: 0; 
    
    
    min-height: 600px; 
    
    position: relative;
    overflow: hidden;
    
    
    display: flex;
    align-items: center;
}


.engine-background-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    z-index: 1;
    background-image: url('Imagenes/about-waves.webp');
    background-size: cover;
    background-position: center;
    pointer-events: none;
}


.engine-section .container {
    position: relative;
    z-index: 2;
    width: 100%;
    align-self: stretch; 
    
    display: flex;
    align-items: stretch; 
    
    gap: 80px;
}


.engine-image-wrapper {
    flex: 1; 
    position: relative;

    background: radial-gradient(circle at center, rgba(255, 220, 100, 0.6) 0%, rgba(0, 0, 0, 0) 66%);
    
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    overflow: hidden;
}

.engine-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; 
    display: block;
}


.engine-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; 
    
    padding: 100px 0; 
}


.engine-section .section-title {
    text-align: left;
    margin-bottom: 24px;
    font-size: clamp(36px, 4vw, 48px);
}
.engine-section .section-title span {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
}
.engine-section .section-description {
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.6;
    margin-bottom: 32px;
}


@media (max-width: 1024px) {
    .engine-section {
        padding: 0; 
        align-items: flex-start;
        height: auto;
        min-height: auto;
    }
    
    .engine-section .container {
        flex-direction: column-reverse; 
        gap: 0;
        align-items: center;
    }
    
    .engine-image-wrapper {
        width: 100%;
        height: 400px; 
        border-radius: 0;
        border-bottom-left-radius: 30px;
        border-bottom-right-radius: 30px;
        flex: none;
    }
    
    .engine-content {
        width: 100%;
        padding: 60px 24px; 
        align-items: center;
        text-align: center;
    }

    .engine-section .section-title {
        text-align: center;
    }
}



/* ======================================================= */
/* ========= TESTIMONIALS CAROUSEL (PREMIUM) =========== */
/* ======================================================= */

.testimonials-section {
    padding: 45px 40px;
    background-color: var(--background-color);
    overflow: hidden; 
}


.testimonials-slider-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 40px 0; 

    mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
}


.testimonials-track {
    display: flex;
    gap: 0; 
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); 
    will-change: transform;
    cursor: grab;
}


.testimonial-card {
    
    flex: 0 0 400px; 
    max-width: 400px;
    margin: 0 20px; 
    
    background-color: var(--bone-color);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    
   
    opacity: 0.5;
    transform: scale(0.85);
    filter: blur(1px); 
    transition: all 0.6s ease;
    
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.testimonial-card.active {
    opacity: 1;
    transform: scale(1.1); 
    filter: blur(0);
    box-shadow: 0 20px 60px rgba(105, 60, 238, 0.15); 
    z-index: 2; 
    border: 1px solid rgba(105, 60, 238, 0.1);
}


.testimonial-header {
    display: flex; align-items: center; gap: 16px; margin-bottom: 12px;
}
.testimonial-avatar {
    width: 50px; height: 50px; border-radius: 50%; object-fit: cover;
}
.testimonial-author {
    font-size: 16px; color: var(--primary-color); margin: 0;
}
.testimonial-rating span { color: #FFD700; font-size: 14px; letter-spacing: 2px; }
.testimonial-quote {
    font-size: 14px; line-height: 1.6; color: var(--text-color); font-style: italic; margin-bottom: 20px;
}
.testimonial-author-title {
    font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: #888;
}


.testimonial-indicators {
    display: flex; justify-content: center; gap: 10px; margin-top: 20px;
}
.dot {
    width: 10px; height: 10px; background-color: #EAEAEA; border-radius: 50%;
    cursor: pointer; transition: all 0.3s ease;
}
.dot.active {
    width: 30px; background-color: var(--primary-color); border-radius: 10px;
}


@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 85vw; 
        max-width: 75vw;
        margin: 0 10px;
    }
    .testimonials-slider-wrapper {
        mask-image: none; 
    }
}



/* ================================================= */
/* ========= LISTAS DE PUNTITOS EN TESTIMONIOS ===== */
/* ================================================= */

.testimonial-list-content {
    margin-top: 10px;
    text-align: left !important; 
    padding: 0 15px; 
}

.testimonial-list-content .intro-text {
    font-size: 16px;
    color: #444; 
    margin-bottom: 15px;
    font-style: italic;
}


.testimonial-list-content ul {
    padding-left: 20px; 
    margin: 0;
    list-style-type: disc; 
}

.testimonial-list-content li {
    font-size: 15px;
    line-height: 1.6;
    color: #555; 
    margin-bottom: 12px; 
}


.testimonial-list-content li::marker {
    color: var(--primary-color); 
    font-size: 18px; 
}



/* ================================================== */
/* ========= ESTILOS DE LA SECCIÓN CLIENTS ======== */
/* ================================================== */

.clients-section {
    background-color: var(--bone-color);
    padding: 80px 0;
}


.clients-section .section-title span {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400; /* Un poco más ligero */
    color: var(--text-color);
}

.clients-grid {
    display: flex;
    justify-content: center; 
    align-items: center;   
    gap: 80px;            
    flex-wrap: wrap;  
    margin-top: 48px;
}

.client-logo img {
    max-height: 100px; 
    opacity: 0.6;
    transition: opacity 0.3s ease;
}


.client-logo img:hover {
    opacity: 1;
}


@media (max-width: 768px) {
    .clients-grid {
        gap: 40px; 
    }
}

/* =============================================== */
/* ========= ESTILOS DE LA SECCIÓN CTA ========== */
/* =============================================== */
.cta-section {
    position: relative;
    padding: 100px 0;
    color: var(--background-color); 


    background-image: url('Imagenes/cta-background.webp'); 
    background-size: cover;      
    background-position: center; 
}


.cta-section .section-title {
    color: var(--background-color);
}
.cta-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}
.input-wrapper {
    position: relative;
}
.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
}
.cta-form input {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 16px 16px 16px 48px; /* Espacio para el ícono */
    color: var(--background-color);
    font-size: 16px;
    width: 300px;
}
.cta-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.cta-section .section-title span {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400; 
}


@media (max-width: 768px) {
    .cta-form {
        flex-direction: column; 
    }
    .cta-form input {
        width: 100%;
    }
}




.cta-form input:not(:placeholder-shown):invalid {
    border-color: #e74c3c; /* Borde rojo */
    background-color: rgba(231, 76, 60, 0.1);
}


.cta-form input:not(:placeholder-shown):valid {
    border-color: #2ecc71; /* Borde verde */
}

.success-message {
    color: var(--background-color);
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    padding: 16px 0;
}



/* ================================================= */
/* ========= ESTILOS DEL FOOTER (PIE DE PÁGINA) ======== */
/* ================================================= */

.site-footer {
    background-color: var(--background-color);
    padding: 60px 0;
    border-top: 1px solid #EAEAEA; 
}


.site-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px; 
}

.footer-logo img {
    height: 40px; 
}

.footer-social {
    display: flex;
    gap: 20px; 
}

.footer-social a svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.footer-social a:hover svg {
    color: var(--deep-purple); 
}

.footer-links ul {
    display: flex;
    gap: 32px;
}

.footer-links a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-copyright p {
    font-size: 14px;
    color: #888; 
    text-align: center;
}





/* =================================================== */
/* ========= ESTILOS DEL POPUP (MODAL) ========= */
/* =================================================== */


.modal-overlay {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(25, 20, 42, 0.8); 
    backdrop-filter: blur(5px);
    
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; 

    
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s ease;
}


.modal-overlay.is-open {
    visibility: visible;
    opacity: 1;
}


.modal-content {
    background-color: var(--background-color);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    
    display: flex;
    gap: 40px;
    max-width: 900px;
    width: 80%;
    
    position: relative; 

    
    transform: scale(0.95);
    transition: transform 0.3s ease;

    max-height: 90vh; 
    overflow-y: auto; 
}

.modal-overlay.is-open .modal-content {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}


.modal-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; 
}

.modal-form button[type="submit"] {
    width: fit-content;
    align-self: flex-start;
    margin-top: 16px;
    margin-bottom: 26px;
}

.modal-form {
    flex: 2;
    padding-left: 24px; 
}

.modal-subtitle {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
}
.modal-title {
    font-size: clamp(28px, 4vw, 40px);
    color: var(--primary-color);
    line-height: 1.2;
}
.modal-title span {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    color: var(--text-color);
}

/* --- 4. Estilos del Formulario --- */
.modal-form form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }

.form-group label,
.form-group-checkbox label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #EAEAEA;
    background-color: var(--bone-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: var(--font-family);
}
.form-group textarea {
    min-height: 100px;
    resize: vertical;
}
.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}


@media (max-width: 768px) {
    .modal-content {
        flex-direction: column;
        padding: 24px;
        max-height: 90vh;
        overflow-y: auto;
    }
    .modal-text { text-align: center; }
}

¿
.success-message {
    text-align: center;
    color: var(--text-color);
    padding: 80px 20px;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
}

¿
.success-message::before {
    content: '✓';
    display: block;
    font-size: 48px;
    color: #2ecc71;
    margin-bottom: 16px;
}


/* =================================================== */
/* ========= ESTILOS PARA EL SCROLL DEL POPUP ======== */
/* =================================================== */

¿
.modal-content::-webkit-scrollbar {
    width: 8px;
}

¿
.modal-content::-webkit-scrollbar-track {
    background: var(--bone-color);
    border-radius: 10px;
}

¿
.modal-content::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}


.modal-content::-webkit-scrollbar-thumb:hover {
    background-color: var(--deep-purple);
}


/* =================================================== */
/* ===== ESTILOS DE VALIDACIÓN PARA EL FORMULARIO ==== */
/* =================================================== */


.modal-form input:not(:placeholder-shown):invalid,
.modal-form textarea:not(:placeholder-shown):invalid {
    border-color: #e74c3c; 
    background-color: rgba(231, 76, 60, 0.05); 
}


.modal-form input:not(:placeholder-shown):valid,
.modal-form textarea:not(:placeholder-shown):valid {
    border-color: #2ecc71; /* Verde */
}



/* ==================================================== */
/* ========= ESTILOS DE LA SECCIÓN ABOUT US ========= */
/* ==================================================== */

.about-section {
    padding: 80px 0;
    background-color: #19142A; 
    color: var(--background-color); 
}




.about-section .section-title {
    color: var(--primary-color);
}
.about-section .section-subtitle {
    font-family: 'Playfair Display', serif;
    color: var(--background-color); 
}


.about-section .subsection-title {
    color: var(--primary-color);
}
.about-section .subsection-title span { 
    font-family: 'Playfair Display', serif;
    /* ... otros estilos del span ... */
    color: var(--background-color); 
}


.about-section .founder-text h4 { 
    color: var(--primary-color);
}
.about-section .founder-text .founder-role { 
    color: #DDD; 
}
.about-section .founder-text p { 
    color: #CCC; 
}


.about-section .team-member-card h4 {
    color: var(--primary-color);
}


.about-intro {
    text-align: center; 
}


.about-intro .section-title {
    color: var(--primary-color); 
    margin-bottom: 8px;
}

.about-intro .section-subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(28px, 3.5vw, 40px);
    color: #FFFFFF;
    margin-bottom: 48px;
    font-weight: 500; /* <-- Idéntico al Home */
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto; 
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); 
}

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



.about-founder {
    margin-top: 80px;
    margin-bottom: 80px;
}

.subsection-title {
    font-size: clamp(32px, 4vw, 40px);
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 48px;
}


.founder-content {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.founder-image {
    flex: 0 0 40%;
}

.founder-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.founder-text {
    flex: 1;
}

.founder-text h4 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.founder-text .founder-role {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 24px;
}

.founder-text p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 32px;
}

.founder-signature {
    height: 40px;
    display: block;
}


@media (max-width: 768px) {
    .founder-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .founder-image {
        width: 80%;
        max-width: 350px;
    }
    .founder-signature {
        margin: 0 auto;
    }
}



.about-team {
    margin-top: 80px; 
}


.about-team .subsection-title span {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    color: var(--text-color);
}


.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 32px; 
}

.team-member-card {
    background-color: var(--bone-color);
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.team-member-card img {
    width: 100%;
    height: auto;
    border-radius: 16px; 
    margin-bottom: 16px;
}

.team-member-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}


@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: 1fr; 
        max-width: 400px; 
        margin: 0 auto; 
    }
}



body.about-page {
    background-color: #19142A; 
}


/* ================================================= */
/* ========= ANIMACIONES DE SCROLL (REVEAL) ======== */
/* ================================================= */


.reveal-up {
    opacity: 0;
    transform: translateY(40px); 
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}


.reveal-left {
    opacity: 0;
    transform: translateX(-60px); 
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}


.reveal-right {
    opacity: 0;
    transform: translateX(60px); 
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}


.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0, 0); 
}


.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }



/* --- ANIMACIÓN PARA SECCIONES ENTERAS (MAJESTIC RISE) --- */
.reveal-section {
    opacity: 0;
    transform: translateY(100px); 
    transition: all 1.2s cubic-bezier(0.2, 1, 0.3, 1); 
}

.reveal-section.active {
    opacity: 1;
    transform: translateY(0);
}





/* ================================================= */
/* ========= APPLE REVEAL SYSTEM (FINAL v4) ======== */
/* ================================================= */


.apple-section-container {
    width: 100%;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFFFFF; 
    padding: 24px 24px;
    scroll-snap-align: start;

}


.apple-reveal-card {
    width: 90%;
    max-width: 1200px;
    height: auto;
    height: 600px; 
    position: relative;
    transform: scale(1.15) translateY(60px); 
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden; 
    border-radius: 8px;
    box-sizing: border-box; 
}

.apple-reveal-card.in-view {
    transform: scale(1) translateY(0);
    opacity: 1;
    border-radius: 32px;
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.4);
}

/* ================================================= */
/* ========= ESTILOS INTERNOS (ENGINE) ============= */
/* ================================================= */

.engine-card-style {
    background: linear-gradient(135deg, #080C1D 0%, #171716 100%);
    color: white;
    display: flex;
    align-items: stretch; 
    width: 100%;
    height: 100%;
}

.engine-card-style .container {
    width: 100%;
    height: 100%;
    padding: 0; margin: 0; max-width: none;
    display: flex;
    align-items: stretch; 
}


.engine-card-style .engine-image-wrapper {
    width: 45%; 
    position: relative; 
    z-index: 2;
    display: block; 
}

.engine-card-style .engine-image-wrapper img {
    position: absolute; 
    bottom: 0; 
    left: 0;
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain; 
    display: block;
}


.engine-card-style .engine-content {
    width: 55%;
    padding: 40px 40px; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    position: relative;
    z-index: 2;
}

.engine-card-style .section-title {
    font-size: clamp(28px, 3.5vw, 38px); 
    margin-bottom: 24px;
    line-height: 1.2;
    color: var(--primary-color);
}

.engine-card-style .section-title span { display: block; color: white; }

.engine-card-style .section-description {
    color: #e0e0e0; margin-bottom: 32px; max-width: 500px;
}

.engine-card-style .engine-background-waves {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('Imagenes/about-waves.webp');
    background-size: cover; opacity: 0.4; mix-blend-mode: screen;
    z-index: 1; pointer-events: none;
}

/* ================================================= */
/* ========= RESPONSIVE: IPAD AIR Y MENORES ======== */
/* ================================================= */


@media (max-width: 991px) {
    
    .apple-section-container {
        padding: 20px 34px;
    }

    .apple-reveal-card {
        height: auto; 
        width: 100%;
    }

    .engine-card-style {
        flex-direction: column; 
    }

    .engine-card-style .container {
        flex-direction: column;
    }

 
    .engine-card-style .engine-content {
        width: 100%;
        padding: 60px 30px 40px 30px;
        align-items: center;
        text-align: center;
        order: 1; 
    }

  
    .engine-card-style .engine-image-wrapper {
        width: 100%;
        order: 2;
        height: 500px; 
    }

    .engine-card-style .engine-image-wrapper img {
        position: relative; 
        height: 100%;
        object-fit: cover; 
        object-position: top center; 
    }
}


@media (max-width: 600px) {
    .engine-card-style .engine-image-wrapper {
        height: 350px; 
    }
    .engine-card-style .section-title {
        font-size: 32px;
    }
}





/* ================================================= */
/* ========= SECCIÓN 2: FUNDADORA (DARK FULL) ====== */
/* ================================================= */
.founder-section-full {
    width: 100%;
    background: linear-gradient(135deg, #1a0b2e 0%, #050507 100%);
    padding: 80px 0; 
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.founder-card-layout {
    display: flex;
    width: 90%;
    max-width: 1200px;
    align-items: center;
    gap: 80px; 
}


.founder-image-box {
    flex: 0 0 45%;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: -20px 20px 60px rgba(105, 60, 238, 0.15);
}

.founder-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center !important; 
}


.founder-text-box {
    flex: 1;
    color: white;
}

.founder-text-box .overline {
    font-size: 14px;
    letter-spacing: 4px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.founder-text-box .founder-name {
    font-size: clamp(40px, 5vw, 64px);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500; 
    line-height: 1.1;
    margin-bottom: 10px;
}

.founder-text-box .founder-role {
    font-size: 18px;
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

.founder-text-box .founder-description p {
    font-size: 18px;
    line-height: 1.8;
    color: #e0e0e0;
    margin-bottom: 25px;
    max-width: 550px; 
}

.founder-text-box .signature {
    width: 240px;
    margin-top: 30px;
    opacity: 0.8;
}

/* ================================================= */
/* ========= SECCIÓN 3: EQUIPO (CARRUSEL) ========== */
/* ================================================= */
.team-section-container {
    background-color: #050507;
    padding: 30px 0;
    width: 100%;
    overflow: hidden;
}

.team-header {
    text-align: center;
    margin-bottom: 60px;
}

.team-header .section-title {
    font-size: 48px;
    color: white;
}

.team-header .section-title span {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--primary-color);
}


.testimonial-card.team-style {
    background-color: #f8f8f8;
    text-align: center;
    padding: 40px 20px;
    border-radius: 24px;
}

.member-image-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 4px solid white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.member-image-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info-carousel h4 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.member-info-carousel .role {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
}


/* ========= RESPONSIVE (SOLUCIÓN DEFINITIVA) ====== */
/* ================================================= */
/* Este bloque unifica todo y elimina el espacio azul gigante */

@media (max-width: 1024px) {
    
   
    .founder-section-full {
        height: auto !important;
        min-height: 0 !important;
        padding-bottom: 50px !important;
        display: block !important; 
    }

    
    .founder-card-layout {
        display: block !important; 
        height: auto !important;
        width: 90%;
        margin: 0 auto;
        text-align: center; 
    }

    
    .founder-image-box {
        width: 100% !important;
        max-width: 400px !important;
        height: 400px !important;
        margin: 0 auto 40px auto !important;
    }

   
    .founder-text-box {
        display: block !important;
        flex: none !important;
        height: auto !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    
    .founder-text-box .founder-description p {
        margin: 0 auto 25px auto;
    }
    
    .founder-text-box .signature {
        margin: 20px auto 0 auto;
    }
}


/* ================================================= */
/* ========= VIDEO RESPONSIVE (SOLO CELULARES) ===== */
/* ================================================= */


.video-mobile {
    display: none !important;
}


#main-brand-video,
.video-desktop {
    display: block !important;
    width: 100%;
    height: auto;
}


@media (max-width: 700px) {
    
    /* 1. Ocultamos el video de PC */
    #main-brand-video, .video-desktop {
        display: none !important;
    }

   
    .video-mobile {
        display: block !important;
        width: 100% !important;
        aspect-ratio: 9/16;
        object-fit: cover;
        
     
        position: relative !important; 
        z-index: 999 !important; 
    }

    .video-overlay {
        display: none !important;     
        pointer-events: none !important; 
    }

    .video-wrapper {
        padding: 0 !important;
        height: auto !important;
        min-height: auto !important; 
        aspect-ratio: auto !important; 
        border-radius: 20px !important; 
    }
}




/* =================================================== */
/* ========= ESTILOS DE ÉXITO (FORMULARIOS) ========== */
/* =================================================== */

.success-message {
    animation: fadeIn 0.5s ease-out forwards; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(15px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}