:root {
    --bg-color: #03050a;
    --text-primary: #ffffff;
    --text-secondary: #a0a5b5;
    --neon-blue: #00f3ff;
    --neon-purple: #9d4edd;
    --accent: #5a189a;
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.05);
}

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

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

/* Skip to Content (Accessibility) */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--neon-blue);
    color: var(--bg-color);
    padding: 12px 24px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 8px 8px;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
    outline: none;
}

/* Global Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--neon-blue);
    outline-offset: 3px;
}

body.menu-open {
    overflow: hidden;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 400px;
    padding: 0 20px;
}

.preloader-video {
    width: 250px; /* Tamaño del video del logo */
    height: auto;
    object-fit: contain;
    mix-blend-mode: screen; /* Hacer transparente si el video tiene fondo negro puro */
}

/* Contenedor de la barra de carga (estilo Webflow premium) */
.loading-bar-container {
    width: 100%;
    height: 4px; /* Barra fina y elegante */
    background: rgba(255, 255, 255, 0.05); /* Fondo sutil oscuro */
    border-radius: 4px;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
    /* Se quitó overflow: hidden para que el brillo (glow) de la barra pueda salir del contenedor */
}

/* La barra de progreso en sí */
.loading-bar {
    width: 0%; /* Inicia en 0, controlado por JS */
    height: 100%;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-blue), #ffffff);
    border-radius: 4px;
    /* Brillo intenso difuminado que crece con la barra */
    box-shadow: 0 0 15px var(--neon-blue), 0 0 30px var(--neon-purple); 
    transition: width 0.1s ease;
}

/* Clase para ocultar el preloader */
.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Ensure no scrolling while loading */
body.loading {
    overflow: hidden;
}

/* Canvas Background */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6, .logo {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: flex-start; /* Align logo and socials left */
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    transition: all 0.4s ease;
}

.nav-social-links {
    display: flex;
    gap: 1.2rem;
    margin-left: 2rem;
    align-items: center;
}

.nav-social-links a {
    color: var(--text-secondary);
    font-size: 1rem;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 243, 255, 0.2);
    /* Futuristic clipped corner look */
    clip-path: polygon(20% 0%, 100% 0, 100% 80%, 80% 100%, 0 100%, 0% 20%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.nav-social-links a::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 243, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
    pointer-events: none;
}

.nav-social-links a:hover {
    color: var(--neon-blue);
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--neon-blue);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
    filter: drop-shadow(0 0 5px var(--neon-blue));
}

.nav-social-links a:hover::before {
    left: 100%;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
    cursor: pointer;
}

.logo-img {
    height: 45px;
    width: auto;
    border-radius: 8px; /* Elegant rounding */
    object-fit: contain;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin-left: auto; /* Push main nav to right */
}

.nav-links li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    box-shadow: 0 0 10px var(--neon-blue);
    transition: width 0.3s ease;
}

.nav-links li a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.8);
}

.nav-links li a:hover::after {
    width: 100%;
}

/* Mobile Icon (hidden by default) */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    margin-left: 1.5rem;
    background: none;
    border: none;
    padding: 0;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hamburger Animation to X */
.mobile-menu-btn.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.mobile-menu-btn.active .bar:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

/* Large Background Brand Logo */
.bg-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(-10px);
    width: 90%;
    max-width: 1200px;
    opacity: 0.3; /* Base opacity lower to make glow more dramatic */
    z-index: 5; /* Asegura que está justo detrás del robot, pero sobre las partículas */
    pointer-events: none; /* Let mouse events pass through to capture them on the hero section */
    filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.1));
    transition: filter 0.3s ease, opacity 0.3s ease;
}

/* Hover class activated by JS based on cursor proximity */
.bg-logo-glow {
    opacity: 0.9;
    filter: drop-shadow(0 0 50px rgba(0, 243, 255, 0.8)) drop-shadow(0 0 80px rgba(157, 78, 221, 0.6));
}

/* Button positioned below the floating android in Hero */
.hero-agenda-btn-container {
    position: absolute;
    bottom: 5%; /* Colocado en la parte inferior de la pantalla hero */
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    width: 100%;
    text-align: center;
}

/* Android container 3D interaction */
.android-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 85vh; /* Take up more of the screen height */
    z-index: 10;
    perspective: 1000px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: -40px; /* Hide cables behind the navbar but show the head */
}

.android-robot {
    height: 100%;
    width: auto;
    object-fit: contain;
    object-position: top center;
    filter: drop-shadow(0 0 40px rgba(0, 243, 255, 0.15)); /* Quité contrast/brightness porque alteraba el color */
    transition: transform 0.1s ease-out;
    transform: translateZ(30px);
    mix-blend-mode: screen; /* Transparencia matemática sobre negros puros */
    opacity: 1;
}

/* Floating Animation for Android */
.floating-anim {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateZ(30px) translateY(0px); }
    50% { transform: translateZ(30px) translateY(-15px); }
    100% { transform: translateZ(30px) translateY(0px); }
}

/* Aura Glow */
.aura-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 80%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,243,255,0.15) 0%, rgba(157,78,221,0.05) 50%, rgba(3,5,10,0) 80%);
    z-index: -1;
    animation: breathe 6s infinite alternate ease-in-out;
    filter: blur(40px);
}

@keyframes breathe {
    0% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
}

/* Main Content Section Below Hero */
.main-content-section {
    position: relative;
    width: 100%;
    min-height: 80vh; /* Da una sección amplia para el texto principal */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 5%;
    z-index: 20;
    margin-bottom: 20vh; /* Agrega un gran espacio de separación antes de llegar al video */
}

.hero-content {
    width: 100%;
    max-width: 800px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Base class for scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.main-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.text-glow {
    background: linear-gradient(90deg, var(--neon-blue), #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px; /* Constrain width for readability when centered */
    font-weight: 300;
}

/* CTA Button */
.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 3rem;
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.1); /* Lighter base border */
    color: var(--text-primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
    transition: all 0.3s ease;
}

.btn-primary span {
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.5);
}

.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: var(--neon-blue);
    border-radius: 50%;
    filter: blur(25px);
    opacity: 0;
    z-index: 1;
    transition: all 0.5s ease;
}

/* Energy Rays Animation Elements */
.ray {
    position: absolute;
    background: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-purple);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.ray-top {
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-blue));
}

.ray-bottom {
    bottom: 0;
    right: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(270deg, transparent, var(--neon-blue));
}

.ray-left {
    bottom: -100%;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(0deg, transparent, var(--neon-blue));
}

.ray-right {
    top: -100%;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--neon-blue));
}

/* Hover State */
.btn-primary:hover {
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4), inset 0 0 15px rgba(0, 243, 255, 0.2);
    border-color: rgba(0, 243, 255, 0.4);
    transform: translateY(-2px);
    background: rgba(0, 243, 255, 0.1);
}

.btn-primary:hover span {
    text-shadow: 0 0 15px rgba(0, 243, 255, 1);
    letter-spacing: 3px;
}

.btn-primary:hover .btn-glow {
    width: 150%;
    height: 150%;
    opacity: 0.25;
}

/* Trigger Rays on Hover */
.btn-primary:hover .ray {
    opacity: 1;
}

.btn-primary:hover .ray-top {
    animation: rayTop 1.5s linear infinite;
}
.btn-primary:hover .ray-bottom {
    animation: rayBottom 1.5s linear infinite;
    animation-delay: 0.75s;
}
.btn-primary:hover .ray-left {
    animation: rayLeft 1.5s linear infinite;
    animation-delay: 0.75s;
}
.btn-primary:hover .ray-right {
    animation: rayRight 1.5s linear infinite;
}

/* Rays Keyframes */
@keyframes rayTop {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}
@keyframes rayBottom {
    0% { right: -100%; }
    50%, 100% { right: 100%; }
}
@keyframes rayRight {
    0% { top: -100%; }
    50%, 100% { top: 100%; }
}
@keyframes rayLeft {
    0% { bottom: -100%; }
    50%, 100% { bottom: 100%; }
}

/* Active / Click State -> Energy Burst */
.btn-primary:active {
    transform: translateY(1px) scale(0.96);
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.8), inset 0 0 30px rgba(0, 243, 255, 0.5);
    background: rgba(0, 243, 255, 0.2);
}

.btn-primary:active .ray {
    box-shadow: 0 0 20px #fff, 0 0 40px var(--neon-blue);
    background: #fff;
}

.btn-primary:active .ray-top { animation-duration: 0.3s; }
.btn-primary:active .ray-bottom { animation-duration: 0.3s; }
.btn-primary:active .ray-left { animation-duration: 0.3s; }
.btn-primary:active .ray-right { animation-duration: 0.3s; }

.btn-primary:active .btn-glow {
    opacity: 0.5;
    background: #fff;
}

/* Secondary Button (Agenda tu llamada) */
.btn-secondary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 3rem;
    background: transparent;
    border: 1px solid rgba(157, 78, 221, 0.5); /* Purple border */
    color: var(--text-primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.4s ease;
    z-index: 1;
}

.btn-secondary span {
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
}

.glow-orb {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--neon-purple);
    border-radius: 50%;
    filter: blur(15px);
    opacity: 0;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Orb follows mouse logic (via CSS primarily centered, enhanced if needed by JS) */
.btn-secondary:hover {
    border-color: rgba(157, 78, 221, 1);
    box-shadow: 0 0 25px rgba(157, 78, 221, 0.6), inset 0 0 15px rgba(157, 78, 221, 0.4);
    transform: translateY(-2px);
    background: rgba(157, 78, 221, 0.1);
}

.btn-secondary:hover span {
    text-shadow: 0 0 10px #ffffff, 0 0 20px var(--neon-purple);
    letter-spacing: 3px;
}

.btn-secondary:hover .glow-orb {
    opacity: 1;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #fff 0%, var(--neon-purple) 40%, transparent 80%);
    filter: blur(20px);
}

.btn-secondary:active {
    transform: translateY(1px) scale(0.96);
    box-shadow: 0 0 40px rgba(157, 78, 221, 1), inset 0 0 40px rgba(157, 78, 221, 0.8);
    background: rgba(157, 78, 221, 0.3);
}

.btn-secondary:active .glow-orb {
    width: 300px;
    height: 300px;
    opacity: 0.8;
    background: #ffffff;
}

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

/* --------------------------------------------------- */
/* Nuestro Equipo Section */
/* --------------------------------------------------- */
.equipo-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center; /* Centrar verticalmente */
    justify-content: flex-end; /* Alinea el panel a la derecha de la pantalla */
    overflow: hidden;
    padding: 100px 8% 100px 5%; /* Añade padding fuerte a la derecha para no tocar el borde */
}

.equipo-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fuerza el video a 16:9 rellenando toda la pantalla */
    z-index: -3; /* Detrás de las partículas */
    opacity: 0.8;
}

/* Standalone Page specific styling */
.full-page-equipo {
    min-height: 100vh; /* Revert to full screen height or similar */
    max-width: 1400px; /* Wider to accommodate side-by-side */
    margin: 0 auto; 
    border-radius: 0; /* Full page feel */
    box-shadow: none;
    
    /* Side-by-side layout */
    display: flex !important;
    flex-direction: row !important; /* Panel and button side by side */
    align-items: center !important;
    justify-content: flex-end !important; /* Push everything towards right-ish */
    gap: 10%; /* Large gap between them */
    padding: 0 10% !important; /* Padding for horizontal breathing room */
    overflow: hidden !important; /* No scroll needed for horizontal side-by-side */
    position: relative;
}

/* Specific position for panel to be a bit more to the left */
.full-page-equipo .glass-panel-wrapper {
    margin-right: auto; /* Push panel to left, button to right */
}

/* Shrink the glass panel inside the standalone page */
.full-page-equipo .glass-panel {
    width: 380px;
    padding: 1.8rem;
}

.full-page-equipo .panel-title {
    font-size: 2rem;
}

.full-page-equipo .panel-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.full-page-equipo .panel-text {
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* Flags Grid Styles */
.panel-flags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2rem;
    justify-content: center;
}

.flag-img {
    width: 28px;
    height: 19px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
    transition: all 0.3s ease;
    cursor: pointer;
}

.flag-img:hover {
    transform: scale(1.4) translateY(-5px);
    filter: drop-shadow(0 0 15px var(--neon-blue));
    border-color: var(--neon-blue);
    z-index: 10;
}

/* External button on equipo page */
.equipo-external-cta {
    position: relative;
    z-index: 40;
}

#equipo-particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* Glassmorphism Floating Panel Container */
.glass-panel-wrapper {
    position: relative;
    width: 100%;
    max-width: 700px;
    perspective: 1500px; /* Necesario para la rotación 3D (puerta) */
    z-index: 20;
    animation: floatPanel 5s ease-in-out infinite;
}

/* Animación de flotar (idle) */
@keyframes floatPanel {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* El Panel en sí */
.glass-panel {
    position: relative;
    width: 100%;
    padding: 3rem;
    background: rgba(10, 15, 30, 0.4); /* Translúcido oscuro */
    backdrop-filter: blur(25px); /* Desenfoque fuerte (glassmorphism) */
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px; /* Bordes redondeados suaves */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.05);
    
    /* Configuración de transición y estado inicial de la "puerta" 3D */
    transform-origin: left center;
    transform: rotateY(-5deg) scale(0.98); /* Ligeramente cerrado/inclinado por defecto */
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.8s ease, border-color 0.8s ease;
    overflow: hidden; /* Mantener la luz reflejada adentro */
}

/* Al pasar el cursor: Panel se "abre" */
.glass-panel-wrapper:hover .glass-panel {
    transform: rotateY(0deg) scale(1); /* Se pone de frente totalmente */
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.6), inset 0 0 25px rgba(0, 243, 255, 0.15), 0 0 30px rgba(157, 78, 221, 0.2);
    border-color: rgba(0, 243, 255, 0.3);
}

/* Contenido Interno (Aparece al abrir) */
.panel-content {
    opacity: 0.6;
    transform: translateX(-20px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Al abrir (hover), se desliza y se muestra completamente */
.glass-panel-wrapper:hover .panel-content {
    opacity: 1;
    transform: translateX(0);
}

/* Tipografía de Nuestro Equipo */
.panel-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.panel-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--neon-blue);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.panel-text {
    font-size: 1.05rem;
    color: #cbd2e0; /* Gray claro */
    font-weight: 300;
    line-height: 1.8;
}

.panel-text strong {
    color: var(--text-primary);
    font-weight: 600;
    text-shadow: 0 0 8px rgba(157, 78, 221, 0.6);
}

/* Reflejo Dinámico (Sweep effect) */
.panel-light-sweep {
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    z-index: 25;
    pointer-events: none;
    transition: left 0s; /* Sin transición al reiniciar */
}

/* Al hacer hover, la luz pasa rápidamente barriendo */
.glass-panel-wrapper:hover .panel-light-sweep {
    left: 200%;
    transition: left 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Servicios Holographic Section & Page */
.servicios-page {
    overflow-x: hidden;
    background: #03050a;
}

.servicios-section, .servicios-content-wrapper {
    position: relative;
    padding: 120px 5% 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.servicios-bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
    opacity: 0.6;
}

#neural-canvas, #servicios-particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.section-title {
    font-size: 3.5rem;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    perspective: 2000px;
    width: 100%;
    max-width: 1100px;
}

.service-card {
    position: relative;
    background: rgba(255, 255, 255, 0.01); /* even more translucent */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 243, 255, 0.08);
    border-radius: 12px;
    padding: 30px 20px;
    height: 220px; /* Smaller height as requested */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-style: preserve-3d;
    cursor: pointer;
    overflow: hidden;
    text-align: center;
}

.service-card:hover {
    background: rgba(0, 243, 255, 0.03);
    border-color: rgba(0, 243, 255, 0.35);
    transform: translateZ(20px) translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 243, 255, 0.15);
}

.service-icon {
    font-size: 2.2rem;
    color: var(--neon-blue);
    margin-bottom: 1.2rem;
    filter: drop-shadow(0 0 10px var(--neon-blue));
    transition: all 0.5s ease;
}

.service-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.15rem;
    color: #fff;
    margin: 0;
    transition: all 0.5s ease;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Expansion state - Show description & Extra Illumination */
.service-card.active {
    height: 320px;
    background: rgba(10, 15, 30, 0.5); /* translucent background */
    border-color: rgba(0, 243, 255, 0.8);
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.4), 
                inset 0 0 20px rgba(0, 243, 255, 0.3); /* internal glow */
    padding-top: 40px;
}

.service-card.active .service-icon {
    transform: translateY(-10px) scale(0.85);
}

.service-card.active h3 {
    transform: translateY(-10px);
    margin-bottom: 1rem;
}

.service-card.active .service-desc {
    opacity: 1;
    max-height: 120px;
    margin-top: 10px;
}

/* Hologram Scanning Light */
.hologram-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, transparent 0%, rgba(0, 243, 255, 0.05) 50%, transparent 100%);
    background-size: 100% 200%;
    animation: scanLine 4s linear infinite;
    pointer-events: none;
    opacity: 0.2;
}

@keyframes scanLine {
    0% { background-position: 0 -100%; }
    100% { background-position: 0 100%; }
}

/* Pulse Ring Effect */
.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border: 2px solid var(--neon-blue);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.service-card.trigger-pulse .pulse-ring {
    animation: holographicPulse 0.7s ease-out forwards;
}

@keyframes holographicPulse {
    0% { width: 0; height: 0; opacity: 1; }
    100% { width: 500px; height: 500px; opacity: 0; }
}

/* Matrix Digital Rain for Individual Cards */
.card-matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.service-card:hover .card-matrix-canvas,
.service-card.active .card-matrix-canvas {
    opacity: 0.4;
}

/* CTA Button at bottom of Services */
.servicios-cta-container {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.btn-purple {
    background: rgba(157, 78, 221, 0.1) !important;
    border-color: rgba(157, 78, 221, 0.5) !important;
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.2);
}

.btn-purple:hover {
    background: rgba(157, 78, 221, 0.2) !important;
    border-color: rgba(157, 78, 221, 1) !important;
    box-shadow: 0 0 40px rgba(157, 78, 221, 0.5);
    transform: translateY(-5px) scale(1.05);
}

.btn-purple .btn-glow {
    background: radial-gradient(circle, rgba(157, 78, 221, 0.6) 0%, transparent 70%) !important;
}

.btn-purple .ray {
    background: rgba(157, 78, 221, 0.6) !important;
}

/* Responsive Grid */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 760px;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
    }
    .section-title {
        font-size: 2.8rem;
    }
}

/* Responsive constraints */
@media (max-width: 1024px) {
    .bg-logo {
        width: 80%;
    }
    .hero {
        padding-top: 100px;
    }
    .main-title {
        font-size: 2.8rem;
    }
    
    .full-page-equipo {
        flex-direction: column !important;
        justify-content: flex-start !important;
        gap: 3rem;
        padding-top: 120px !important;
        min-height: auto;
        height: auto;
    }
    
    .full-page-equipo .glass-panel-wrapper {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
        height: 70px;
    }

    .nav-social-links {
        gap: 0.8rem;
        margin-left: 1rem;
    }

    .nav-social-links a {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .mobile-menu-btn {
        display: flex;
        margin-left: auto; /* Push hamburger to right */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(3, 5, 10, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        border-left: 1px solid rgba(0, 243, 255, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li a {
        font-size: 1.5rem;
        font-family: 'Orbitron', sans-serif;
    }

    /* Hero adjustments */
    .hero {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        padding-bottom: 50px;
    }

    .android-container {
        height: 60vh;
        max-width: 100%;
    }

    .android-robot {
        height: 90%;
    }

    .hero-agenda-btn-container {
        bottom: 2rem;
        position: relative;
        margin-top: -5vh;
    }

    .main-content-section {
        padding: 50px 20px;
    }

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

    .subtitle {
        font-size: 1.1rem;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    /* Equipo Page adjustments */
    .full-page-equipo .glass-panel {
        width: 95%;
        padding: 1.5rem;
    }
    
    .full-page-equipo .panel-title {
        font-size: 1.8rem;
    }
    
    .panel-flags-grid {
        gap: 10px;
    }
    
    .flag-img {
        width: 30px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .nav-social-links {
        display: none; /* Hide socials in navbar for very small screens, maybe add to mobile menu */
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .android-container {
        height: 50vh;
    }
}

/* ---------------------------------------------------------------- //
   7. Contact Page (Holographic Interface)
// ---------------------------------------------------------------- */

.contacto-page {
    overflow-x: hidden;
    background: #03050a;
}

.contacto-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #000;
}

#contacto-particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    pointer-events: none;
}

.contacto-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: saturate(1.2) contrast(1.1);
}

.volumetric-fog {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 243, 255, 0.05), transparent 70%);
    pointer-events: none;
    animation: fogBreath 10s ease-in-out infinite alternate;
}

@keyframes fogBreath {
    from { opacity: 0.3; transform: scale(1); }
    to { opacity: 0.7; transform: scale(1.1); }
}

.contacto-main {
    min-height: 100vh;
    padding: 120px 20px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contacto-container {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Interactive Message Section */
.contacto-message-container {
    padding: 20px;
    animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.interactive-text {
    font-size: 2.2rem;
    line-height: 1.4;
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    word-spacing: 0.2rem;
}

.interactive-text span {
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.interactive-text span:hover {
    color: #fff;
    transform: translateY(-5px) scale(1.1);
    text-shadow: 0 0 15px var(--neon-blue), 
                 0 0 30px var(--neon-purple);
    animation: colorCycle 2s infinite alternate;
}

@keyframes colorCycle {
    0% { color: var(--neon-blue); }
    100% { color: var(--neon-purple); }
}

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

/* Sphere Section (Left) */
/* Contact Panel (Center) */
.contact-panel-wrapper {
    perspective: 2000px;
    width: 100%;
    max-width: 550px;
}

.glass-hologram {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 35px;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 
                inset 0 0 40px rgba(0, 243, 255, 0.05);
    transition: transform 0.1s ease-out;
}

.glass-hologram::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border-radius: 26px;
    background: linear-gradient(135deg, 
                rgba(0, 243, 255, 0.5), 
                transparent, 
                rgba(157, 78, 221, 0.5), 
                rgba(0, 255, 170, 0.5), 
                rgba(255, 0, 150, 0.5));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: destination-out;
    padding: 1px;
    opacity: 0.3;
    pointer-events: none;
}

.panel-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-family: 'Orbitron', sans-serif;
}

.panel-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.holographic-form .form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    color: var(--neon-blue);
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(0, 243, 255, 0.5);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.btn-cyber {
    width: 100%;
    margin-top: 20px;
    padding: 18px !important;
    font-family: 'Orbitron', sans-serif !important;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Responsive Contact Page */
@media (max-width: 1100px) {
    .contacto-container {
        grid-template-columns: 1fr;
        padding-top: 50px;
        gap: 80px;
    }

}

@media (max-width: 600px) {
    .glass-hologram {
        padding: 30px 20px;
    }

    .panel-header h1 {
        font-size: 1.8rem;
    }
}

/* ---------------------------------------------------------------- //
   8. Portal Transition Effect
// ---------------------------------------------------------------- */

.portal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    z-index: 9999;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease, backdrop-filter 0.8s ease;
    backdrop-filter: blur(0px);
}

.portal-overlay.active {
    opacity: 1;
    pointer-events: all;
    background: rgba(0, 2, 8, 1); /* Pure black for cleaner transition */
    backdrop-filter: blur(20px);
}

.portal-overlay.active.flash {
    background: #fff;
    filter: brightness(2) contrast(1.5);
}

.portal-overlay.active.flash .portal-core {
    background: #fff;
    box-shadow: 0 0 200px #fff;
}

.portal-core {
    position: absolute;
    width: 0;
    height: 0;
    background: radial-gradient(circle, #fff 0%, #00f3ff 20%, #3c096c 40%, #10002b 70%, transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 100px #00f3ff, 0 0 200px #3c096c;
    transition: width 1.8s cubic-bezier(1, 0, 0, 1), height 1.8s cubic-bezier(1, 0, 0, 1);
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    pointer-events: none;
}

.portal-overlay.active .portal-core {
    width: 300vw;
    height: 300vw;
}

.portal-energy-rings {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 2px solid #00b4d8;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.5);
    transition: all 1s ease;
}

.portal-overlay.active .portal-energy-rings {
    opacity: 1;
    transform: scale(3);
    border-width: 20px;
    filter: blur(10px);
    animation: portalSpin 2s linear infinite;
}

#portal-canvas {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.portal-holograms {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
}

.portal-overlay.active .portal-holograms {
    opacity: 0.6;
}

.holo-panel {
    position: absolute;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    color: var(--neon-blue);
    padding: 10px 20px;
    background: rgba(0, 243, 255, 0.03);
    border: 1px solid rgba(0, 243, 255, 0.1);
    backdrop-filter: blur(5px);
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: holoFlicker 0.2s infinite alternate, holoFloat 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes holoFloat {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
    50% { opacity: 0.4; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.holo-top { top: 20%; left: 50%; transform: translateX(-50%); }
.holo-bottom { bottom: 20%; left: 50%; transform: translateX(-50%); }
.holo-left { left: 10%; top: 50%; transform: translateY(-50%) rotate(-90deg); }
.holo-right { right: 10%; top: 50%; transform: translateY(-50%) rotate(90deg); }

@keyframes holoFlicker {
    0% { opacity: 0.3; filter: brightness(0.8); }
    100% { opacity: 0.8; filter: brightness(1.2); }
}

@keyframes portalSpin {
    from { transform: scale(3) rotate(0deg); }
    to { transform: scale(3) rotate(360deg); }
}

/* --------------------------------------------------- */
/* Noticias Page Styles */
/* --------------------------------------------------- */

.noticias-page {
    background: #000;
}

#noticias-matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.6;
}

.noticias-main {
    padding-top: 100px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-bottom: 50px;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
}

.newspaper-container {
    width: 95%;
    max-width: 1200px;
    background: rgba(5, 10, 30, 0.65);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    color: #e0e6f0;
    padding: 3rem;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6),
                0 0 80px rgba(0, 243, 255, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: rotateX(2deg) rotateY(-1deg);
    border: 1px solid rgba(0, 243, 255, 0.15);
    animation: paperUnfold 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Playfair Display', serif;
}

@keyframes paperUnfold {
    0% { opacity: 0; transform: scale(0.9) rotateX(10deg); filter: brightness(0.3); }
    100% { opacity: 1; transform: scale(1) rotateX(2deg) rotateY(-1deg); filter: brightness(1); }
}

.newspaper-header {
    text-align: center;
    border-bottom: 4px double rgba(0, 243, 255, 0.3);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.newspaper-meta {
    display: flex;
    justify-content: space-between;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: rgba(0, 243, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.newspaper-title {
    font-size: 5rem;
    font-weight: 900;
    margin: 10px 0;
    letter-spacing: -2px;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.3), 2px 2px 0px rgba(0, 243, 255, 0.15);
}

.newspaper-tagline {
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: rgba(157, 78, 221, 0.8);
}

.newspaper-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.4), rgba(157, 78, 221, 0.4), transparent);
    width: 100%;
    margin: 10px 0;
}

.newspaper-breaking {
    background: rgba(0, 243, 255, 0.08);
    border: 1px solid rgba(0, 243, 255, 0.2);
    color: #e0e6f0;
    display: flex;
    align-items: center;
    padding: 5px 10px;
}

.breaking-label {
    background: var(--neon-blue);
    color: #000;
    padding: 2px 8px;
    font-family: 'Space Mono', monospace;
    font-weight: bold;
    font-size: 0.8rem;
    margin-right: 15px;
    box-shadow: 0 0 10px var(--neon-blue);
}

.breaking-news-wrapper {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.breaking-news {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    display: inline-block;
    white-space: nowrap;
    animation: ticker-scroll 30s linear infinite;
    margin: 0;
}

@keyframes ticker-scroll {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.newspaper-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    padding: 1rem 0;
}

/* Specific styling for news items in the grid */
.news-gadget {
    display: block !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    color: #e0e6f0 !important;
    border-bottom: 1px solid rgba(0, 243, 255, 0.1) !important;
    padding-bottom: 1.5rem !important;
    transition: all 0.3s ease;
}

.news-gadget:first-child {
    grid-column: span 1;
    grid-row: span 2;
    border-right: 1px solid rgba(0, 243, 255, 0.1);
    padding-right: 2rem;
}

.news-gadget:hover {
    transform: translateY(-5px);
    opacity: 0.8;
}

.news-image {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9;
    filter: grayscale(0.3) contrast(1.1) brightness(0.85);
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 243, 255, 0.2) !important;
}

.news-title {
    font-size: 1.8rem !important;
    line-height: 1.1;
    margin-bottom: 1rem !important;
    font-family: 'Playfair Display', serif !important;
    color: #ffffff !important;
}

.news-category {
    color: var(--neon-blue) !important;
    font-weight: bold;
    font-size: 0.8rem !important;
    text-shadow: 0 0 6px rgba(0, 243, 255, 0.4) !important;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.2);
    padding: 2px 6px;
}

.news-meta {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem !important;
    color: rgba(160, 165, 181, 0.7) !important;
}

.newspaper-footer {
    margin-top: 3rem;
    text-align: center;
}

.footer-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.3), transparent);
    width: 60%;
    margin: 0 auto 1rem;
}

.newspaper-footer p {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    opacity: 0.7;
    color: rgba(160, 165, 181, 0.8);
}

/* Responsiveness for newspaper */
@media (max-width: 900px) {
    .newspaper-grid {
        grid-template-columns: 1fr;
    }
    .newspaper-title {
        font-size: 3rem;
    }
    .newspaper-container {
        padding: 1.5rem;
    }
}

/* --------------------------------------------------- */
/* Appointment Modal Styles */
/* --------------------------------------------------- */

.appt-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.appt-modal-backdrop.visible {
    opacity: 1;
    pointer-events: all;
}

.appt-modal {
    position: relative;
    background: rgba(3, 5, 15, 0.6);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 2.5rem;
    width: 95%;
    max-width: 480px;
    color: #fff;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.appt-modal-backdrop.visible .appt-modal {
    transform: translateY(0) scale(1);
}

/* Animated RGB Border */
.appt-modal::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: linear-gradient(90deg, #00f3ff, #9d4edd, #00f3ff, #9d4edd);
    background-size: 300% 100%;
    animation: rgbBorder 4s linear infinite;
    z-index: -1;
}

.appt-modal::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: rgba(3, 5, 15, 0.75);
    z-index: -1;
}

@keyframes rgbBorder {
    0%   { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.appt-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.appt-modal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #00f3ff;
    letter-spacing: 1px;
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
}

.appt-modal-close {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #a0a5b5;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.appt-modal-close:hover {
    background: rgba(0, 243, 255, 0.1);
    border-color: rgba(0, 243, 255, 0.5);
    color: #00f3ff;
}

.appt-modal-subtitle {
    font-size: 0.85rem;
    color: #a0a5b5;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.appt-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.appt-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.appt-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.appt-field label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 1.5px;
    color: #9d4edd;
    text-transform: uppercase;
}

.appt-field input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(157, 78, 221, 0.3);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.appt-field input:focus {
    border-color: rgba(0, 243, 255, 0.7);
    background: rgba(0, 243, 255, 0.04);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
}

.appt-field input::placeholder {
    color: rgba(160, 165, 181, 0.5);
}

.appt-field input[type="date"],
.appt-field input[type="time"] {
    color-scheme: dark;
}

.appt-submit-btn {
    width: 100%;
    padding: 0.9rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, #00f3ff, #9d4edd);
    color: #000;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    box-shadow: 0 5px 25px rgba(0, 243, 255, 0.25);
}

.appt-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(0, 243, 255, 0.4);
    filter: brightness(1.1);
}

.appt-success-msg {
    text-align: center;
    padding: 2rem 0;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.appt-success-msg .success-icon {
    font-size: 3rem;
    color: #00f3ff;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.8);
    animation: pulseGlow 2s infinite;
}

.appt-success-msg h3 {
    font-family: 'Orbitron', sans-serif;
    color: #00f3ff;
    font-size: 1.1rem;
}

.appt-success-msg p {
    color: #a0a5b5;
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .appt-form-row {
        grid-template-columns: 1fr;
    }
    .appt-modal {
        padding: 1.5rem;
    }
    .appt-modal-title {
        font-size: 0.95rem;
    }
}

/* ================================================ */
/* PREMIUM CONTRATAR EXPERIENCE                     */
/* ================================================ */

/* --- "Contratar ahora" Trigger Button --- */
.btn-contratar {
    position: relative;
    background: #000;
    border: 2px solid #c9a84c;
    color: #f0d580;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    margin-top: 1.5rem;
    margin-left: 1rem;
    transition: all 0.4s ease;
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.3),
                inset 0 0 10px rgba(201, 168, 76, 0.05);
}

.btn-contratar:hover {
    box-shadow: 0 0 40px rgba(201, 168, 76, 0.7),
                0 0 80px rgba(201, 168, 76, 0.3),
                inset 0 0 20px rgba(201, 168, 76, 0.1);
    transform: translateY(-3px);
    border-color: #f0d580;
}

.btn-contratar-glow {
    position: absolute;
    inset: -2px;
    border-radius: 8px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.4), transparent);
    background-size: 200% 100%;
    animation: goldSweep 2.5s linear infinite;
}

@keyframes goldSweep {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.btn-contratar-sparks span {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #f0d580;
    border-radius: 50%;
    box-shadow: 0 0 6px #f0d580;
    animation: sparkFloat 2s ease-in-out infinite;
}
.btn-contratar-sparks span:nth-child(1) { top: 10%; left: 15%; animation-delay: 0s; }
.btn-contratar-sparks span:nth-child(2) { top: 20%; right: 18%; animation-delay: 0.5s; }
.btn-contratar-sparks span:nth-child(3) { bottom: 15%; left: 25%; animation-delay: 1s; }
.btn-contratar-sparks span:nth-child(4) { bottom: 20%; right: 10%; animation-delay: 1.5s; }

@keyframes sparkFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 1; }
    50% { transform: translateY(-8px) scale(1.5); opacity: 0.5; }
}

/* --- Slide-up Dashboard Backdrop --- */
.ctr-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.ctr-backdrop.visible {
    opacity: 1;
    pointer-events: all;
}

/* --- Slide-up Panel --- */
.ctr-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 92vh;
    background: #050505;
    border-top: 2px solid #c9a84c;
    border-radius: 24px 24px 0 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    padding: 2rem;
    box-shadow: 0 -20px 80px rgba(201, 168, 76, 0.2);
}
.ctr-panel.open {
    transform: translateY(0);
}

/* Circuit pattern overlay for panel */
.ctr-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(201, 168, 76, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 168, 76, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    border-radius: 24px 24px 0 0;
    pointer-events: none;
}

/* --- Panel Header --- */
.ctr-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.ctr-logo-video {
    width: 80px;
    height: auto;
    border-radius: 8px;
    opacity: 0.9;
    filter: sepia(1) saturate(3) hue-rotate(5deg) brightness(1.2);
}

.ctr-header-center {
    text-align: center;
    flex: 1;
    padding: 0 1rem;
}

.ctr-panel-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(90deg, #c9a84c, #f0d580, #e8e8e8, #c9a84c);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShimmer 4s linear infinite;
    letter-spacing: 2px;
}

@keyframes goldShimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.ctr-panel-subtitle {
    font-size: 0.8rem;
    color: #8a8a8a;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 0.3rem;
}

.ctr-panel-close {
    background: transparent;
    border: 1px solid rgba(201, 168, 76, 0.3);
    color: #c9a84c;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.ctr-panel-close:hover {
    background: rgba(201, 168, 76, 0.1);
    box-shadow: 0 0 15px rgba(201, 168, 76, 0.5);
}

/* --- Comparison Dashboard --- */
.ctr-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

/* Column shared */
.ctr-col {
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Our Agency - Gold highlight */
.ctr-col-us {
    background: linear-gradient(145deg, #0d0a00 0%, #1a1200 100%);
    border: 1px solid #c9a84c;
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.15), inset 0 0 20px rgba(201, 168, 76, 0.05);
}
.ctr-col-us::before {
    content: '★ MEJOR OPCIÓN';
    position: absolute;
    top: 12px;
    right: 12px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.55rem;
    font-weight: 700;
    color: #000;
    background: linear-gradient(90deg, #c9a84c, #f0d580);
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 1px;
}

/* Traditional agencies column */
.ctr-col-trad {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

/* Traditional advertising column */
.ctr-col-pub {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.ctr-col-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}
.ctr-col-us .ctr-col-label { color: #f0d580; }
.ctr-col-trad .ctr-col-label, .ctr-col-pub .ctr-col-label { color: #8a8a8a; }

.ctr-col-desc {
    font-size: 0.7rem;
    color: #555;
    margin-bottom: 1.5rem;
}

/* --- Metric bars --- */
.ctr-metrics { display: flex; flex-direction: column; gap: 0.9rem; }
.ctr-metric-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    margin-bottom: 0.3rem;
}
.ctr-col-us .ctr-metric-label { color: #c9a84c; }
.ctr-col-trad .ctr-metric-label, .ctr-col-pub .ctr-metric-label { color: #5a5a5a; }

.ctr-metric-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
}
.ctr-col-us .ctr-metric-value { color: #f0d580; }
.ctr-col-trad .ctr-metric-value, .ctr-col-pub .ctr-metric-value { color: #6a6a6a; }

.ctr-bar-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.ctr-bar-fill {
    height: 100%;
    border-radius: 10px;
    width: 0%;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.ctr-col-us .ctr-bar-fill {
    background: linear-gradient(90deg, #8a6200, #c9a84c, #f0d580);
    box-shadow: 0 0 8px rgba(201, 168, 76, 0.8);
}
.ctr-col-trad .ctr-bar-fill {
    background: linear-gradient(90deg, #333, #555);
}
.ctr-col-pub .ctr-bar-fill {
    background: linear-gradient(90deg, #222, #3a3a3a);
}

/* KPI summary row */
.ctr-kpi-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.ctr-kpi {
    background: rgba(201, 168, 76, 0.04);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}
.ctr-kpi-val {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(90deg, #c9a84c, #f0d580);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ctr-kpi-label {
    font-size: 0.65rem;
    color: #6a6a6a;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 0.3rem;
}

/* --- Empezar Ahora CTA Button --- */
.ctr-cta-row {
    text-align: center;
    padding-bottom: 2rem;
}

.btn-empezar {
    position: relative;
    background: #000;
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 10px;
    overflow: visible;
    display: inline-block;
}

.btn-empezar-inner {
    position: relative;
    display: block;
    background: #000;
    color: #f0d580;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    padding: 1.1rem 3rem;
    border-radius: 10px;
    z-index: 2;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: all 0.3s ease;
}

.btn-empezar::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    background: linear-gradient(90deg, #c9a84c, #f0d580, #fff, #c9a84c);
    background-size: 300% 100%;
    animation: goldBorderAnim 3s linear infinite;
    z-index: 1;
}

.btn-empezar::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 20px;
    background: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.25) 0%, transparent 70%);
    animation: auraGold 2s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes goldBorderAnim {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

@keyframes auraGold {
    0% { opacity: 0.4; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1.05); }
}

.btn-empezar:hover .btn-empezar-inner {
    color: #fff;
    text-shadow: 0 0 20px rgba(240, 213, 128, 0.8);
    background: rgba(201, 168, 76, 0.08);
}

/* Spark particles around Empezar button */
.btn-empezar-sparks {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}
.btn-empezar-sparks span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #f0d580;
    border-radius: 50%;
    box-shadow: 0 0 8px #f0d580, 0 0 15px #c9a84c;
    animation: sparkOrbit 3s ease-in-out infinite;
}
.btn-empezar-sparks span:nth-child(1) { top: 0; left: 20%; animation-delay: 0s; }
.btn-empezar-sparks span:nth-child(2) { top: 0; right: 20%; animation-delay: 0.5s; }
.btn-empezar-sparks span:nth-child(3) { bottom: 0; left: 30%; animation-delay: 1s; }
.btn-empezar-sparks span:nth-child(4) { bottom: 0; right: 30%; animation-delay: 1.5s; }
.btn-empezar-sparks span:nth-child(5) { top: 50%; left: 0; animation-delay: 2s; }
.btn-empezar-sparks span:nth-child(6) { top: 50%; right: 0; animation-delay: 2.5s; }

@keyframes sparkOrbit {
    0%, 100% { transform: translateY(0) scale(1); opacity: 1; }
    50% { transform: translateY(-12px) scale(0.5); opacity: 0; }
}

/* ================================================ */
/* PREMIUM CINEMATIC FORM                           */
/* ================================================ */

.premium-form-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.premium-form-backdrop.visible {
    opacity: 1;
    pointer-events: all;
}

.premium-form-panel {
    position: relative;
    width: 95%;
    max-width: 550px;
    background: rgba(5, 4, 0, 0.8);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(201, 168, 76, 0.3);
    box-shadow: 0 0 60px rgba(201, 168, 76, 0.15);
    transform: scale(0.9) translateY(40px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
    overflow: hidden;
}
.premium-form-backdrop.visible .premium-form-panel {
    transform: scale(1) translateY(0);
}

/* Lava canvas background */
#lava-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    opacity: 0.25;
    z-index: 0;
}

.premium-form-content {
    position: relative;
    z-index: 1;
}

.premium-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.premium-form-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    background: linear-gradient(90deg, #c9a84c, #f0d580, #fff, #c9a84c);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShimmer 4s linear infinite;
    letter-spacing: 2px;
    margin-bottom: 0.4rem;
}

.premium-form-subtitle {
    font-size: 0.75rem;
    color: #7a7260;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.premium-form-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: 1px solid rgba(201, 168, 76, 0.3);
    color: #c9a84c;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
}
.premium-form-close:hover {
    background: rgba(201, 168, 76, 0.15);
    box-shadow: 0 0 15px rgba(201, 168, 76, 0.5);
}

.premium-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.premium-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.premium-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.premium-field label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: #8a7040;
    text-transform: uppercase;
}

.premium-field input,
.premium-field select {
    background: rgba(201, 168, 76, 0.04);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    color: #f0d580;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.premium-field input::placeholder { color: rgba(201, 168, 76, 0.25); }
.premium-field select option { background: #0d0900; color: #f0d580; }

.premium-field input:focus,
.premium-field select:focus {
    border-color: rgba(201, 168, 76, 0.8);
    background: rgba(201, 168, 76, 0.07);
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.15);
}

.premium-field input[type="date"] { color-scheme: dark; }

.premium-submit-btn {
    position: relative;
    width: 100%;
    padding: 1rem;
    margin-top: 0.5rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #8a6200, #c9a84c, #f0d580, #c9a84c, #8a6200);
    background-size: 300% 100%;
    animation: goldBorderAnim 3s linear infinite;
    color: #000;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 5px 30px rgba(201, 168, 76, 0.4);
    transition: all 0.3s ease;
}
.premium-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 50px rgba(201, 168, 76, 0.6);
}

.premium-success {
    text-align: center;
    padding: 2rem 0;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.premium-success-icon {
    font-size: 3.5rem;
    background: linear-gradient(90deg, #c9a84c, #f0d580);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.premium-success h3 {
    font-family: 'Orbitron', sans-serif;
    color: #f0d580;
    font-size: 1.1rem;
}
.premium-success p { color: #8a7040; font-size: 0.85rem; }

@media (max-width: 700px) {
    .ctr-dashboard { grid-template-columns: 1fr; }
    .ctr-kpi-row { grid-template-columns: 1fr 1fr; }
    .premium-form-row { grid-template-columns: 1fr; }
    .ctr-panel-title { font-size: 1rem; }
}

/* Footer General */
.site-footer {
    position: relative;
    width: 100%;
    padding: 1.5rem 0;
    text-align: center;
    background: rgba(3, 5, 10, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
}

.site-footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin: 0;
    text-transform: uppercase;
}

.site-footer .highlight-lai {
    color: var(--neon-blue);
    font-weight: 600;
}

.site-footer .highlight-xpande {
    color: var(--neon-purple);
    font-weight: 600;
}

.footer-xpande-logo {
    height: 20px;
    vertical-align: middle;
    margin-left: 8px;
    margin-bottom: 3px;
    filter: drop-shadow(0 0 5px rgba(157, 78, 221, 0.4));
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    color: #fff;
    font-size: 32px;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }
    .whatsapp-float i {
        font-size: 28px;
    }
}

/* --------------------------------------------------- */
/* Testimonios Section */
/* --------------------------------------------------- */
.testimonios-section {
    position: relative;
    width: 100%;
    padding: 100px 5%;
    background: radial-gradient(circle at center, rgba(3, 5, 10, 0.9) 0%, rgba(3, 5, 10, 1) 100%);
    z-index: 10;
    overflow: hidden;
}

.testimonios-header {
    text-align: center;
    margin-bottom: 4rem;
}

.testimonios-header .section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.testimonios-header .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.testimonio-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 243, 255, 0.1);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonio-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(0, 243, 255, 0.4);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 243, 255, 0.2);
}

.testimonio-hologram {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.1), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
    z-index: 1;
    pointer-events: none;
}

.testimonio-card:hover .testimonio-hologram {
    left: 200%;
}

.testimonio-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.testimonio-icon {
    font-size: 2.5rem;
    color: var(--neon-blue);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.testimonio-company {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    letter-spacing: 1px;
}

.testimonio-divider {
    width: 40px;
    height: 2px;
    background: var(--neon-purple);
    margin-bottom: 1.5rem;
    box-shadow: 0 0 5px var(--neon-purple);
    transition: width 0.3s ease;
}

.testimonio-card:hover .testimonio-divider {
    width: 80px;
    background: var(--neon-blue);
    box-shadow: 0 0 8px var(--neon-blue);
}

.testimonio-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonio-stars {
    color: #ffd700;
    font-size: 0.9rem;
    display: flex;
    gap: 4px;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.4));
}

@media (max-width: 768px) {
    .testimonios-section {
        padding: 60px 5%;
    }
    .testimonios-header .section-title {
        font-size: 2.2rem;
    }
}

/* --------------------------------------------------- */
/* Testimonial Submission Form */
/* --------------------------------------------------- */
.add-testimonial-wrapper {
    max-width: 800px;
    margin: 5rem auto 0;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 243, 255, 0.05);
}

.add-testimonial-wrapper .form-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.testimonial-form .form-group {
    margin-bottom: 1.5rem;
}

.testimonial-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.testimonial-form input[type="text"],
.testimonial-form select,
.testimonial-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(3, 5, 10, 0.6);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.testimonial-form input:focus,
.testimonial-form select:focus,
.testimonial-form textarea:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
    background: rgba(0, 243, 255, 0.05);
}

.star-rating-input {
    display: flex;
    gap: 8px;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.star-rating-input i {
    transition: color 0.2s ease, transform 0.2s ease;
}

.star-rating-input i.active,
.star-rating-input i.hover {
    color: #ffd700;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
    transform: scale(1.2);
}

.testimonial-form button {
    width: 100%;
    margin-top: 1rem;
}

.success-msg {
    text-align: center;
    color: #00f3ff;
    font-size: 1.2rem;
    margin-top: 2rem;
    padding: 1rem;
    border: 1px solid rgba(0, 243, 255, 0.5);
    border-radius: 8px;
    background: rgba(0, 243, 255, 0.1);
    animation: fadeUp 0.5s ease forwards;
}

.success-msg.hidden {
    display: none;
}

@media (max-width: 768px) {
    .add-testimonial-wrapper {
        padding: 2rem 1.5rem;
    }
}

/* --------------------------------------------------- */
/* COMPREHENSIVE MOBILE RESPONSIVE ENHANCEMENTS        */
/* --------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 768px) {
    #particle-canvas,
    #equipo-particle-canvas,
    #noticias-matrix-canvas,
    #neural-canvas,
    #servicios-particle-canvas,
    #contacto-particles-canvas {
        opacity: 0.15;
    }

    .card-matrix-canvas-wrapper {
        display: none;
    }

    .contacto-main {
        padding: 90px 15px 40px;
    }

    .contacto-container {
        gap: 30px;
    }

    .contacto-message-container {
        order: -1;
        padding: 10px;
    }

    .interactive-text {
        font-size: 1.3rem;
        text-align: center;
    }

    .panel-header p {
        margin-bottom: 25px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px;
        padding: 12px;
    }

    .holographic-form .form-group {
        margin-bottom: 18px;
    }

    .newspaper-title {
        font-size: 2rem;
        letter-spacing: 0;
    }

    .newspaper-meta {
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;
    }

    .newspaper-tagline {
        font-size: 0.9rem;
    }

    .newspaper-container {
        transform: none;
    }

    .noticias-main {
        padding-top: 85px;
        padding-bottom: 30px;
    }

    .servicios-content-wrapper {
        padding: 95px 4% 60px;
    }

    .service-card {
        height: auto;
        min-height: 150px;
    }

    .service-card.active {
        height: auto;
        min-height: 250px;
    }

    .services-grid {
        max-width: 100%;
    }

    .btn-contratar {
        margin-left: 0;
        width: 100%;
        max-width: 300px;
    }

    .servicios-cta-container {
        margin-top: 40px;
    }

    .testimonios-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .testimonio-card {
        padding: 2rem 1.5rem;
    }

    .testimonio-company {
        font-size: 1rem;
    }

    .full-page-equipo .glass-panel {
        width: 100%;
    }

    .equipo-external-cta {
        width: 100%;
        text-align: center;
    }

    .site-footer p {
        font-size: 0.75rem;
        padding: 0 15px;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="date"],
    input[type="time"],
    select,
    textarea {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .full-page-equipo {
        padding: 95px 4% 60px !important;
        gap: 2rem;
    }

    .full-page-equipo .panel-title {
        font-size: 1.5rem;
    }

    .full-page-equipo .panel-subtitle {
        font-size: 0.85rem;
    }

    .full-page-equipo .panel-text {
        font-size: 0.85rem;
    }

    .full-page-equipo .glass-panel {
        padding: 1.2rem;
    }

    .interactive-text {
        font-size: 1.05rem;
    }

    .glass-hologram {
        padding: 25px 15px;
        border-radius: 16px;
    }

    .panel-header h1 {
        font-size: 1.6rem;
    }

    .newspaper-title {
        font-size: 1.5rem;
    }

    .newspaper-container {
        padding: 1rem;
    }

    .news-title {
        font-size: 1.1rem !important;
    }

    .add-testimonial-wrapper {
        padding: 1.5rem 1rem;
        margin-top: 3rem;
    }

    .add-testimonial-wrapper .form-title {
        font-size: 1.4rem;
    }

    .main-content-section {
        min-height: 60vh;
        margin-bottom: 10vh;
        padding: 30px 15px;
    }

    .hero-agenda-btn-container .btn-secondary {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }

    .equipo-section {
        padding: 90px 4% 60px 4%;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .breaking-news {
        font-size: 0.65rem;
    }

    .breaking-label {
        font-size: 0.65rem;
        padding: 2px 6px;
        margin-right: 8px;
    }
}

@media (max-width: 360px) {
    .main-title {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 1rem 1.5rem;
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .newspaper-title {
        font-size: 1.2rem;
    }

    .panel-header h1 {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .testimonio-icon {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .star-rating-input {
        font-size: 1.2rem;
    }
}
