/* --- Variables Globales --- */
:root {
    --primary-color: #8A2BE2; /* Morado principal (BlueViolet) */
    --primary-color-light: #A15DF2; /* Un tono más claro de morado */
    --primary-color-dark: #6A1EB2; /* Un tono más oscuro */
    --secondary-color: #1c1c1f; /* Fondo oscuro ligeramente azulado */
    --background-color: #111113; /* Fondo casi negro */
    --text-color: #e8e8e8; /* Texto principal un poco más suave */
    --text-muted-color: #a8a8a8; /* Texto secundario */
    --accent-color: #ffffff; /* Blanco para acentos */
    --success-color: #4CAF50;
    --error-color: #f44336;
    --glow-color: rgba(138, 43, 226, 0.6); /* Color del brillo primario */

    --gradient-primary: linear-gradient(135deg, var(--primary-color-light), var(--primary-color));
    --gradient-background: linear-gradient(135deg, var(--secondary-color), var(--background-color));

    --font-primary: 'Poppins', sans-serif;
    --transition-speed: 0.3s;
    --border-radius: 8px; /* Radio de borde estándar */
}

/* --- Reset Básico y Estilos Globales --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--secondary-color);
}
html::-webkit-scrollbar { width: 8px; }
html::-webkit-scrollbar-track { background: var(--secondary-color); }
html::-webkit-scrollbar-thumb { background-color: var(--primary-color); border-radius: 10px; border: 2px solid var(--secondary-color); }

body {
    font-family: var(--font-primary);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7; /* Ligeramente más espaciado */
    overflow-x: hidden;
    position: relative; /* Necesario para el fondo interactivo */
    min-height: 100vh;
}

/* Fondo Interactivo */
#interactive-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Detrás de todo el contenido */
    overflow: hidden;
    background: var(--gradient-background); /* Fondo base */
}
#interactive-bg canvas {
    display: block;
    position: absolute;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
}

body.modal-open { overflow: hidden; }

main { z-index: 1; position: relative; } /* Asegura que main esté sobre el fondo */
footer { z-index: 1; position: relative; }

.container {
    max-width: 1140px; /* Un poco más ancho */
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.6rem); color: var(--accent-color); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.2rem); color: var(--primary-color); }

p {
    margin-bottom: 1.2rem;
    color: var(--text-muted-color);
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
}

a {
    text-decoration: none;
    color: var(--primary-color-light);
    transition: color var(--transition-speed) ease;
}
a:hover { color: var(--accent-color); }

.highlight {
    color: var(--primary-color);
    font-weight: 700;
    text-shadow: 0 0 8px var(--glow-color);
}
section { padding: clamp(60px, 10vh, 100px) 0; }
.section-title, .section-subtitle { text-align: center; margin-bottom: 3rem; }
.section-title { color: var(--accent-color); font-weight: 700; }
.section-subtitle { color: var(--text-muted-color); font-weight: 400; margin-top: -2rem; }

.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; }

/* --- Header --- */
.header {
    background-color: rgba(17, 17, 19, 0.85);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.header.scrolled {
    background-color: rgba(28, 28, 31, 0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.header .container { display: flex; justify-content: space-between; align-items: center; }

.logo-link { display: inline-block; }
.logo { transition: transform var(--transition-speed) ease; }
.logo-link:hover .logo { transform: scale(1.05); }
.logo svg { display: block; overflow: visible; }
.logo-neuron-path { transition: stroke-dashoffset 0.5s ease-in-out; stroke-dasharray: 100; stroke-dashoffset: 100; animation: drawPath 2s ease-out forwards 0.5s; }
@keyframes drawPath { to { stroke-dashoffset: 0; } }
.logo-neuron-dot { transition: r var(--transition-speed) ease; }
.logo-link:hover .logo-neuron-dot { r: 5; }
.logo-text { transition: fill var(--transition-speed) ease; }
.logo-text-ai { transition: text-shadow var(--transition-speed) ease; }
.logo-link:hover .logo-text-ai { text-shadow: 0 0 10px var(--glow-color); }

/* Navegación */
.navigation ul { list-style: none; display: flex; gap: 25px; align-items: center; }
/* Estilo base para TODOS los enlaces de navegación */
.navigation a {
    color: var(--text-color);
    font-weight: 400;
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px; /* Espacio para la línea inferior */
    background: none; /* Asegura que no tenga fondo de botón */
    border: none; /* Asegura que no tenga borde de botón */
    border-radius: 0; /* Sin bordes redondeados */
    box-shadow: none; /* Sin sombra de botón */
    text-transform: none; /* Sin mayúsculas */
    letter-spacing: normal; /* Espaciado normal */
    transition: color var(--transition-speed) ease; /* Transición solo para el color */
    cursor: pointer;
}
/* Línea inferior para hover/active */
.navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}
.navigation a:hover::after, .navigation a.active::after { width: 100%; }
.navigation a:hover, .navigation a.active { color: var(--accent-color); }

/* Language Switcher in Header */
#language-switcher.header-language-switcher {
    display: flex;
    gap: 5px; /* Espacio entre botones */
    margin-left: 20px; /* Espacio a la izquierda de los enlaces de navegación */
    align-items: center;
}

#language-switcher.header-language-switcher button {
    background: none;
    border: none;
    color: var(--text-muted-color);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 4px;
    transition: color var(--transition-speed) ease, background-color var(--transition-speed) ease;
}

#language-switcher.header-language-switcher button:hover {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.1);
}

#language-switcher.header-language-switcher button.active {
    color: var(--primary-color-light);
    font-weight: 600;
    background-color: rgba(138, 43, 226, 0.2);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1100;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    padding-bottom: 60px;
    z-index: 1;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { margin-bottom: 1.5rem; color: var(--accent-color); text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero p { font-size: clamp(1rem, 2vw, 1.2rem); max-width: 650px; margin: 0 auto 2.5rem auto; color: var(--text-muted-color); }

.hero-bg-elements { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; overflow: hidden; pointer-events: none;}
.bg-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    filter: blur(70px);
    animation: float 20s ease-in-out infinite alternate;
}
.bg-shape-1 { width: clamp(300px, 40vw, 500px); height: clamp(300px, 40vw, 500px); background-color: var(--primary-color); top: 5%; left: 5%; animation-duration: 22s; }
.bg-shape-2 { width: clamp(200px, 30vw, 400px); height: clamp(200px, 30vw, 400px); background-color: var(--primary-color-light); bottom: 10%; right: 8%; animation-duration: 18s; animation-direction: alternate-reverse; }
.bg-shape-3 {
    width: clamp(150px, 25vw, 300px); height: clamp(150px, 25vw, 300px);
    background-color: #4a0e8b;
    top: 40%;
    left: 45%;
    opacity: 0.06;
    filter: blur(80px);
    animation-duration: 25s;
}

@keyframes float {
    0% { transform: translateY(0px) translateX(0px) rotate(0deg) scale(1); }
    50% { transform: translateY(-25px) translateX(20px) rotate(15deg) scale(1.05); }
    100% { transform: translateY(10px) translateX(-10px) rotate(-10deg) scale(0.95); }
}

/* --- Botones (Generales, NO para Nav) --- */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--accent-color);
    box-shadow: 0 6px 18px rgba(138, 43, 226, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color-light);
    border-color: var(--primary-color-light);
    box-shadow: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left var(--transition-speed) ease;
    z-index: 0;
}

.btn:hover::before { left: 100%; }

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.5);
}
.btn-secondary:hover {
    background-color: var(--primary-color-light);
    color: var(--accent-color);
    border-color: var(--primary-color-light);
     box-shadow: 0 6px 18px rgba(138, 43, 226, 0.4);
}

.btn > * { position: relative; z-index: 2; }

/* --- Features Section --- */
.features { background-color: rgba(28, 28, 31, 0.5); border-top: 1px solid rgba(255, 255, 255, 0.08); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 2.5rem; margin-top: 3rem; }

.feature-item {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 35px 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, border-color var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    text-align: center;
    height: 100%;
}
.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}
.feature-icon { font-size: 3rem; color: var(--primary-color); margin-bottom: 1.5rem; display: inline-block; transition: transform var(--transition-speed) ease; }
.feature-item:hover .feature-icon { transform: scale(1.1); }
.feature-item h3 { margin-bottom: 0.8rem; color: var(--accent-color); }
.feature-item p { font-size: 0.95rem; color: var(--text-muted-color); flex-grow: 1; margin-bottom: 1.5rem; }

.feature-item .btn-more-details {
    margin-top: auto;
    padding: 10px 25px;
    background-color: rgba(138, 43, 226, 0.2);
    color: var(--primary-color-light);
    border: 1px solid var(--primary-color-light);
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
    align-self: center;
}
.feature-item:hover .btn-more-details {
    background-color: var(--primary-color);
    color: var(--accent-color);
    border-color: var(--primary-color);
}

/* --- Service Detail Modal --- */
#service-detail-modal .modal-content { max-width: 700px; }
#service-details-container h3 { color: var(--primary-color); margin-bottom: 1rem; font-size: 1.5rem; }
#service-details-container p { color: var(--text-color); margin-bottom: 1rem; line-height: 1.7; }
#service-details-container ul { list-style: none; padding-left: 0; margin-top: 1rem; }
#service-details-container li {
    padding-left: 1.5em;
    position: relative;
    margin-bottom: 0.5rem;
    color: var(--text-muted-color);
}
#service-details-container li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 2px;
}

/* --- Call to Action (CTA) Section --- */
.cta {
    background: linear-gradient(rgba(17, 17, 19, 0.85), rgba(17, 17, 19, 0.9)), url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wzNjAzNTV8MHwxfHNlYXJjaHwyfHxkYXRhJTIwYW5hbHlzaXMlMjBiYWckcm91bmR8ZW5mDB8fHx8MTY4NjM2MDgwMHww&ixlib=rb-4.0.3&q=80&w=1920') center/cover no-repeat fixed;
    text-align: center;
    color: var(--accent-color);
    padding: clamp(80px, 12vh, 120px) 0;
}
.cta h2 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin-bottom: 1rem; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.cta p { font-size: clamp(1rem, 2vw, 1.15rem); margin-bottom: 2.5rem; color: var(--text-color); max-width: 600px; margin-left: auto; margin-right: auto; }
.cta .btn-secondary { border-width: 2px; color: var(--accent-color); border-color: var(--accent-color); padding: 16px 40px; }
.cta .btn-secondary:hover { background-color: var(--accent-color); color: var(--primary-color); }

/* --- FAQ Section --- */
.faq-section { background-color: var(--background-color); }
.faq-list { max-width: 850px; margin: 0 auto; }
.faq-item { background-color: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--border-radius); margin-bottom: 20px; overflow: hidden; transition: background-color var(--transition-speed) ease; }
.faq-item:hover { background-color: rgba(255, 255, 255, 0.05); }
.faq-question { padding: 10px; margin-bottom: 0rem; cursor: pointer; color: var(--accent-color); font-size: clamp(1.1rem, 2.5vw, 1.3rem); font-weight: 600; position: relative; transition: color var(--transition-speed) ease; display: flex; justify-content: space-between; align-items: center; }
.faq-question::after { content: '\f078'; font-family: 'Font Awesome 5 Free'; font-weight: 900; font-size: 1rem; transition: transform var(--transition-speed) ease; color: var(--primary-color); }
.faq-item.active .faq-question::after { transform: rotate(180deg); }
.faq-item.active .faq-question { color: var(--primary-color); }
.faq-answer {
    padding: 0 10px; /* Default padding top/bottom should be 0 */
    color: var(--text-muted-color);
    overflow: hidden;
    max-height: 0; /* Initially hidden */
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
}
.faq-item.active .faq-answer { max-height: 550px; padding-top: 10px; padding-bottom: 10px; }
.faq-answer p { margin: 10; }

/* --- Data Section --- */
.data-section { background-color: var(--secondary-color); perspective: 1200px; padding: clamp(60px, 10vh, 100px) 0; }
.data-section-title { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: transparent; background: linear-gradient(45deg, var(--primary-color), var(--accent-color)); -webkit-background-clip: text; background-clip: text; text-align: center; margin-bottom: 3rem; text-shadow: 0 0 15px rgba(138, 43, 226, 0.5); transition: text-shadow 0.5s ease; }
.data-section-title:hover { text-shadow: 0 0 20px rgba(138, 43, 226, 0.8); }

.data-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2.5rem; margin-top: 3rem; }
.data-item-container { border-radius: var(--border-radius); perspective: 1000px; min-height: 220px; cursor: pointer; background-color: rgba(255, 255, 255, 0.03); transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease; }
.data-item-container:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.25); }
.flashcard-inner { width: 100%; height: 100%; transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1); transform-style: preserve-3d; position: relative; border-radius: var(--border-radius); }
.data-item-container.flipped .flashcard-inner { transform: rotateY(180deg); }

.flashcard-front, .flashcard-back { position: absolute; width: 100%; height: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 25px; border-radius: var(--border-radius); box-sizing: border-box; border: 1px solid rgba(255, 255, 255, 0.1); }
.flashcard-front { background-color: rgba(255, 255, 255, 0.03); color: var(--text-color); }
.flashcard-back { background-color: var(--secondary-color); color: var(--text-muted-color); transform: rotateY(180deg); border: 1px solid var(--primary-color); text-align: center; }
.flashcard-back h4 { color: var(--primary-color); margin-bottom: 1rem; font-size: 1.3rem; }
.flashcard-front .data-number { font-size: clamp(3rem, 8vw, 4rem); font-weight: 700; color: var(--primary-color); margin-bottom: 0.5rem; text-shadow: 0 0 10px var(--glow-color); }
.flashcard-front p { font-size: 1rem; color: var(--text-color); margin-bottom: 0; font-weight: 600; }
.flashcard-back .data-info p { font-size: 0.95rem; color: var(--text-muted-color); margin: 0; line-height: 1.6; }

/* --- Footer --- */
.footer { background-color: var(--background-color); text-align: left; padding: 60px 0 30px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); color: var(--text-muted-color); font-size: 0.9rem; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-bottom: 40px; }
.footer-logo .footer-company-name { font-size: 1.5rem; font-weight: 600; color: var(--accent-color); margin-bottom: 1rem; }
.footer-links h4, .footer-contact h4 { color: var(--accent-color); margin-bottom: 1rem; font-size: 1.1rem; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a, .footer-contact a { color: var(--text-muted-color); }
.footer-links a:hover, .footer-contact a:hover { color: var(--primary-color-light); text-decoration: underline; }
.footer-contact p { margin-bottom: 0.8rem; display: flex; align-items: center; gap: 8px; }
.footer-contact i { color: var(--primary-color); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 20px; margin-top: 30px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.footer-social a { color: var(--text-muted-color); font-size: 1.3rem; margin-left: 15px; transition: color var(--transition-speed) ease, transform var(--transition-speed) ease; display: inline-block; }
.footer-social a:hover { color: var(--primary-color); transform: scale(1.2); }

/* --- Botones Sociales Flotantes --- */
.social-buttons { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; gap: 15px; z-index: 999; }
.social-button { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.6rem; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); opacity: 0; transform: translateX(100px); transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease-out, background-color var(--transition-speed) ease; }
.social-button:hover { transform: scale(1.15) translateX(0); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); }
.social-button.whatsapp { background-color: #25D366; }
.social-button.whatsapp:hover { background-color: #128C7E; }
.social-button.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); }
.social-button.linkedin { background-color: #0A66C2; }
.social-button.linkedin:hover { background-color: #004182; }
.social-button.visible { opacity: 1; transform: translateX(0); }

/* --- Animaciones Scroll --- */
.animate-on-scroll { opacity: 0; transition: opacity 0.8s ease-out, transform 0.8s ease-out; will-change: opacity, transform; }
.fade-in.visible { opacity: 1; }
.fade-in-up { transform: translateY(50px); }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
.scale-in { transform: scale(0.8); }
.scale-in.visible { opacity: 1; transform: scale(1); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* --- Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.modal.active { display: flex; }

.modal-content {
    background-color: var(--secondary-color);
    padding: clamp(25px, 5vw, 40px);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    width: 95%;
    max-width: 550px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    animation: modal-scale-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--text-color);
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modal-scale-in {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.close-button {
    color: var(--text-muted-color);
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
    line-height: 1;
}
.close-button:hover { color: var(--primary-color); transform: rotate(90deg); }
.modal-title { text-align: center; margin-bottom: 1rem; color: var(--accent-color); font-size: clamp(1.8rem, 4vw, 2.2rem); }
.modal-intro-text { text-align: center; margin-bottom: 2rem; color: var(--text-muted-color); font-size: 0.95rem; }

/* --- Formulario dentro del Modal --- */
.contact-form { display: grid; gap: 1.2rem; }
.form-group { position: relative; margin-bottom: 0.5rem; }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 15px 18px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    color: var(--text-color);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted-color); opacity: 0.7; }
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.3);
    background-color: rgba(255, 255, 255, 0.08);
}
.contact-form input.invalid,
.contact-form textarea.invalid {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.3);
}
.contact-form input.invalid:focus,
.contact-form textarea.invalid:focus {
     box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.5);
}

.error-message {
    color: var(--error-color);
    font-size: 0.8rem;
    display: block;
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: height 0.3s ease, opacity 0.3s ease;
    margin-top: 4px;
}
.form-group .error-message.visible {
    height: auto;
    opacity: 1;
}

.policy-checkbox { display: flex; justify-content: center; align-items: center; font-size: 0.9rem; color: var(--text-muted-color); margin-top: 0.5rem; white-space: nowrap; }
.policy-checkbox input[type="checkbox"] { margin-right: 10px; cursor: pointer; accent-color: var(--primary-color); }
.policy-checkbox label { cursor: pointer; }
.policy-checkbox label a { color: var(--primary-color-light); text-decoration: underline; }
.policy-checkbox label a:hover { color: var(--accent-color); }
.policy-checkbox .policy-error {
    width: 100%;
    margin-top: 5px;
    text-align: center;
}

.modal-content .btn-submit { margin-top: 1.5rem; width: 100%; }
.modal-content .btn-submit:disabled {
    background: var(--text-muted-color);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
.modal-content .btn-submit:disabled::before { display: none; }

.form-status {
    margin-top: 1.5rem;
    text-align: center;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 0.95rem;
    display: none;
}
.form-status.success { color: #ffffff; background-color: var(--success-color); display: block; }
.form-status.error { color: #ffffff; background-color: var(--error-color); display: block; }

/* --- Responsividad --- */
@media (max-width: 992px) {
    .header .container { position: relative; }
    .navigation {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(28, 28, 31, 0.98);
        backdrop-filter: blur(10px);
        padding: 20px 0;
        display: none;
        flex-direction: column;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }
    .navigation.active { display: flex; }
    .navigation ul { flex-direction: column; gap: 0; width: 100%; }
    .navigation li { width: 100%; text-align: center; }
    /* Ajuste de enlaces en nav móvil */
    .navigation a {
        display: block;
        padding: 15px 20px;
        width: 100%;
        border-radius: 0; /* Asegurar que no tenga bordes redondeados en móvil */
        text-align: center; /* Centrar texto en móvil */
        font-size: 1.1rem; /* Hacer un poco más grande el texto en menú móvil */
    }
     .navigation a::after {
         bottom: 10px;
         left: 50%;
         transform: translateX(-50%);
         width: 0; /* Reiniciar ancho */
     }
     .navigation a:hover::after,
     .navigation a.active::after { /* Apply active state on mobile too */
         width: 50px; /* Ancho fijo para la línea en móvil */
     }

    /* Ajuste de botones de idioma en nav móvil */
    .navigation ul li#language-switcher.header-language-switcher {
        width: 100%; /* Ensure the li takes full width */
        display: flex; /* Keep buttons side-by-side */
        justify-content: center; /* Center the buttons within the li */
        gap: 10px; /* Add some space between buttons */
        padding: 10px 20px; /* Add padding to the li */
    }
    .navigation ul li#language-switcher.header-language-switcher button {
        display: inline-block; /* Buttons should be inline-block */
        width: auto; /* Auto width based on content */
        padding: 10px 15px; /* Adjust padding */
        font-size: 1rem; /* Adjust font size */
        text-align: center; /* Center text */
        border-radius: 4px; /* Keep border radius */
        background: none; /* Ensure no default button background */
        border: 1px solid rgba(255, 255, 255, 0.1); /* Add a subtle border */
        color: var(--text-muted-color); /* Default color */
        transition: color var(--transition-speed) ease, background-color var(--transition-speed) ease, border-color var(--transition-speed) ease;
    }
    .navigation ul li#language-switcher.header-language-switcher button:hover {
        color: var(--accent-color);
        background-color: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
    }
    .navigation ul li#language-switcher.header-language-switcher button.active {
        color: var(--primary-color-light);
        font-weight: 600;
        background-color: rgba(138, 43, 226, 0.2);
        border-color: var(--primary-color);
    }


    .mobile-nav-toggle { display: block; }
}

@media (max-width: 768px) {
    .footer-content { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-social { margin-top: 15px; }
    .social-buttons { bottom: 20px; right: 20px; gap: 10px; }
    .social-button { width: 45px; height: 45px; font-size: 1.4rem; }
    .data-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
    .data-item-container { min-height: 200px; }
}

@media (max-width: 576px) {
    section { padding: 50px 0; }
    .hero { padding-top: 80px; padding-bottom: 40px; }
    .features-grid { gap: 1.5rem; }
    .feature-item { padding: 25px 20px; }
    .faq-question { padding: 20px; }
    .faq-answer { padding: 0 20px 20px 20px; }
    .data-grid { grid-template-columns: 1fr; }
    .data-item-container { min-height: 180px; }
    .modal-content { padding: 25px 15px; }
    .close-button { top: 10px; right: 15px; font-size: 28px; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-contact p { justify-content: center; }
    /* Ajuste de enlaces y botones en nav móvil */
    .navigation a,
    .navigation ul li button {
        display: block;
        padding: 15px 20px;
        width: 100%;
        border-radius: 0; /* Asegurar que no tenga bordes redondeados en móvil */
        text-align: center; /* Centrar texto en móvil */
        font-size: 1.1rem; /* Hacer un poco más grande el texto en menú móvil */
    }
     .navigation a::after,
     .navigation ul li button::after {
         bottom: 10px;
         left: 50%;
         transform: translateX(-50%);
         width: 0; /* Reiniciar ancho */
     }
     .navigation a:hover::after,
     .navigation ul li button:hover::after {
         width: 50px; /* Ancho fijo para la línea en móvil */
     }
}
