/* Header y Footer Consistente - Clínica del Duelo */

/* ========================================
   PALETA DE COLORES PROFESIONAL 
   ======================================== */
:root {
    /* Colores principales */
    --primary-color: #4A90A4;           /* Azul profesional y calmante */
    --primary-light: #7AB8C2;           /* Versión más clara */
    --primary-dark: #2C5D6B;            /* Versión más oscura */
    
    /* Colores secundarios */
    --secondary-color: #8B9B9B;         /* Gris-azul elegante */
    --accent-warm: #D4A574;             /* Dorado suave para acentos */
    --accent-soft: #E8F1F2;             /* Azul muy suave para fondos */
    
    /* Colores de estado */
    --success-color: #5CB85C;           /* Verde para éxito */
    --warning-color: #F0AD4E;           /* Naranja suave */
    --danger-color: #D9534F;            /* Rojo suave */
    
    /* Colores de texto */
    --text-primary: #2C3E50;           /* Gris muy oscuro */
    --text-secondary: #5A6C7D;         /* Gris medio */
    --text-muted: #8C9BA5;             /* Gris claro */
    --text-white: #FFFFFF;             /* Blanco */
    
    /* Colores de fondo */
    --bg-primary: #FFFFFF;             /* Blanco principal */
    --bg-secondary: #F8FAFB;           /* Gris muy claro */
    --bg-light: #F4F7F9;              /* Gris azulado claro */
    --bg-dark: #E8EEF2;               /* Gris azulado medio */
    
    /* Bordes y sombras */
    --border-light: #E1E8ED;           /* Borde gris muy claro */
    --border-medium: #CBD5E0;          /* Borde gris medio */
    --shadow-soft: 0 2px 8px rgba(74, 144, 164, 0.1);
    --shadow-medium: 0 4px 16px rgba(74, 144, 164, 0.15);
    --shadow-strong: 0 8px 24px rgba(74, 144, 164, 0.2);
    
    /* Espaciado y tipografía */
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   HEADER CONSISTENTE
   ======================================== */
.main-header {
    background: var(--bg-primary);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* Logo Section */
.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.4rem;
    transition: var(--transition);
}

.logo-section:hover {
    color: var(--primary-color);
}

.logo-svg {
    width: 40px;
    height: 40px;
    fill: var(--primary-color);
    transition: var(--transition);
}

.logo-section:hover .logo-svg {
    fill: var(--primary-dark);
    transform: scale(1.05);
}

/* Navegación */
.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background-color: var(--bg-light);
}

/* CTA Button en header */
.header-cta {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.header-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: var(--transition);
}

/* ========================================
   FOOTER CONSISTENTE
   ======================================== */
.main-footer {
    background: var(--text-primary);
    color: var(--text-white);
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

/* Footer logo y descripción */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-white);
}

.footer-logo .logo-svg {
    width: 36px;
    height: 36px;
    fill: var(--text-white);
}

.footer-description {
    color: #B8C5D6;
    line-height: 1.6;
    max-width: 320px;
}

/* Footer secciones */
.footer-section h3 {
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #B8C5D6;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section a:hover {
    color: var(--primary-light);
    transform: translateX(4px);
}

/* Contacto en footer */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #B8C5D6;
}

.contact-icon {
    width: 18px;
    height: 18px;
    fill: var(--primary-light);
}

/* Redes sociales */
.social-links {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    color: var(--text-white);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Footer bottom */
.footer-bottom {
    border-top: 1px solid #34495E;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #B8C5D6;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: #B8C5D6;
    text-decoration: none;
    transition: var(--transition);
}

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

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
        height: 60px;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
}

/* ========================================
   EFECTOS ADICIONALES
   ======================================== */
.header-scrolled {
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

/* Animación de entrada para el header */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.main-header {
    animation: slideDown 0.6s ease-out;
}