html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: 'Montserrat', sans-serif;
}

main {
    padding-top: var(--header-height);
}

:root {
    --og-azul: #0000ff;
    --og-azul-oscuro: #0000b3;
    --og-cian: #32dbfd;
    --og-morado: #674ea7;
    --og-gris: #464646;
    --og-gris-claro: #5a5a5a;
    --og-bg: #ffffff;
    --og-radius: 16px;
    --og-shadow: 0 8px 30px rgba(0, 0, 60, 0.08);
    --og-font-title: 'Gilroy-Bold', 'Montserrat', sans-serif;
    --og-content-max: 1750px;
}

main {
    background: var(--og-bg);
}

:focus-visible {
    outline: 3px solid var(--og-azul);
    outline-offset: 3px;
}

/* ============ HERO ============ */
.og-hero {
    background: linear-gradient(120deg, var(--og-azul-oscuro) 0%, var(--og-azul) 45%, var(--og-cian) 100%);
    padding: clamp(48px, 8vw, 88px) 24px clamp(56px, 9vw, 96px);
    color: #fff;
}

.og-hero__inner {
    max-width: var(--og-content-max);
    margin: 0 auto;
}

.og-hero__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #fff;
}

.og-hero__title {
    font-family: var(--og-font-title);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.4rem);
    margin: 0 0 18px;
    line-height: 1.1;
}

.og-hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    max-width: 850px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 40px;
    font-weight: 500;
}

.og-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(28px, 6vw, 64px);
}

.og-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.og-stat__num {
    font-family: var(--og-font-title);
    font-weight: 700;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    color: var(--og-cian);
    text-align: center;
}

.og-stat__label {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
}

/* ============ SECCIONES GENERALES ============ */
.og-section {
    max-width: var(--og-content-max);
    margin: 0 auto;
    padding: clamp(40px, 6vw, 64px) 24px;
}

.og-section--organos {
    padding-top: 0;
    padding-bottom: clamp(56px, 8vw, 88px);
}

.og-section__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.og-section__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--og-azul);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 16px;
}

.og-section__header h2 {
    font-family: var(--og-font-title);
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    color: var(--og-gris);
    margin: 0;
}

/* ============ NUESTRA INSTITUCIÓN ============ */
.og-inst {
    background: #fff;
    border-radius: var(--og-radius);
    box-shadow: var(--og-shadow);
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    overflow: hidden;
}

.og-inst__text {
    padding: clamp(24px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.og-inst__title {
    font-family: var(--og-font-title);
    font-size: clamp(1.25rem, 2.4vw, 1.6rem);
    font-weight: 700;
    color: var(--og-azul);
    margin: 0;
    line-height: 1.25;
}

.og-inst__text p {
    font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.1rem);
    line-height: 1.7;
    font-weight: 500;
    color: var(--og-gris-claro);
    margin: 0;
    max-width: 80ch;
}

.og-inst__img {
    margin: 0;
    min-height: 320px;
    background: #f5f6f9;
}

.og-inst__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============ TARJETAS DE ÓRGANOS ============ */
.og-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.og-card {
    --og-accent: var(--og-azul);
    background: #fff;
    border-radius: var(--og-radius);
    box-shadow: var(--og-shadow);
    border-top: 5px solid var(--og-accent);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.og-card--blue   { --og-accent: var(--og-azul); }
.og-card--cyan   { --og-accent: var(--og-cian); }
.og-card--purple { --og-accent: var(--og-morado); }
.og-card--gray   { --og-accent: var(--og-gris); }

.og-card__icon {
    background: #f5f6f9;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.og-card__icon i {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--og-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.og-card__body {
    padding: 22px 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.og-card__title {
    font-family: var(--og-font-title);
    font-size: clamp(1.15rem, 1.05rem + 0.25vw, 1.35rem);
    font-weight: 700;
    margin: 0;
    color: var(--og-gris);
    line-height: 1.25;
}

.og-card__role {
    font-size: clamp(0.92rem, 0.88rem + 0.15vw, 1rem);
    font-weight: 700;
    color: var(--og-azul);
    margin: 0;
    line-height: 1.4;
}

.og-card__text {
    font-size: clamp(0.94rem, 0.9rem + 0.15vw, 1.05rem);
    line-height: 1.6;
    font-weight: 500;
    color: var(--og-gris-claro);
    margin: 0;
}

/* =============== PANTALLAS ULTRA ANCHAS =============== */
@media (min-width: 2200px) {
    :root {
        --og-content-max: 2000px;
    }
}

/* =============== RESPONSIVE =============== */
@media (max-width: 1100px) {
    .og-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .og-inst {
        grid-template-columns: 1fr;
    }
    .og-inst__img {
        min-height: 240px;
        max-height: 340px;
    }
}

@media (max-width: 720px) {
    .og-hero__stats {
        gap: 24px;
    }
    .og-inst__text {
        padding: 28px;
    }
}

@media (max-width: 600px) {
    .og-cards {
        grid-template-columns: 1fr;
    }
}

/* =============== ACCESIBILIDAD =============== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
