/*
Theme Name: Empresa Activa
Theme URI: https://empresaactiva.es
Author: Asociación Empresarial Empresa Activa
Description: Tema personalizado, moderno, responsive y con cabecera pegajosa (sticky) y logotipo grande centrado para la Asociación Empresarial Empresa Activa.
Version: 1.1
Text Domain: empresa-activa
*/

/* =========================================
   VARIABLES Y CONFIGURACIÓN BASE (MODERNO)
========================================= */
:root {
    --primary-color: #0f172a;      /* Azul oscuro elegante / corporativo */
    --accent-color: #2563eb;       /* Azul eléctrico moderno */
    --accent-hover: #1d4ed8;       /* Azul más oscuro para hover */
    --text-main: #334155;          /* Gris oscuro para textos */
    --text-light: #64748b;         /* Gris claro para subtítulos */
    --bg-light: #f8fafc;           /* Fondo general claro muy sutil */
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* =========================================
   CABECERA INTELIGENTE Y PEGAJOSA (STICKY) - LOGO GRANDE CENTRADO
========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    position: relative;
    transition: var(--transition);
}

/* LOGOTIPO AMPLIADO (MUCHO MÁS GRANDE) */
.site-branding {
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-branding .custom-logo-link img,
.site-branding img {
    max-height: 150px; /* Logotipo grande y muy visible antes del scroll */
    width: auto;
    display: block;
    transition: var(--transition);
}

.site-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    text-align: center;
}

/* MENÚ DE NAVEGACIÓN CENTRADO */
.main-navigation ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
}

.main-navigation a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--primary-color);
    position: relative;
    padding: 0.3rem 0;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
    width: 100%;
}

.main-navigation a:hover {
    color: var(--accent-color);
}

/* =========================================
   ESTADO SCROLLED (EFECTO PEGAJOSO REDUCIDO)
========================================= */
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.site-header.scrolled .header-container {
    padding: 0.6rem 2rem; /* Contenedor compacto al hacer scroll */
    gap: 0.5rem;
}

.site-header.scrolled .site-branding .custom-logo-link img,
.site-branding img {
    transition: var(--transition);
}

.site-header.scrolled .site-branding .custom-logo-link img,
.site-header.scrolled .site-branding img {
    max-height: 48px; /* El logotipo se reduce de forma fluida al hacer scroll pero sigue perfectamente visible */
}

/* =========================================
   SECCIÓN HERO / PRINCIPAL (MODERN STYLING)
========================================= */
.site-content {
    margin-top: 220px; /* Margen superior adaptado a la altura inicial del header grande */
}

.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--white);
    position: relative;
}

.hero-content {
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-description {
    font-size: 1.15rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* =========================================
   FOOTER MODERNO
========================================= */
.site-footer {
    background-color: var(--primary-color);
    color: #94a3b8;
    padding: 3rem 2rem;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid #1e293b;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* =========================================
   DISEÑO RESPONSIVE (MÓVILES Y TABLETAS)
========================================= */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
    }
    
    .site-branding .custom-logo-link img,
    .site-branding img {
        max-height: 90px;
    }
    
    .main-navigation ul {
        gap: 1.2rem;
        flex-wrap: wrap;
    }
    
    .main-navigation a {
        font-size: 0.85rem;
    }
    
    .site-content {
        margin-top: 170px;
    }
    
    .hero-section {
        padding: 3rem 1rem;
        min-height: 70vh;
    }
}