/* Variables de color - CLINILAB MB */
:root {
    --ink: #0f2847;        /* Azul marino oscuro */
    --deep: #1a4d7a;       /* Azul profundo */
    --sky: #5dced7;        /* Turquesa/Cyan claro */
    --teal: #2b8a99;       /* Turquesa medio */
    --mint: #e8f5f7;       /* Mint muy claro */
    --w: #ffffff;          /* Blanco */
    --gray: #f0f0f0;       /* Gris claro */
    --error: #b3261e;      /* Rojo error */
    --success: #3f8fa6;    /* Verde éxito */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f8fafb 0%, #e8f5f7 100%);
    color: var(--ink);
    line-height: 1.6;
}

/* Header */
header {
    background: var(--w);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(15, 40, 71, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 8px 20px rgba(15, 40, 71, 0.15);
    padding: 0.8rem 2rem;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

/* Navegación */
.nav {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav a:hover {
    color: var(--sky);
    background: var(--mint);
}

.nav a.on {
    color: var(--sky);
    font-weight: 700;
}

.nav a.on::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background: var(--sky);
    border-radius: 2px;
}

/* Burger Menu */
.burger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--ink);
}

@media (max-width: 768px) {
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--w);
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .nav.open {
        max-height: 400px;
    }

    .nav a {
        padding: 1rem;
        border-radius: 0;
        border-bottom: 1px solid var(--gray);
    }

    .burger {
        display: block;
    }
}

/* Hero Section */
.page-hero {
    background: linear-gradient(135deg, var(--deep) 0%, var(--teal) 100%);
    color: var(--w);
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 0 0 24px 24px;
}

.page-hero h1 {
    font-family: 'Sora', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.page-hero p {
    font-size: 1.1rem;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 1.8rem;
    }
    .page-hero p {
        font-size: 1rem;
    }
}

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

/* Botones */
.btn {
    background: linear-gradient(135deg, var(--deep) 0%, var(--teal) 100%);
    color: var(--w);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 40, 71, 0.3);
}

.btn:active {
    transform: translateY(0);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--deep) 0%, var(--teal) 100%);
    color: var(--w);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

footer p {
    margin: 0.5rem 0;
}

footer strong {
    font-weight: 700;
}

/* Botón flotante WhatsApp */
.wa {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    z-index: 90;
}

.wa:hover {
    background: #20ba61;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

@media (max-width: 480px) {
    .wa {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.svc, .categoria-card, .sucursal-card, .info-card {
    animation: fadeIn 0.3s ease-out;
}
