/* =========================================================================
   DISEÑO CORPORATIVO OPERARY - HOJA DE ESTILOS INTEGRAL CORREGIDA
   ========================================================================= */

:root {
    --bg-dark: #09090b;
    --card-bg: #121214;
    --neon-green: #ccff00;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --border-color: #27272a;
    --font-primary: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --header-blur-bg: rgba(9, 9, 11, 0.75);
}

/* Asignación tipográfica premium */
h1, h2, h3, .sub-title-center {
    font-family: 'DM Serif Display', serif;
    letter-spacing: -0.02em;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-primary);
    -webkit-text-size-adjust: 100%;
}

.sub-title-center {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3.5rem;
    font-weight: 700;
}

.sub-title-center span.highlight {
    color: var(--neon-green);
}

/* --- NAVEGACIÓN EN FLUJO FIJO (STICKY PREMIUM) --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: var(--header-blur-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 2rem;
}

main {
    margin-top: 220px;
}

.logo-area img {
    height: 60px; 
    display: block;
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--neon-green);
}

.btn-cta {
    background-color: var(--neon-green);
    color: #000;
    padding: 0.6rem 1.3rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(204, 255, 0, 0.3);
}

/* --- SECCIÓN HERO --- */
.section-hero {
    padding: 0 2rem 6rem 2rem; 
    max-width: 1200px;
    margin: 0 auto;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-text span.highlight {
    color: var(--neon-green);
}

.hero-text p {
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    align-items: center; 
}

.hero-buttons .btn-cta, 
.hero-buttons .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px; 
    padding: 0 1.8rem; 
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap; 
    box-sizing: border-box; 
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.hero-buttons .btn-cta {
    background-color: var(--neon-green);
    color: #000000;
    border: none;
}

.hero-buttons .btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(204, 255, 0, 0.35);
}

.hero-buttons .btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color); 
}

.hero-buttons .btn-secondary:hover {
    background: rgba(39, 39, 42, 0.4); 
    border-color: var(--text-muted);
}

/* Reproductor de Video */
.hero-media {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-media::before {
    content: '';
    position: absolute;
    width: 110%;
    height: 110%;
    background: conic-gradient(from 0deg, transparent 20%, var(--neon-green), transparent 60%, #00ffff, transparent);
    border-radius: 40px;
    filter: blur(40px);
    opacity: 0.25;
    z-index: -1;
    animation: rotateGlow 8s linear infinite; 
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.browser-mockup {
    width: 516px;
    height: 373px;
    max-width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
    padding-top: 60px; 
}

.video-thumb-wrapper {
    width: 445px;
    height: 243px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.video-thumb-wrapper img.thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.browser-mockup:hover img.thumb {
    transform: scale(1.04);
}

.play-icon-overlay {
    position: absolute;
    width: 65px;          
    height: 65px;
    background-color: var(--neon-green);
    border-radius: 50%;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 25px rgba(204, 255, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.browser-mockup:hover .play-icon-overlay {
    transform: translate(-50%, -50%) scale(1.08);
}

.play-icon-overlay img {
    position: absolute;
    top: 50%;
    left: 53%; 
    transform: translate(-50%, -50%);
    width: 52px; 
    height: 52px;
    display: block;
}

/* --- SECCIÓN CARRUSEL INFINITO EN CSS --- */
.section-carousel {
    padding: 4rem 0;
    background: #0d0d0f;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.carousel-track {
    display: flex;
    width: calc(400px * 16);
    animation: scrollInfinite 35s linear infinite;
}

.carousel-track-container:hover .carousel-track {
    animation-play-state: paused !important;
}

body.lightbox-open .carousel-track {
    animation-play-state: paused !important;
}

.carousel-item-wrapper {
    position: relative;
    display: block; 
    width: 400px;
    height: 400px;
    overflow: hidden;
    flex-shrink: 0; 
}

.carousel-item-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0 10px;
    transition: transform 0.4s ease;
}

.carousel-item-wrapper.has-video-trigger {
    cursor: pointer;
}

.carousel-item-wrapper.has-video-trigger:hover img {
    transform: scale(1.03);
}

.carousel-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none; 
}

.carousel-play-capsule {
    position: relative;
    width: 65px;         
    height: 65px;
    background-color: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 4px 25px rgba(204, 255, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.carousel-item-wrapper:hover .carousel-play-capsule {
    transform: scale(1.08);
}

.carousel-play-capsule img {
    position: absolute !important;
    top: 50% !important;
    left: 53% !important; 
    transform: translate(-50%, -50%) !important;
    width: 52px !important; 
    height: 52px !important;
    padding: 0 !important;
    display: block !important;
}

@keyframes scrollInfinite {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-400px * 8)); }
}

/* --- SECCIÓN SERVICIOS GRID DINÁMICO --- */
.section-services {
    padding: 7rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.services-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.services-header h2 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}

.service-card {
    background-color: var(--card-bg);
    background-image: var(--bg-image);
    border-radius: 20px;
    border: 1px solid var(--border-color); 
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:nth-child(1), .service-card:nth-child(2) { grid-column: span 3; min-height: 450px; }
.service-card:nth-child(3), .service-card:nth-child(4), .service-card:nth-child(5) { grid-column: span 2; min-height: 400px; }
.service-card:nth-child(6), .service-card:nth-child(7) { grid-column: span 3; min-height: 450px; }

.service-card:hover {
    border-color: var(--neon-green);
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(204, 255, 0, 0.25); 
}

.card-tag {
    color: var(--neon-green);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.service-card p {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.5;
}

.service-card h3, 
.service-card p {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85); 
}

/* --- SECCIÓN VENTAJAS (GRID DE 3 COLUMNAS LINDO Y CENTRADO) --- */
.section-ventajas {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--bg-dark);
}

.ventajas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    align-items: start;
}

.ventaja-card {
    text-align: center;
    padding: 1rem;
}

.ventaja-icon-wrapper {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ventaja-icon-wrapper img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    display: block;
}

.ventaja-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.ventaja-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- SECCIÓN TARIFAS (PRICING) --- */
.section-pricing {
    padding: 7rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-header {
    text-align: center;
    margin-bottom: 4rem;
}

.pricing-header h2 {
    font-size: 3rem;
    font-weight: 800;
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s;
}

.pricing-card.premium-glow {
    border: 2px solid var(--neon-green);
    box-shadow: 0 10px 40px rgba(204, 255, 0, 0.08);
}

.pricing-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.price-box {
    margin-bottom: 2rem;
}

.price-box .amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.price-box .period {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 3rem;
}

.pricing-features li {
    color: var(--text-muted);
    padding: 0.6rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.pricing-card .btn-cta {
    text-align: center;
    width: 100%;
    display: block;
}

.pricing-footer {
    text-align: center;
    margin-top: 3rem;
    color: var(--neon-green);
    font-weight: 600;
    font-size: 1.1rem;
}

/* --- SECCIÓN FAQ --- */
.section-faq {
    padding: 6rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-container {
    margin-top: 2rem;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--neon-green);
}

.faq-toggle-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: transform 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, margin-top 0.3s;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.faq-item.open .faq-answer {
    max-height: 200px; 
    margin-top: 1rem;
}

.faq-item.open .faq-toggle-icon {
    transform: rotate(45deg);
    color: var(--neon-green);
}

.faq-footer-note {
    text-align: center;
    font-size: 0.85rem;
    color: #ef4444; 
    margin-top: 2rem;
    font-style: italic;
}

/* --- FINAL CALL TO ACTION --- */
.section-final-cta {
    padding: 8rem 2rem;
    text-align: center;
    background: radial-gradient(circle at bottom, rgba(204,255,0,0.07) 0%, rgba(9,9,11,1) 70%);
}

.final-cta-container {
    max-width: 700px;
    margin: 0 auto;
}

.final-cta-container h2 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.final-cta-container p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

/* --- FOOTER LEGAL --- */
.main-footer {
    padding: 2.5rem 2rem;
    background-color: var(--neon-green); 
}

.footer-links {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.footer-links a {
    color: #000000;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* --- MODAL LIGHTBOX --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    width: 80%;
    max-width: 800px;
    aspect-ratio: 16/9;
}

.lightbox-content iframe {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--neon-green);
}

/* =========================================================================
   VERSION ADAPTATIVA MÓVIL (<900px)
   ========================================================================= */
@media (max-width: 900px) {
    main {
        margin-top: 240px; 
    }

    .section-hero {
        padding: 0 1rem 4rem 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
        width: 100%;
        max-width: 100%;
    }

    .hero-text h1 { 
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero-text p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .hero-buttons .btn-cta, 
    .hero-buttons .btn-secondary {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-media {
        width: 100%;
        max-width: 100%;
    }

    .browser-mockup {
        margin: 0 auto;
        width: 100%;
        max-width: 460px;
        height: auto;
        aspect-ratio: 516/373;
        padding-top: 40px;
    }

    .video-thumb-wrapper {
        width: 88%;
        height: auto;
        aspect-ratio: 445/243;
    }

    .hero-media::before {
        width: 100%;
        height: 100%;
        border-radius: 20px;
    }

    .ventajas-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .services-grid { grid-template-columns: 1fr; }

    .service-card:nth-child(n) {
        grid-column: span 1;
        min-height: 400px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        background-image: linear-gradient(to top, rgba(9, 9, 11, 0.95) 0%, rgba(9, 9, 11, 0.5) 50%, transparent 100%), var(--bg-image) !important;
        background-size: cover;
        background-position: center;
    }

    .service-card h3,
    .service-card p {
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
        position: relative;
        z-index: 2;
    }

    .pricing-grid { flex-direction: column; align-items: center; }
    .pricing-card { width: 100%; max-width: 450px; }

    .header-container {
        flex-direction: column;
        gap: 1.2rem; 
        padding: 20px 1.5rem; 
    }

    .logo-area img {
        height: 50px; 
    }

    .nav-menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem; 
        margin-bottom: 0.2rem;
        width: 100%;
    }

    .nav-menu a {
        margin: 0; 
        font-size: 1rem;
        font-weight: 600;
        padding: 0.5rem 0.75rem; 
    }

    .cta-area {
        margin-top: 0.6rem;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .cta-area .btn-cta {
        width: auto; 
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 0.8rem 2.2rem; 
        font-size: 0.95rem;
        font-weight: 700;
        white-space: nowrap;
    }
}

/* =========================================================================
   ESTILOS PREMIUM PARA SECCIÓN DE TEXTOS LEGALES
   ========================================================================= */
.legal-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 2rem;
    line-height: 1.8;
}

.legal-wrapper h1,
.legal-wrapper h2,
.legal-wrapper h3,
.legal-wrapper strong {
    font-family: 'DM Serif Display', serif;
    color: var(--text-main);
    letter-spacing: -0.01em;
    display: block;
}

.legal-wrapper h3,
.legal-wrapper strong {
    font-size: 1.35rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.legal-wrapper p {
    color: var(--text-muted);
    font-family: var(--font-primary);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.legal-wrapper ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.legal-wrapper li { margin-bottom: 0.75rem; }

.legal-wrapper a {
    color: var(--neon-green);
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.legal-wrapper .btn-volver {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 1.8rem;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    font-family: var(--font-primary);
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    margin-top: 3rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.legal-wrapper .btn-volver:hover {
    background: rgba(39, 39, 42, 0.4);
    border-color: var(--text-muted);
}

/* =========================================================================
   ESTILOS COMPONENTE FORMULARIO CONTACTO PREMIUM
   ========================================================================= */
.premium-form-section {
    max-width: 760px;
    margin: 0 auto;
    padding: 60px 2rem 120px 2rem;
    font-family: var(--font-primary);
}

.form-header-container {
    text-align: center;
    margin-bottom: 4rem;
}

.form-header-container h1 {
    font-size: 3.2rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.form-header-container span.gradient-text {
    color: var(--neon-green);
    font-family: 'DM Serif Display', serif;
}

.form-header-container p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.premium-form {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 3.5rem 3rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.premium-form label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.premium-form input[type="text"],
.premium-form input[type="email"],
.premium-form select,
.premium-form textarea {
    background-color: #18181b;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    color: var(--text-main);
    font-family: var(--font-primary);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.premium-form input:focus,
.premium-form select:focus,
.premium-form textarea:focus {
    border-color: var(--neon-green);
    box-shadow: 0 0 15px rgba(204, 255, 0, 0.15);
}

.premium-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 1.2rem;
}

.premium-form textarea { resize: vertical; }

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    accent-color: var(--neon-green);
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
}

.form-checkbox label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: none;
    font-weight: 500;
    letter-spacing: normal;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .form-group-row { grid-template-columns: 1fr; gap: 2rem; }
    .premium-form { padding: 2rem 1.5rem; }
    .form-header-container h1 { font-size: 2.3rem; }
}