/* ============================================================
   Estilos compartidos - PsicoMétrica Consultores S.A.S
   Base común: tipografía, variables, header, navegación, hero,
   footer, botón flotante de WhatsApp y diseño responsive.
   ============================================================ */

/* Importar fuente Lato de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

:root {
    /* Colores principales */
    --blanco: #FFFFFF;
    --fondo-claro: #F8FAFC;
    --texto-principal: #1E293B;
    --texto-secundario: #64748B;
    --negro: #000000;

    /* Colores de acento basados en el logo */
    --azul-marino: #1E3A8A;
    --verde-vibrante: #10B981;
    --azul-suave: #3B82F6;
    --verde-suave: #34D399;

    /* Colores de apoyo */
    --gris-claro: #F1F5F9;
    --gris-medio: #CBD5E1;
    --gris-oscuro: #475569;
    --sombra: rgba(0, 0, 0, 0.05);
    --borde: #E2E8F0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--gris-oscuro);
    background-color: var(--blanco);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    color: var(--azul-marino);
    margin-bottom: 1rem;
}

/* Header */
.header {
    background: var(--blanco);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--sombra);
    border-bottom: 1px solid var(--borde);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 60px;
    width: auto;
}

.logo a {
    text-decoration: none;
}

.logo-text {
    display: none;
}

.logo-text .psicometrica {
    color: var(--azul-marino);
    background: var(--blanco);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.logo-text .consultores {
    color: var(--verde-vibrante);
}

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

.nav-menu a {
    color: var(--azul-marino);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--verde-vibrante);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--verde-vibrante);
    transition: width 0.3s ease;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--azul-marino);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: var(--fondo-claro);
    color: var(--texto-principal);
    padding: 8rem 0 4rem;
    text-align: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--azul-marino);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--texto-secundario);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Título de sección */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--azul-marino) 0%, var(--negro) 100%);
    color: var(--blanco);
    text-align: center;
}

.cta-section h2 {
    color: var(--blanco);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: var(--verde-vibrante);
    color: var(--blanco);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(56, 161, 105, 0.3);
}

.cta-button:hover {
    background: var(--verde-suave);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 161, 105, 0.4);
}

/* Footer */
.footer {
    background: var(--azul-marino);
    color: var(--blanco);
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    color: var(--verde-vibrante);
    margin-bottom: 1rem;
}

.footer-section p, .footer-section a {
    color: var(--gris-medio);
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    color: var(--verde-vibrante);
}

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

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid var(--gris-oscuro);
    padding-top: 1rem;
    text-align: center;
    color: var(--gris-medio);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1001;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    font-size: 2rem;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float .tooltip {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--azul-marino);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-float .tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 8px solid var(--azul-marino);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.whatsapp-float:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    70% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* El contenedor envuelve: logo y botón en la primera fila,
       el menú se despliega debajo (se abre con .active desde main.js) */
    .nav-container {
        flex-wrap: wrap;
    }

    .logo {
        order: 1;
    }

    .mobile-menu-btn {
        display: block;
        order: 2;
    }

    .nav-menu {
        display: none;
        order: 3;
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--borde);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu.active a {
        display: block;
        padding: 0.35rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float a {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .whatsapp-float .tooltip {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }
}
