/* Reset y variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --background: #ffffff;
    --background-alt: #f8fafc;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
    
    /* Degradados muy sutiles y profesionales */
    --gradient-subtle: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
    --gradient-bg: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    --gradient-hero: linear-gradient(135deg, #fafbff 0%, #f1f3ff 100%);
}

/* Tipografía */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
}

/* Manrope para todos los títulos y elementos destacados */
h1, h2, h3, h4, h5, h6,
.logo,
.nav-links a,
.cta-button,
.ai-button,
.filter-label,
.category-btn,
.stat-number,
.ai-name,
.section-title,
button {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Inter para el cuerpo de texto */
p,
.ai-description,
.stat-label,
.section-subtitle,
.validation-text,
.prompt-text,
.hero p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-right: auto;
    margin-left: 35rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-cta {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Main Content */
.main {
    margin-top: 80px;
}

/* Hero Section */
.hero {
    padding: 5rem 2rem;
    text-align: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.validation-text {
    margin-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
}

/* Footer */
/* ==================== FOOTER ESTILO REFERENCIA ==================== */
.site-footer {
    background-color: var(--background-alt); /* CAMBIO: Gris suave (#f8fafc) en vez de blanco */
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;    /* Mantenemos el padding interno */
    margin-top: 0;           /* CAMBIO: Quitamos el margen gigante de 5rem */
    color: var(--text-secondary);
    font-size: 0.95rem;
}
/* ==================== ARREGLO DE MÁRGENES DEL FOOTER ==================== */

/* Esto asegura que el contenido NO se pegue a los bordes */
.site-footer .container {
    max-width: 1200px;      
    width: 100%;            
    margin: 0 auto;         
    padding: 0 2rem;        
    box-sizing: border-box; 
}

/* El resto de clases (.footer-top, .footer-column, etc.) se quedan igual */
.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Encabezados en mayúsculas (Estilo Ref 1) */
.footer-column h4 {
    color: var(--primary-color); /* Tu color azul índigo */
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase; /* MAYÚSCULAS */
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

/* Listas de enlaces */
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: var(--text-secondary); /* Gris intermedio */
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-column ul li a:hover {
    color: var(--primary-color); /* Azul al pasar el ratón */
    text-decoration: underline;
}

/* Info extra de contacto */
.footer-contact-info {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-contact-info p {
    margin-bottom: 0.5rem;
}

/* Divisor Horizontal */
.footer-divider {
    height: 1px;
    background-color: var(--border-color); /* Línea gris suave */
    margin: 0 0 2rem 0;
    width: 100%;
}

/* Parte Inferior: Fila Flex */
.footer-bottom {
    display: flex;
    justify-content: space-between; /* Espacio entre los 3 elementos */
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.brand-text {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.footer-copyright {
    color: #94a3b8;
    font-size: 0.85rem;
}

/* Iconos Redes Sociales */
.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-social a:hover {
    color: var(--primary-color);
}


/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ==================== MENÚ MÓVIL (HAMBURGUESA) ==================== */

/* 1. El Botón Hamburguesa (Oculto en PC por defecto) */
.hamburger {
    display: none; /* En escritorio no se ve */
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    z-index: 2000; /* Por encima de todo */
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-primary);
    border-radius: 3px;
}

/* 2. El Menú Lateral (Oculto por defecto) */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Empieza fuera de la pantalla a la derecha */
    width: 70%;   /* Ocupa el 70% del ancho */
    max-width: 300px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: 0.4s ease; /* Animación suave al entrar */
    z-index: 1999;
}

/* Clase para abrir el menú */
.mobile-menu.active {
    right: 0; /* Entra en la pantalla */
}

/* Estilos de los enlaces móviles */
.mobile-link {
    font-size: 1.2rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
}

.mobile-cta {
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

/* 3. Animación del botón al convertirse en X */
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}