/* Hoja de estilos de la Landing Page Premium de KuraGuardian (Estilo NinjaOne) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Paleta de colores */
    --bg-light: #ffffff;
    --bg-light-alt: #f8fafc;
    --bg-dark: #0b0f19;
    --bg-dark-alt: #0e1320;
    
    --primary: #0052cc;
    --primary-hover: #0066ff;
    --primary-light: #e6efff;
    --accent: #00b4d8;
    
    --text-dark: #0f172a;
    --text-muted: #475569;
    --text-light: #f8fafc;
    --text-light-muted: #cbd5e1;
    
    --border-color: #e2e8f0;
    --border-color-dark: #1e293b;
    --success: #10b981;
    --error: #ef4444;
    
    /* Fuentes */
    --font-title: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --max-width: 1200px;
    --header-height: 80px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 1. Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    background-color: var(--bg-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Contenedor estándar */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    width: 100%;
}

.section {
    padding: 8rem 0;
}

.section-dark {
    background-color: var(--bg-dark);
    color: var(--text-light-muted);
}

.section-dark h2, .section-dark h3, .section-dark h4 {
    color: var(--text-light);
}

/* Cabeceras de Sección */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem auto;
}

.section-header .badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-family: var(--font-title);
}

.section-dark .section-header .badge {
    background-color: rgba(0, 82, 204, 0.2);
    color: #3b82f6;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-muted);
}

.section-dark .section-header p {
    color: var(--text-light-muted);
}

/* Botones Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 82, 204, 0.15);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-dark);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-light-alt);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

.section-dark .btn-secondary {
    color: var(--text-light);
    border-color: var(--border-color-dark);
}

.section-dark .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-light-muted);
}

/* 2. Header & Navbar */
.header {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo img {
    height: 42px;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-title);
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}

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

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

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

/* Acciones Navbar (Idioma + CTA) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Selector de idioma minimalista */
.lang-selector {
    position: relative;
    cursor: pointer;
    font-family: var(--font-title);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
}

.lang-selector:hover {
    border-color: var(--text-muted);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    margin-top: 0.5rem;
    list-style: none;
    display: none;
    width: 100px;
    z-index: 1010;
}

.lang-dropdown li a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--text-dark);
}

.lang-dropdown li a:hover {
    background-color: var(--bg-light-alt);
    color: var(--primary);
}

.lang-selector.active .lang-dropdown {
    display: block;
}

/* 3. Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 5rem);
    padding-bottom: 8rem;
    background: radial-gradient(circle at 80% 20%, #f0f6ff 0%, #ffffff 70%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.hero-content .badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    font-family: var(--font-title);
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Mockup visual */
.hero-visual {
    position: relative;
    width: 100%;
}


.mockup-container {
    background-color: var(--bg-dark-alt);
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(11, 15, 25, 0.25);
    border: 1px solid var(--border-color-dark);
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    display: block;
    width: 100%;
    cursor: pointer;
}

.mockup-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mockup-container:hover img {
    transform: scale(1.04);
}

/* 4. Capabilities Bar Section (Reemplaza Social Proof) */
.capabilities-bar {
    padding: 5rem 0;
    background-color: var(--bg-dark-alt);
    border-top: 1px solid var(--border-color-dark);
    border-bottom: 1px solid var(--border-color-dark);
    text-align: center;
}

.capabilities-bar > .container > p {
    font-family: var(--font-title);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light-muted);
    margin-bottom: 2.5rem;
    opacity: 0.8;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.capability-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-align: left;
    transition: var(--transition);
    cursor: pointer;
}

.capability-card:hover {
    background: rgba(0, 82, 204, 0.06);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.capability-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 82, 204, 0.15);
    color: #3b82f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.capability-card:hover .capability-icon {
    background: var(--primary);
    color: #ffffff;
}

.capability-text {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-light-muted);
    line-height: 1.3;
    transition: var(--transition);
}

.capability-card:hover .capability-text {
    color: #ffffff;
}

.social-logo i {
    font-size: 1.8rem;
}

/* 5. Pilares (Características Rápidas) */
.pilares {
    background-color: var(--bg-light-alt);
}

.pilares-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.pilar-card {
    background-color: var(--bg-light);
    padding: 3rem 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pilar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 82, 204, 0.3);
}

.pilar-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.pilar-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.pilar-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* 6. Doble Sección Alternada (Beneficios y Visuales) */
.benefit-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5rem;
    align-items: center;
    margin-bottom: 8rem;
}

.benefit-row:last-child {
    margin-bottom: 0;
}

@media (min-width: 992px) {
    .benefit-row {
        grid-template-columns: 1fr 1fr;
    }
    .benefit-row.reverse {
        direction: rtl; /* Invierte columnas */
    }
    .benefit-row.reverse .benefit-info {
        direction: ltr; /* Restablece dirección de lectura */
    }
}

.benefit-info .badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    letter-spacing: 0.05em;
    font-family: var(--font-title);
}

.section-dark .benefit-info .badge {
    background-color: rgba(0, 82, 204, 0.2);
    color: #3b82f6;
}

.benefit-info h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.benefit-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.benefit-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    font-size: 1rem;
}

.benefit-list li i {
    font-size: 1.3rem;
    color: var(--primary);
    margin-top: 0.2rem;
}

.section-dark .benefit-list li i {
    color: #3b82f6;
}

/* Rejilla de mockups en zig-zag */
.benefit-visual .mockup-container {
    aspect-ratio: 16/10;
}

/* 7. Formulario de Captación de Leads */
.contact-section {
    background: radial-gradient(circle at 80% 80%, #002266 0%, #0b0f19 70%);
    color: var(--text-light-muted);
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5rem;
    align-items: center;
}

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 0.9fr 1.1fr;
    }
}

.contact-info h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--text-light);
}

.contact-info p {
    font-size: 1.15rem;
    margin-bottom: 3rem;
    color: var(--text-light-muted);
}

.contact-bullets {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bullet-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bullet-icon {
    width: 44px;
    height: 44px;
    background-color: rgba(0, 82, 204, 0.2);
    color: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.bullet-item span {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-light);
}

/* Tarjeta del Formulario */
.form-card {
    background-color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.form-group input, .form-group select, .form-group textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: #ffffff;
    color: var(--text-dark);
    outline: none;
    transition: var(--transition);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 82, 204, 0.1);
}

/* Mensajes de error */
.form-group.has-error input, .form-group.has-error select, .form-group.has-error textarea {
    border-color: var(--error);
}

.error-message {
    color: var(--error);
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.2rem;
    display: none;
}

.form-group.has-error .error-message {
    display: block;
}

.form-card button[type="submit"] {
    margin-top: 1rem;
    width: 100%;
}

/* Feedback de procesamiento */
.form-feedback {
    display: none;
    padding: 1.2rem;
    border-radius: 6px;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.form-feedback.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-feedback.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Animación de carga en envío */
.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn.submitting .btn-text {
    display: none;
}

.btn.submitting .btn-loader {
    display: inline-block;
}

.btn.submitting {
    pointer-events: none;
    opacity: 0.8;
}

/* 8. Footer Section */
.footer {
    background-color: var(--bg-dark-alt);
    color: var(--text-light-muted);
    padding: 6rem 0 3rem 0;
    border-top: 1px solid var(--border-color-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-brand img {
    height: 42px;
    align-self: flex-start;
}

.footer-brand p {
    font-size: 0.95rem;
    max-width: 480px;
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links ul li a {
    font-size: 0.95rem;
    color: var(--text-light-muted);
}

.footer-links ul li a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    font-size: 0.85rem;
}

/* 9. Mobile Responsive Menu */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-dark);
}

@media (max-width: 991px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-light);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 4rem;
        gap: 2.5rem;
        transition: var(--transition);
        border-top: 1px solid var(--border-color);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-actions {
        display: none;
    }
    
    .nav-menu .nav-actions-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        width: 100%;
        padding: 0 2rem;
        margin-top: 2rem;
    }
}

@media (min-width: 992px) {
    .nav-menu .nav-actions-mobile {
        display: none;
    }
}

/* Visor de imágenes modal (Lightbox) */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 15, 25, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.show {
    display: flex;
    opacity: 1;
}

.modal-img-container {
    max-width: 85%;
    max-height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.modal-content {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.image-modal.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--primary);
    color: #ffffff;
    transform: scale(1.05);
}

.modal-caption {
    margin-top: 1.5rem;
    color: var(--text-light-muted);
    font-family: var(--font-title);
    font-weight: 500;
    font-size: 1.1rem;
    text-align: center;
    max-width: 80%;
}

.zoomable-image {
    cursor: zoom-in;
}

/* --- Estilos para Checkbox Legal --- */
.form-checkbox-group {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    font-size: 0.85rem;
    color: var(--text-dark, #1e293b);
}

.checkbox-container input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-text a {
    color: var(--primary, #0052cc);
    text-decoration: underline;
    transition: var(--transition);
}

.checkbox-text a:hover {
    color: var(--primary-dark, #003d99);
}

/* --- Banner de Cookies Flotante (Glassmorphism) --- */
.cookies-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translate(-50%, 100px);
    width: calc(100% - 3rem);
    max-width: 720px;
    background: rgba(14, 19, 32, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem 1.75rem;
    z-index: 10000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease, visibility 0.3s ease;
}

.cookies-banner.show {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
}

.cookies-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .cookies-banner-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 1rem;
    }
}

.cookies-banner-content p {
    color: #cbd5e1;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

.cookies-banner-content p a {
    color: var(--primary-light, #3b82f6);
    text-decoration: underline;
    font-weight: 500;
}

.cookies-banner-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .cookies-banner-buttons {
        justify-content: center;
    }
}

.cookies-btn {
    padding: 0.55rem 1.2rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cookies-btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    border: none;
}

.cookies-btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.cookies-btn-secondary {
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookies-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* --- Layout Páginas Legales --- */
.legal-body {
    background-color: #f8fafc; /* Fondo claro por defecto para coherencia de lectura legal */
    color: #334155;
}

.legal-section-page {
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 80vh;
}

.legal-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 3.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

@media (max-width: 768px) {
    .legal-card {
        padding: 2rem 1.5rem;
    }
}

.legal-card h1 {
    font-family: var(--font-title);
    font-size: 2.2rem;
    color: #0b0f19;
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 1.25rem;
}

.legal-card h2 {
    font-family: var(--font-title);
    font-size: 1.3rem;
    color: #0b0f19;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.legal-card p {
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
    color: #475569;
}

.legal-card ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    list-style-type: disc;
    color: #475569;
}

.legal-card ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-card a {
    color: var(--primary);
    text-decoration: underline;
}

.legal-card a:hover {
    color: var(--primary-light);
}

/* --- Estilos para la interfaz del Captcha Gráfico --- */
.captcha-ui-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.captcha-ui-container input[type="text"] {
    flex: 1;
    min-width: 0;
}

.captcha-img-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.captcha-img-wrapper img {
    height: 42px;
    width: 130px;
    border-radius: 6px;
    border: 1px solid var(--border-color, #e2e8f0);
    background: #ffffff;
    object-fit: contain;
}

.btn-refresh-captcha {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 6px;
    border: 1px solid var(--border-color, #e2e8f0);
    background: #ffffff;
    color: var(--text-dark, #1e293b);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
    padding: 0;
}

.btn-refresh-captcha:hover {
    background: #f8fafc;
    color: var(--primary, #0052cc);
    border-color: var(--primary, #0052cc);
}
