/* ==========================================================================
   SISTEMA DE DISEÑO FUTURISTA PREMIUM - FUNDACIÓN CREAR PARA AYUDAR A.C.
   ========================================================================== */

/* Variables del Sistema */
:root {
    /* Paleta de Colores HSL Calibrada */
    --bg-dark: hsl(224, 71%, 4%);        /* Obsidiana profunda (Fondo) */
    --bg-card: hsla(224, 71%, 6%, 0.65); /* Cristal Oscuro */
    --primary: hsl(211, 100%, 29%);       /* Azul Esfera (Fondo Logo) */
    --primary-glow: hsla(211, 100%, 29%, 0.15);
    
    --accent: hsl(190, 100%, 50%);       /* Cian Eléctrico */
    --accent-glow: hsla(190, 100%, 50%, 0.2);
    
    --text-light: hsl(220, 20%, 96%);    /* Plata brillante (Lectura) */
    --text-muted: hsl(220, 10%, 65%);    /* Gris nebulosa (Secundario) */
    
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(0, 210, 255, 0.25);
    
    /* Curvas de Transición Premium (Físicas Spring) */
    --transition-ease: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-spring: all 0.6s cubic-bezier(0.25, 1.25, 0.5, 1);
}

/* Reset de Estilos Globales */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

body {
    position: relative;
    overflow-x: hidden;
}

/* Tipografía de Visualización */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

p {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    max-w: 65ch;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-ease);
}

/* ================== CAPAS DE DISEÑO CINEMÁTICO ================== */

/* Textura Analógica (Grain Overlay) */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Brillos Ambientales Traseros (Hardware Accelerated) */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -2;
    pointer-events: none;
    transform: translateZ(0);
    will-change: transform;
}

.glow-primary {
    top: 10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
}

.glow-accent {
    bottom: 20%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
}

/* Elemento del Canvas 3D */
.canvas-3d {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* ================== PLANTILLA GLASSMORPHISM (LIQUID GLASS) ================== */
.glass-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 12px 40px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    transition: var(--transition-ease);
}

.glass-card:hover {
    border-color: var(--border-glass-hover);
    box-shadow: 
        inset 0 1px 0 rgba(0, 210, 255, 0.15),
        0 20px 50px rgba(0, 210, 255, 0.05);
}

/* Capa de Brillo Traslúcido de la Tarjeta */
.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,210,255,0.03) 0%, transparent 60%);
    pointer-events: none;
    transition: var(--transition-ease);
}

.glass-card:hover .card-glow {
    transform: scale(1.1);
}

/* ================== COMPONENTES DE INTERFAZ (BOTONES & BADGES) ================== */

/* Botón Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-spring);
    position: relative;
    border: none;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    color: var(--bg-dark);
    box-shadow: 0 4px 20px rgba(0, 210, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 210, 255, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-light);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-tertiary {
    background: transparent;
    color: var(--text-light);
}

.btn-tertiary:hover {
    color: var(--accent);
    transform: translateX(3px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

/* Insignias de la Sección (Badges) */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 210, 255, 0.08);
    border: 1px solid rgba(0, 210, 255, 0.2);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.section-badge {
    display: inline-block;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    margin-bottom: 15px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--text-light) 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ================== ESTRUCTURA DEL HEADER ================== */
@keyframes headerSlideIn {
    from {
        transform: translate(-50%, -120px) translateZ(0);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0) translateZ(0);
        opacity: 1;
    }
}

.glass-header {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translate(-50%, 0) translateZ(0);
    width: 90%;
    max-width: 1400px;
    z-index: 1000;
    background: rgba(7, 10, 19, 0.65);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    padding: 10px 30px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: var(--transition-ease);
    animation: headerSlideIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.logo-png-header {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(0, 210, 255, 0.35));
    transition: var(--transition-ease);
}

.brand-logo:hover .logo-png-header {
    transform: scale(1.08);
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-svg {
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 0 4px rgba(0, 210, 255, 0.2));
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.brand-subtitle {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-light);
}

.accent-text {
    color: var(--accent);
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition-ease);
}

.nav-link:hover {
    color: var(--text-light);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.6rem;
    cursor: pointer;
}

/* ================== MENÚ MÓVIL ================== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100dvh;
    background: rgba(7, 10, 19, 0.98);
    z-index: 999;
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-spring);
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    list-style: none;
    gap: 25px;
}

.mobile-link {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.mobile-link:hover {
    color: var(--accent);
}

/* ================== CONTENEDORES DE PÁGINA ================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Apilar secciones sobre el lienzo 3D de fondo */
.hero-section,
.authority-section,
.ecosystem-section,
.split-comparison-section,
.stats-section,
.faq-section,
.contact-section {
    z-index: 2;
}

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

.section-title {
    font-size: 2.5rem;
    md-font-size: 3rem;
    margin-bottom: 15px;
}

.section-subtitle {
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* ================== HERO SECTION ================== */
.hero-section {
    min-h: 100dvh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 140px;
    padding-bottom: 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.05;
    margin-bottom: 25px;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 35px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-card-container {
    perspective: 1000px;
}

.hero-stats-card {
    transform: rotateY(-5deg) rotateX(5deg);
}

.card-meta {
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 15px;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.card-desc {
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.stats-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    border-top: 1px solid var(--border-glass);
    padding-top: 20px;
}

.stat-mini-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Indicador de Scroll */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
    animation: bounce 2s infinite;
}

.scroll-indicator:hover {
    color: var(--accent);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* ================== SECCIÓN DE AUTORIDAD (Nuestra Esencia) ================== */
.authority-section {
    padding: 100px 0;
    position: relative;
}

.authority-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.subsection-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.subsection-desc {
    margin-bottom: 30px;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-item {
    display: flex;
    gap: 20px;
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(0, 210, 255, 0.05);
    border: 1px solid rgba(0, 210, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.4rem;
}

.feature-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.feature-text p {
    font-size: 0.9rem;
}

/* Timeline vertical */
.target-card h3 {
    margin-bottom: 30px;
    font-size: 1.5rem;
    text-align: center;
}

.timeline {
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 10px;
    width: 2px;
    height: 90%;
    background: linear-gradient(180deg, var(--accent) 0%, var(--primary) 100%);
    opacity: 0.3;
}

.timeline-step {
    position: relative;
    padding-bottom: 25px;
}

.timeline-step:last-child {
    padding-bottom: 0;
}

.step-num {
    position: absolute;
    left: -20px;
    top: 2px;
    width: 22px;
    height: 22px;
    background: var(--bg-dark);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

.step-content h5 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--text-light);
}

.step-content p {
    font-size: 0.85rem;
}

/* ================== ECOSISTEMA DE SOLUCIONES (Servicios) ================== */
.ecosystem-section {
    padding: 100px 0;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.service-image-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-ease);
}

.service-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.service-card:hover .service-card-image {
    transform: scale(1.06);
}

.service-icon {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 25px;
}

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

.service-desc {
    font-size: 0.9rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

.service-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--border-glass);
    padding-top: 20px;
}

.service-bullets li {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-bullets li i {
    color: var(--accent);
    font-size: 1rem;
}

/* Resaltado específico para Gestión de Vivienda */
.highlighted-service {
    border-color: var(--border-glass-hover);
    background: linear-gradient(180deg, rgba(0, 75, 147, 0.2) 0%, var(--bg-card) 100%);
    box-shadow: 
        inset 0 1px 0 rgba(0, 210, 255, 0.2),
        0 15px 45px rgba(0, 210, 255, 0.05);
}

/* ================== COMPARATIVA SPLIT (Problemas/Soluciones) ================== */
.split-comparison-section {
    padding: 100px 0;
    position: relative;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.pain-card, .cure-card {
    padding: 40px;
}

.pain-card {
    border-left: 4px solid var(--border-glass);
}

.cure-card {
    border-left: 4px solid var(--accent);
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.03) 0%, var(--bg-card) 100%);
}

.block-title {
    font-size: 1.6rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.text-danger {
    color: hsl(0, 100%, 65%);
}

.text-success {
    color: var(--accent);
}

.comparison-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.comparison-item h5 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.comparison-item p {
    font-size: 0.9rem;
}

/* ================== PRUEBA SOCIAL / CIFRAS ================== */
.stats-section {
    padding: 80px 0;
    position: relative;
    background: linear-gradient(180deg, transparent 0%, rgba(7, 10, 19, 0.5) 50%, transparent 100%);
}

.stats-main-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
}

.stat-number-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.stat-big-num {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(180deg, var(--text-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-plus {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
}

.stat-description {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ================== FAQ SECTION ================== */
.faq-section {
    padding: 100px 0;
    position: relative;
}

.faq-accordion-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    padding: 0;
    border-radius: 12px;
}

.faq-trigger {
    width: 100%;
    background: transparent;
    border: none;
    padding: 24px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
    color: var(--text-light);
}

.faq-question-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    padding-right: 20px;
}

.faq-icon-wrapper {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-ease);
}

.faq-answer-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer-content {
    padding: 0 30px 24px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 15px;
}

.faq-answer-content p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Estados Abiertos */
.faq-item.active .faq-icon-wrapper {
    transform: rotate(45deg);
    background: var(--accent);
    color: var(--bg-dark);
}

/* ================== CONTACTO Y FORMULARIO ================== */
.contact-section {
    padding: 100px 0;
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.contact-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.contact-desc {
    margin-bottom: 40px;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.channel-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-glass);
    padding: 20px;
    border-radius: 15px;
}

.channel-card i {
    font-size: 1.8rem;
    color: var(--accent);
}

.channel-card h5 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.channel-card p {
    font-size: 0.85rem;
}

/* Formulario */
.form-card h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
    text-align: center;
}

.premium-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
}

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

.input-wrapper i {
    position: absolute;
    left: 15px;
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
    transition: var(--transition-ease);
}

.input-wrapper input,
.input-wrapper select,
.premium-form textarea {
    width: 100%;
    padding: 14px 15px 14px 45px;
    background: rgba(7, 10, 19, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition-ease);
}

.premium-form textarea {
    padding: 15px;
    resize: none;
}

/* Estados de interacción del Formulario */
.input-wrapper input:focus,
.input-wrapper select:focus,
.premium-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.15);
    background: rgba(7, 10, 19, 0.6);
}

.input-wrapper input:focus + i,
.input-wrapper select:focus + i {
    color: var(--accent);
}

.w-full {
    width: 100%;
}

.form-feedback {
    padding: 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    text-align: center;
}

.form-feedback.success {
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
}

.form-feedback.error {
    background: rgba(255, 0, 85, 0.1);
    border: 1px solid hsl(340, 100%, 50%);
    color: hsl(340, 100%, 65%);
}

.hidden {
    display: none;
}

/* ================== FOOTER ================== */
.premium-footer {
    background: hsl(224, 71%, 2%);
    border-top: 1px solid var(--border-glass);
    padding: 80px 0 30px 0;
    position: relative;
    z-index: 2;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-slogan {
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.social-links a:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.footer-links-group h5 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.footer-links-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-group ul a {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links-group ul a:hover {
    color: var(--accent);
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid var(--border-glass);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-legal a:hover {
    color: var(--accent);
}

.divider {
    color: var(--border-glass);
}

/* ================== RESPONSIVE ADAPTABILITY ================== */

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-main-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Despliegues móviles obligatorios de una columna */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.6rem;
    }
    
    .hero-description {
        margin: 0 auto 30px auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats-card {
        transform: none;
    }
    
    .authority-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    /* Mostrar interruptor de navegación móvil */
    .desktop-nav {
        display: none !important;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .glass-header {
        top: 12px;
        width: 94%;
        padding: 8px 16px;
        border-radius: 30px;
    }
}

/* ================== BOTÓN FLOTANTE DE WHATSAPP ================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition-spring);
    cursor: pointer;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
    color: #ffffff;
}

.whatsapp-float:active {
    transform: scale(0.95);
}
