/* =========================================
   VARIABLES GLOBALES
   ========================================= */
:root {
    --bg-color: #021228;
    --brand-red: #FF2452;
    --text-light: #ffffff;
    --text-muted: #a0aec0;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: 'Saira', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* =========================================
   CURSOR LUMINOSO
   ========================================= */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 36, 82, 0.35) 0%, rgba(2, 18, 40, 0) 65%);
    pointer-events: none;
    z-index: 9999;
    top: 0;
    left: 0;
    mix-blend-mode: screen;
    will-change: transform;
}

/* =========================================
   HEADER / NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(2, 18, 40, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--brand-red);
}

.btn-outline {
    border: 1px solid var(--brand-red);
    padding: 8px 20px;
    border-radius: 50px;
    color: var(--brand-red) !important;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--brand-red);
    color: #fff !important;
}

/* =========================================
   HERO SCROLLYTELLING (VIDEO + GIF)
   ========================================= */
.scroll-sequence {
    height: 180vh; /* Altura óptima para evitar huecos en negro */
    position: relative;
    background: var(--bg-color);
}

.video-sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #000;
}

.video-sticky-container video,
.video-sticky-container .gif-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Adapta el video 1920x1350 a cualquier pantalla */
}

.video-sticky-container video {
    opacity: 0.85;
    z-index: 1;
}

.video-sticky-container .gif-overlay {
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.6s ease-in-out;
}

/* Activación del GIF sin espacio en negro */
.video-sticky-container .gif-overlay.active {
    opacity: 0.9;
}

/* =========================================
   TARJETAS INTERACTIVAS
   ========================================= */
.cards-section {
    padding: 100px 5vw;
    position: relative;
    z-index: 10;
    background: var(--bg-color);
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 300;
}

.section-header strong {
    font-weight: 700;
    color: var(--brand-red);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.scifi-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(15px);
    transition: transform 0.3s, border-color 0.3s;
}

.scifi-card:hover {
    transform: translateY(-8px);
    border-color: var(--brand-red);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    opacity: 0.85;
}

.card-content {
    padding: 30px;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.btn-link {
    color: var(--brand-red);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =========================================
   ACORDEÓN DE SERVICIOS
   ========================================= */
.services-accordion-section {
    padding: 100px 5vw;
    background-color: var(--bg-color);
    position: relative;
    z-index: 10;
}

.accordion-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.accordion-left {
    position: sticky;
    top: 120px;
}

.accordion-left h2 {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 20px;
}

.accordion-left p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.accordion-item {
    border-bottom: 1px solid var(--glass-border);
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: left;
    padding: 25px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-family: inherit;
    transition: color 0.3s;
}

.accordion-header:hover {
    color: var(--brand-red);
}

.accordion-header .icon {
    font-size: 1.5rem;
    font-weight: 300;
    margin-right: 20px;
    width: 20px;
    display: inline-block;
    text-align: center;
    transition: transform 0.3s ease;
}

.accordion-header.active .icon {
    transform: rotate(45deg);
    color: var(--brand-red);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.accordion-content ul {
    list-style: none;
    padding: 0 0 30px 45px;
}

.accordion-content li {
    color: var(--text-muted);
    margin-bottom: 12px;
    position: relative;
}

.accordion-content li::before {
    content: '•';
    color: var(--brand-red);
    position: absolute;
    left: -15px;
}

.accordion-contact-box {
    margin-top: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.accordion-contact-box h3 {
    margin-bottom: 10px;
}

.accordion-contact-box p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.btn-primary-widget {
    background: var(--brand-red);
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
}

/* =========================================
   CINTA DE LOGOS
   ========================================= */
.respaldo {
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    background: #010c1c;
}

.respaldo h4 {
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 40px;
    font-size: 0.9rem;
}

.logos-wrapper {
    overflow: hidden;
    width: 100%;
}

.logos-track {
    display: flex;
    width: max-content;
    animation: scroll-left 20s linear infinite;
}

.logo-item {
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-item img {
    height: 120px; 
    width: auto;
    object-fit: contain;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
/* =========================================
   FOOTER UNIFICADO
   ========================================= */
.footer {
    padding: 70px 5vw 30px;
    background: #010a17;
    border-top: 1px solid var(--brand-red);
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 50px;
}

.footer-col h5 {
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 600;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--brand-red);
}

.footer-team {
    margin-top: 15px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.85rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 35px;
    right: 35px;
    background-color: #25d366;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1ebe57;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .accordion-layout { grid-template-columns: 1fr; }
    .accordion-left { position: relative; top: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
}
/* =========================================
   PÁGINAS INTERNAS DE SERVICIOS
   ========================================= */
.service-page {
    padding: 120px 5vw 80px;
    background-color: var(--bg-color);
}

.service-hero {
    margin-bottom: 60px;
}

.service-hero h1 {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.2;
}

.service-hero h1 strong {
    font-weight: 700;
    color: var(--brand-red);
}

.service-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.service-content h3 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: var(--text-light);
}

.service-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.service-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 40px;
}

.service-content li {
    color: var(--text-muted);
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    font-size: 1.05rem;
}

.service-content li::before {
    content: '✓';
    color: var(--brand-red);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.service-image-banner {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    margin: 30px 0;
    border: 1px solid var(--glass-border);
    opacity: 0.9;
}

.service-sidebar {
    position: sticky;
    top: 120px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px 30px;
    backdrop-filter: blur(15px);
}

.service-sidebar h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-sidebar p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .service-layout { grid-template-columns: 1fr; }
    .service-sidebar { position: relative; top: 0; }
}
/* =========================================
   FORMULARIO DE CONTACTO
   ========================================= */

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 20px;
}

.contact-info strong {
    color: var(--brand-red);
    font-weight: 700;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.contact-form {
    background: var(--glass-bg);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-red);
}

.form-group select option {
    background: var(--bg-color);
    color: #fff;
}

.btn-submit {
    width: 100%;
    background: var(--brand-red);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #d81c43;
}

/* Scroll suave para los anclajes de menú */
html {
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    .contact-container { grid-template-columns: 1fr; }
}

/* =========================================
   UTILIDADES (reemplazan estilos en línea para poder usar una CSP estricta)
   ========================================= */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.divider {
    border: 0;
    border-top: 1px solid var(--glass-border);
    margin: 30px 0;
}

.btn-block {
    display: inline-block;
    width: 100%;
    text-align: center;
}

.honeypot {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* Anclas: evita que el header fijo tape los títulos */
[id] { scroll-margin-top: 90px; }

/* =========================================
   CONTACTO / GRACIAS / LEGALES
   ========================================= */
.page-content {
    padding: 150px 5vw 80px;
    background-color: var(--bg-color);
    min-height: 70vh;
}

.contact-info h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.2;
}

.form-note {
    margin-top: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

.form-note a,
.footer-bottom a,
.legal-content a {
    color: var(--brand-red);
}

.footer-bottom a { margin-left: 8px; }

.thanks {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.thanks h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 20px;
}

.thanks h1 strong,
.legal-content h1 strong {
    color: var(--brand-red);
    font-weight: 700;
}

.thanks p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.legal-content {
    max-width: 760px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 30px;
}

.legal-content h2 {
    font-size: 1.3rem;
    margin: 30px 0 10px;
}

.legal-content p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

/* =========================================
   MENÚ MÓVIL (HAMBURGUESA)
   ========================================= */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-light);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Foco visible para teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--brand-red);
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .menu-toggle { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 5vw 25px;
        background: rgba(2, 18, 40, 0.98);
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.open { display: flex; }

    .nav-links a {
        padding: 14px 0;
        font-size: 1.05rem;
    }

    .nav-links .btn-outline {
        margin-top: 12px;
        padding: 12px 20px;
        text-align: center;
    }
}

/* =========================================
   AJUSTES MÓVILES
   ========================================= */
@media (max-width: 600px) {
    .service-hero h1,
    .accordion-left h2 { font-size: 2.1rem; }
    .section-header h2,
    .contact-info h1,
    .thanks h1,
    .legal-content h1 { font-size: 1.9rem; }
    .service-image-banner { height: 220px; }
    .logo-item { padding: 0 24px; }
    .logo-item img { height: 80px; }
    .whatsapp-float { width: 54px; height: 54px; bottom: 20px; right: 20px; }
}

/* El cursor luminoso no tiene sentido en pantallas táctiles */
@media (hover: none) {
    .cursor-glow { display: none; }
}

/* Usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .cursor-glow { display: none; }
    .logos-wrapper { overflow-x: auto; }
    .logos-track { animation: none !important; }
    .logo-item[data-clone] { display: none; }
    * { transition-duration: 0.01ms !important; }
}

/* =========================================
   LOGO (header y footer)
   ========================================= */
.logo-img {
    display: block;
    height: 42px;
    width: auto;
}

.logo-img-footer {
    height: 36px;
    margin-bottom: 15px;
}

@media (max-width: 600px) {
    .logo-img { height: 34px; }
}
