/* ==================== VARIABLES Y CONFIGURACIÓN ==================== */
:root {
    /* Paleta de Colores Salud/Neurología */
    --primary-color: #0F2C59;      /* Azul marino profundo */
    --primary-light: #1E40AF;      /* Azul médico */
    --accent-color: #0D9488;       /* Teal / Verde Azulado */
    --accent-hover: #0F766E;
    --warm-accent: #C8A45D;
    --text-color: #334155;         /* Gris oscuro lectura */
    --text-muted: #64748B;        /* Gris secundario */
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;          /* Gris muy claro */
    --border-color: #E2E8F0;
    
    /* Tipografía */
    --body-font: 'Plus Jakarta Sans', sans-serif;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* Sombras y Transiciones */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(15, 44, 89, 0.08);
    --shadow-lg: 0 10px 25px rgba(15, 44, 89, 0.12);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    background-color: var(--bg-white);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font: inherit;
}

:focus-visible {
    outline: 3px solid rgba(13, 148, 136, 0.35);
    outline-offset: 4px;
}

/* ==================== REUTILIZABLES ==================== */
.container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.section {
    padding: 5rem 0;
}

.section__header {
    margin-bottom: 3rem;
}

.text-center {
    text-align: center;
}

.section__subtitle {
    color: var(--accent-color);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

.section__title {
    color: var(--primary-color);
    font-size: 2.25rem;
    font-weight: var(--font-bold);
    line-height: 1.25;
}

.light-bg {
    background-color: var(--bg-light);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 50px;
    font-weight: var(--font-semibold);
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn--primary {
    background-color: var(--accent-color);
    color: var(--bg-white);
    box-shadow: 0 12px 24px rgba(13, 148, 136, 0.18);
}

.btn--primary:hover {
    background-color: var(--accent-hover);
    box-shadow: var(--shadow-md);
}

.btn--secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
}

.btn--secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.btn--block {
    width: 100%;
}

/* ==================== HEADER & NAV ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    z-index: 1000;
    transition: var(--transition);
}

.header.scroll-header {
    box-shadow: var(--shadow-sm);
}

.nav {
    height: 4.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.logo__icon {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.nav__list {
    display: flex;
    gap: 2rem;
}

.nav__link {
    color: var(--text-color);
    font-weight: var(--font-medium);
    transition: var(--transition);
}

.nav__link:hover, .active-link {
    color: var(--accent-color);
}

.nav__toggle, .nav__close {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    background: transparent;
    border: 0;
    line-height: 1;
}

/* ==================== HERO ==================== */
.hero {
    padding-top: 8rem;
    padding-bottom: 5rem;
    background:
        radial-gradient(circle at 88% 20%, rgba(13, 148, 136, 0.12), transparent 28rem),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.hero__container {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
}

.hero__subtitle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #E0F2FE;
    color: var(--primary-light);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: var(--font-semibold);
    margin-bottom: 1.25rem;
}

.hero__title {
    font-size: 3rem;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1.25rem;
    font-weight: var(--font-bold);
}

.hero__description {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero__stats {
    display: flex;
    gap: 2.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.hero__note {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.25rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hero__note i {
    color: var(--warm-accent);
}

.stat__number {
    display: block;
    font-size: 1.75rem;
    font-weight: var(--font-bold);
    color: var(--primary-color);
}

.stat__title {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.hero__images {
    position: relative;
}

.hero__img-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 5;
    background: var(--bg-light);
}

.hero__img,
.about__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--bg-white);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero__badge i {
    font-size: 2rem;
    color: var(--accent-color);
}

.hero__badge h4 {
    font-size: 0.95rem;
    color: var(--primary-color);
}

.hero__badge p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==================== ABOUT ==================== */
.about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
}

.about__img-wrapper img {
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.about__img-wrapper {
    aspect-ratio: 5 / 4;
    overflow: hidden;
    border-radius: 20px;
}

.about__description {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.about__credentials {
    display: grid;
    gap: 0.75rem;
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: #F0FDFA;
    border: 1px solid rgba(13, 148, 136, 0.18);
    border-radius: 14px;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.about__highlights {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.highlight__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: var(--font-medium);
    color: var(--primary-color);
}

.highlight__item i {
    color: var(--accent-color);
}

/* ==================== SERVICES ==================== */
.services__container {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.service__card {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.service__card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service__card:focus-within {
    box-shadow: var(--shadow-lg);
}

.service__icon {
    width: 60px;
    height: 60px;
    background-color: #E0F2FE;
    color: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.service__title {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.service__description {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==================== PROCESS ==================== */
.process {
    background: linear-gradient(180deg, #ffffff 0%, #F8FAFC 100%);
}

.process__container {
    grid-template-columns: repeat(3, 1fr);
}

.process__item {
    position: relative;
    min-height: 230px;
    padding: 2rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.process__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    background: rgba(200, 164, 93, 0.16);
    color: #8A6A21;
    font-weight: var(--font-bold);
}

.process__item h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.process__item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==================== ESPECIALIDADES ==================== */
.specialties__container {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
}

.specialties__list {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.specialties__list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-color);
    font-weight: var(--font-medium);
}

.specialties__list i {
    color: var(--accent-color);
}

.cta__card {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
}

.cta__icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.cta__card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.cta__card p {
    color: #94A3B8;
    margin-bottom: 2rem;
}

/* ==================== TESTIMONIALS ==================== */
.testimonials__container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.testimonial__card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.testimonial__stars {
    color: #F59E0B;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.testimonial__text {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.testimonial__info h4 {
    color: var(--primary-color);
    font-size: 1rem;
}

.testimonial__info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==================== CONTACT ==================== */
.contact__container {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
}

.contact__card {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.contact__icon {
    width: 50px;
    height: 50px;
    background: #E0F2FE;
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact__card h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.contact__card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact__card a {
    color: var(--primary-light);
    font-weight: var(--font-medium);
}

.contact__card a:hover {
    color: var(--accent-color);
}

.contact__form {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.form__title {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.form__group {
    margin-bottom: 1.25rem;
}

.form__input {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form__input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.form__alert {
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: var(--font-medium);
    text-align: center;
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.footer__container {
    grid-template-columns: 1.5fr 1fr 1.5fr;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo {
    font-size: 1.25rem;
    font-weight: var(--font-bold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer__description, .footer__disclaimer {
    color: #94A3B8;
    font-size: 0.9rem;
}

.footer__title {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__link {
    color: #94A3B8;
    transition: var(--transition);
}

.footer__link:hover {
    color: var(--accent-color);
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    font-size: 0.875rem;
    color: #94A3B8;
}

/* ==================== RESPONSIVE / MEDIA QUERIES ==================== */
@media screen and (max-width: 992px) {
    .hero__container, 
    .about__container, 
    .specialties__container, 
    .contact__container,
    .process__container {
        grid-template-columns: 1fr;
    }

    .hero__title {
        font-size: 2.25rem;
    }

    .hero__images {
        order: -1;
        max-width: 520px;
        width: 100%;
        margin: 0 auto;
    }

    .footer__container {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        padding: 4rem 2rem 3rem;
        box-shadow: var(--shadow-md);
        transition: var(--transition);
        border-radius: 0 0 20px 20px;
    }

    .nav__menu.show-menu {
        top: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .nav__toggle, .nav__close {
        display: block;
    }

    .nav__btn {
        display: none;
    }

    .nav__close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .hero__stats {
        flex-direction: column;
        gap: 1rem;
    }

    .hero__buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__badge {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .section {
        padding: 4rem 0;
    }

    .hero {
        padding-top: 6.75rem;
    }

    .hero__title,
    .section__title {
        font-size: 2rem;
    }

    .contact__form,
    .service__card,
    .process__item,
    .cta__card {
        padding: 1.5rem;
    }
}
