/* ═══════════════════════════════════════════════════════════════
   Guía rápida de secciones
   01. Base global: variables, reset, header, nav, footer, contenedores
   02. Componentes compartidos: badges, botones, grids, cards, listas
   03. Inicio: hero, carrusel, problemática, instituciones
   04. Páginas cl-: clínica, investigación computacional y acerca de
   05. Publicaciones y sitios relacionados
   06. Responsive: reglas por bloque, cerca de la sección que ajustan
   ═══════════════════════════════════════════════════════════════ */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap");

/* ─── Variables ──────────────────────────────────────────────── */

:root {
    --pink-light: #fff0f6;
    --pink-blush: #ffe1ec;
    --pink-mid: #f8bbd0;
    --pink-hot: #e91e8c;
    --pink-deep: #c2185b;
    --pink-ink: #6f123d;
    --berry: #8d2456;
    --plum: #2c1522;
    --cream: #fffafc;
    --white: #ffffff;
    --text: #34212b;
    --text-muted: #806073;
    --line: rgba(194, 24, 91, 0.16);
    --shadow: 0 24px 70px rgba(194, 24, 91, 0.14);

    /* prefijo cl- compartido por clínica, investigación y acerca de */
    --cl-pink: #c2185b;
    --cl-pink-light: #e91e8c;
    --cl-plum: #3d0d22;
    --cl-bg: #fff0f5;
    --cl-border: #f0d0dc;
    --cl-text: #5a4a52;
    --cl-muted: #9a6878;
}

/* ─── Reset base ─────────────────────────────────────────────── */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    color: var(--text);
    font-family:
        "DM Sans",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background:
        linear-gradient(
            180deg,
            rgba(255, 240, 246, 0.9),
            rgba(255, 250, 252, 1) 34%
        ),
        var(--cream);
    overflow-x: hidden;
}

a {
    color: inherit;
}

/* ─── Header ─────────────────────────────────────────────────── */

header {
    isolation: isolate;
    background: linear-gradient(
        110deg,
        var(--white) 0%,
        #fce4ec 42%,
        #f8bbd0 100%
    );
    padding: 16px clamp(18px, 4vw, 46px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 36px rgba(233, 30, 140, 0.08);
}

header::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--pink-soft, #f48fb1),
        var(--pink-hot),
        transparent
    );
    opacity: 0.75;
}

header > div {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2.5vw, 24px);
    min-width: 0;
}

header > div > a {
    min-width: 66px;
    min-height: 66px;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

header > div > a img {
    max-width: 118px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 3px 5px rgba(44, 21, 34, 0.13));
}

header > div > a:nth-of-type(2) img {
    height: 58px;
}
header > div > div {
    line-height: 1.1;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

header h1 {
    margin: 0;
    color: var(--pink-deep);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.4rem, 2.4vw, 2.25rem);
    font-weight: 700;
}

header p {
    max-width: 520px;
    margin: 4px 0 0;
    color: var(--berry);
    font-size: clamp(0.74rem, 1.2vw, 0.92rem);
    font-weight: 500;
}

.brand-flower {
    width: clamp(34px, 3.6vw, 48px);
    height: clamp(34px, 3.6vw, 48px);
    object-fit: contain;
    flex: 0 0 auto;
}

.language-toggle {
    min-width: 96px;
    min-height: 40px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--pink-deep);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(194, 24, 91, 0.2);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(194, 24, 91, 0.12);
    cursor: pointer;
    transition:
        background-color 0.2s,
        border-color 0.2s,
        color 0.2s,
        transform 0.2s;
}

.language-toggle:hover {
    color: #ffffff;
    background: var(--pink-deep);
    border-color: var(--pink-deep);
    transform: translateY(-1px);
}

/* ─── Nav ────────────────────────────────────────────────────── */

nav {
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(248, 187, 208, 0.92);
    padding: 0 clamp(12px, 3vw, 36px);
    border-bottom: 1px solid rgba(194, 24, 91, 0.18);
    box-shadow: 0 10px 26px rgba(194, 24, 91, 0.1);
    backdrop-filter: blur(12px);
}

.menu-toggle {
    display: none;
}

nav ul {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 6px;
    list-style: none;
}

nav ul li {
    display: flex;
}

nav ul li a {
    min-height: 48px;
    padding: 15px 14px 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pink-ink);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition:
        color 0.2s,
        background-color 0.2s,
        border-color 0.2s;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--pink-deep);
    background: rgba(255, 255, 255, 0.38);
    border-color: var(--pink-hot);
}

/* ─── Footer ─────────────────────────────────────────────────── */

footer {
    background: linear-gradient(
        110deg,
        #fce4ec 0%,
        #f8bbd0 45%,
        #fce4ec 100%
    ) !important;
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px rgba(194, 24, 91, 0.08);
}

footer p {
    color: var(--berry) !important;
    line-height: 1.7;
}
footer a {
    color: var(--pink-deep) !important;
}

/* ─── Page shell ─────────────────────────────────────────────── */

.page-shell {
    flex: 1;
    width: 100%;
    background: linear-gradient(180deg, #fffdfd 0%, #f8f8fa 48%, #fffdfd 100%);
}

/* ─── Contenedores ───────────────────────────────────────────── */

.hero-section,
.page-hero,
.content-section {
    width: min(1140px, calc(100% - 36px));
    margin: 0 auto;
}

/* ─── Eyebrow / badge ────────────────────────────────────────── */

.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 32px;
    padding: 7px 13px;
    color: var(--pink-deep);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(255, 225, 236, 0.75);
    border: 1px solid rgba(233, 30, 140, 0.18);
    border-radius: 999px;
}

/* ─── Botones ────────────────────────────────────────────────── */

.button-primary,
.button-secondary {
    min-height: 46px;
    padding: 13px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition:
        transform 0.2s,
        box-shadow 0.2s,
        background-color 0.2s;
}

.button-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--pink-hot), var(--pink-deep));
    box-shadow: 0 12px 28px rgba(233, 30, 140, 0.28);
}

.button-secondary {
    color: var(--pink-deep);
    background: var(--white);
    border: 1px solid var(--line);
}

.button-primary:hover,
.button-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(194, 24, 91, 0.18);
}

/* ─── Hero sección ───────────────────────────────────────────── */

.hero-section {
    min-height: 520px;
    padding: clamp(54px, 8vw, 94px) 0;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
    align-items: center;
    gap: clamp(28px, 6vw, 70px);
}

.hero-copy h2,
.page-hero h2 {
    margin: 10px 0 14px;
    color: var(--pink-deep);
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.08;
}

.hero-copy p,
.page-hero p,
.section-heading p,
.info-block p,
.feature-card p,
.publication-list p {
    color: var(--text-muted);
    font-size: clamp(0.92rem, 1.1vw, 1rem);
    line-height: 1.65;
}

.hero-copy p {
    max-width: 660px;
}

.hero-actions {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-panel {
    padding: 26px;
    display: grid;
    gap: 14px;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.9),
        rgba(255, 225, 236, 0.8)
    );
    border: 1px solid rgba(233, 30, 140, 0.18);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hero-panel div,
.info-block,
.feature-card,
.publication-list article,
.links-grid a,
.timeline-list div {
    border-radius: 8px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
}

.hero-panel div {
    padding: 20px;
}

.hero-panel strong {
    display: block;
    color: var(--pink-deep);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
}

.hero-panel span {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ─── Page hero ──────────────────────────────────────────────── */

.page-hero {
    padding: clamp(48px, 7vw, 82px) 0 26px;
}
.page-hero.compact {
    padding: 2rem 0 1rem;
}
.page-hero.compact h2 {
    max-width: 880px;
    font-size: clamp(1.8rem, 3.4vw, 2.65rem);
    line-height: 1.12;
}
.page-hero p {
    max-width: 780px;
}

/* ─── Content section ────────────────────────────────────────── */

.content-section {
    padding: clamp(24px, 5vw, 58px) 0;
}

.section-heading {
    max-width: 730px;
    margin-bottom: 26px;
}

.section-heading h3,
.info-block h3,
.publication-list h3 {
    margin: 10px 0;
    color: var(--pink-deep);
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    font-weight: 700;
}

/* ─── Cards grid ─────────────────────────────────────────────── */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.feature-card {
    min-height: 245px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    box-shadow: 0 16px 38px rgba(194, 24, 91, 0.08);
    transition:
        transform 0.2s,
        box-shadow 0.2s,
        border-color 0.2s;
}

.feature-card:hover,
.links-grid a:hover {
    transform: translateY(-4px);
    border-color: rgba(233, 30, 140, 0.38);
    box-shadow: 0 22px 46px rgba(194, 24, 91, 0.14);
}

.feature-card span,
.publication-list span {
    color: var(--pink-deep);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.feature-card h4 {
    margin: 18px 0 10px;
    color: var(--plum);
    font-size: 1.05rem;
    font-weight: 700;
}
.feature-card p {
    margin: 0;
}

.info-block {
    padding: 28px;
    box-shadow: 0 16px 38px rgba(194, 24, 91, 0.08);
}

/* ─── Links grid ─────────────────────────────────────────────── */

.publication-list,
.links-grid,
.timeline-list {
    display: grid;
    gap: 16px;
}

.publication-list article,
.links-grid a,
.timeline-list div {
    padding: 22px 24px;
}

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

.links-grid a {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    transition:
        transform 0.2s,
        box-shadow 0.2s,
        border-color 0.2s;
}

.links-grid strong,
.timeline-list strong {
    color: var(--pink-deep);
    font-size: 1.05rem;
}
.links-grid span,
.timeline-list span {
    color: var(--text-muted);
    line-height: 1.6;
}

.timeline-list div {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    align-items: center;
}

/* ─── Publicaciones ──────────────────────────────────────────── */

.publications-hero {
    padding-bottom: 18px;
}

.publication-overview {
    padding-top: 10px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.publication-stat {
    padding: 20px 22px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(194, 24, 91, 0.08);
}

.publication-stat strong {
    display: block;
    color: var(--pink-deep);
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1.1;
}
.publication-stat span {
    display: block;
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.publication-featured {
    padding-top: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.publication-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.publication-card {
    min-height: 100%;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 38px rgba(194, 24, 91, 0.08);
}

.publication-card.featured {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            rgba(255, 240, 246, 0.95),
            rgba(255, 255, 255, 0.92)
        ),
        var(--white);
    border-color: rgba(233, 30, 140, 0.25);
}

.publication-card.featured::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--pink-hot), var(--pink-deep));
}

.publication-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--pink-deep);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.publication-meta span {
    padding: 5px 9px;
    background: rgba(255, 225, 236, 0.72);
    border: 1px solid rgba(233, 30, 140, 0.16);
    border-radius: 999px;
}
.publication-meta time {
    color: var(--berry);
    white-space: nowrap;
}

.publication-card h3 {
    margin: 0;
    color: var(--plum);
    font-size: clamp(1rem, 1.25vw, 1.14rem);
    line-height: 1.35;
}
.publication-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.publication-card a {
    width: fit-content;
    margin-top: auto;
    padding: 8px 12px;
    color: var(--pink-deep);
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid rgba(194, 24, 91, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.68);
    transition:
        background-color 0.2s,
        color 0.2s,
        border-color 0.2s;
}

.publication-card a:hover {
    color: var(--white);
    background: var(--pink-deep);
    border-color: var(--pink-deep);
}

/* ─── Page shell overrides ───────────────────────────────────── */

.page-shell > .page-hero h2,
.page-shell > .content-section .section-heading h3 {
    color: var(--plum);
}

.page-shell > .page-hero p,
.page-shell > .content-section .section-heading p,
.page-shell > .content-section .info-block p,
.page-shell > .content-section .feature-card p,
.page-shell > .content-section .publication-card p,
.page-shell > .content-section .publication-stat span,
.page-shell > .content-section .links-grid span,
.page-shell > .content-section .timeline-list span {
    color: #6f6670;
}

.page-shell > .page-hero .eyebrow,
.page-shell > .content-section .eyebrow,
.page-shell > .content-section .publication-meta span {
    color: var(--pink-deep);
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(194, 24, 91, 0.18);
    box-shadow: 0 8px 22px rgba(44, 21, 34, 0.04);
}

.page-shell > .content-section .info-block,
.page-shell > .content-section .feature-card,
.page-shell > .content-section .links-grid a,
.page-shell > .content-section .timeline-list div,
.page-shell > .content-section .publication-card,
.page-shell > .content-section .publication-stat {
    background: #ffffff;
    border-color: rgba(44, 21, 34, 0.1);
    box-shadow: 0 16px 34px rgba(44, 21, 34, 0.06);
}

.page-shell > .content-section .info-block h3,
.page-shell > .content-section .links-grid strong,
.page-shell > .content-section .timeline-list strong,
.page-shell > .content-section .publication-stat strong,
.page-shell > .content-section .publication-card h3 {
    color: var(--plum);
}

.page-shell > .content-section .feature-card span,
.page-shell > .content-section .publication-stat strong,
.page-shell > .content-section .timeline-list strong {
    color: var(--pink-deep);
}

.page-shell > .content-section .feature-card:hover,
.page-shell > .content-section .links-grid a:hover,
.page-shell > .content-section .publication-card:hover {
    border-color: rgba(194, 24, 91, 0.26);
    box-shadow: 0 20px 42px rgba(194, 24, 91, 0.12);
}

.page-shell > .content-section .publication-card.featured {
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.96),
            rgba(246, 247, 249, 0.9)
        ),
        #ffffff;
    border-color: rgba(44, 21, 34, 0.1);
}

.page-shell > .content-section .publication-card.featured::before {
    width: 4px;
    background: var(--pink-deep);
}

.page-shell > .content-section .publication-card a {
    color: var(--pink-deep);
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(194, 24, 91, 0.22);
}
.page-shell > .content-section .publication-card a:hover {
    color: #ffffff;
    background: var(--pink-deep);
    border-color: var(--pink-deep);
}

/* ─── Responsive ─────────────────────────────────────────────── */

@media (max-width: 965px) {
    .brand-flower {
        width: 42px;
        height: 42px;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    nav {
        padding: 8px clamp(14px, 4vw, 28px);
    }

    .menu-toggle {
        width: 100%;
        min-height: 46px;
        padding: 10px 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: var(--pink-ink);
        font-size: 0.82rem;
        font-weight: 800;
        text-transform: uppercase;
        background: rgba(255, 255, 255, 0.42);
        border: 1px solid rgba(194, 24, 91, 0.18);
        border-radius: 8px;
    }

    .menu-toggle-icon {
        display: grid;
        gap: 4px;
    }
    .menu-toggle-icon span {
        width: 18px;
        height: 2px;
        display: block;
        background: var(--pink-deep);
        border-radius: 999px;
    }

    nav ul {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        flex-direction: column;
        gap: 0;
        transition: max-height 0.25s ease;
    }
    nav.is-open ul {
        max-height: 420px;
    }

    nav ul li a {
        width: 100%;
        min-height: 44px;
        justify-content: center;
        text-align: center;
        border-bottom: 1px solid rgba(194, 24, 91, 0.12);
    }

    .hero-section,
    .card-grid,
    .two-column,
    .links-grid,
    .publication-overview,
    .publication-featured,
    .publication-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    header {
        padding: 14px 16px;
        flex-wrap: wrap;
    }
    header > div {
        gap: 10px;
        flex: 1;
        min-width: min(100%, 300px);
    }
    header > div > a {
        min-width: 48px;
        min-height: 48px;
        padding: 4px;
    }
    header > div > a img {
        height: 38px;
        max-width: 82px;
    }
    header > div > a:nth-of-type(2) {
        display: none;
    }
    .brand-flower {
        width: 34px;
        height: 34px;
    }
    header h1 {
        font-size: 1.28rem;
    }
    header p {
        font-size: 0.72rem;
    }
    .language-toggle {
        width: 100%;
        min-height: 38px;
        padding: 8px 12px;
        font-size: 0.74rem;
    }

    .hero-section,
    .page-hero,
    .carousel-section,
    .content-section {
        width: min(100% - 28px, 1140px);
    }

    .hero-actions {
        flex-direction: column;
    }
    .button-primary,
    .button-secondary {
        width: 100%;
    }

    .carousel-shell,
    .carousel-slide,
    .carousel-slide img {
        min-height: 280px;
    }

    .timeline-list div {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .publication-card {
        padding: 18px;
    }
    .publication-meta {
        align-items: flex-start;
        flex-direction: column;
    }
    .publication-card a {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Página de inicio
   ═══════════════════════════════════════════════════════════════ */

.home-container {
    width: min(1140px, calc(100% - 36px));
    margin: 0 auto;
}
.home-section {
    padding: clamp(3rem, 6vw, 5rem) 0;
}
.home-section-title {
    margin: 8px 0 1.25rem;
    color: var(--plum);
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
}

/* ─── Hero ───────────────────────────────────────────────────── */

.home-hero {
    background: linear-gradient(160deg, #fff0f5 0%, #fce4ee 100%);
    padding: clamp(2rem, 4vw, 3.5rem) 0;
    border-bottom: 1px solid rgba(194, 24, 91, 0.12);
}

.home-hero-inner {
    width: min(1140px, calc(100% - 36px));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.75rem;
}

.home-logo-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.home-logo-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.home-logo-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    color: var(--pink-deep);
    line-height: 1;
}
.home-logo-flor {
    width: clamp(36px, 5vw, 56px);
    height: auto;
    object-fit: contain;
}
.home-logo-sub {
    font-size: clamp(0.9rem, 1.3vw, 1.05rem);
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}
.home-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ─── Carrusel grande ────────────────────────────────────────── */

.home-carousel-wrap {
    width: 100%;
    background: linear-gradient(180deg, #fff7fb 0%, #ffffff 100%);
    border-block: 1px solid rgba(194, 24, 91, 0.12);
    position: relative;
    overflow: hidden;
}

.home-carousel-shell {
    position: relative;
    width: 100%;
    height: clamp(260px, 42vw, 560px);
    overflow: hidden;
}

.home-slide {
    position: absolute;
    inset: 0;
    padding: clamp(12px, 2vw, 28px);
    opacity: 0;
    transition: opacity 0.65s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.home-slide.is-active {
    opacity: 1;
}

.home-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    filter: drop-shadow(0 18px 34px rgba(44, 21, 34, 0.14));
}

.home-carousel-controls {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
}

.home-carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(194, 24, 91, 0.22);
    background: rgba(255, 255, 255, 0.8);
    color: var(--pink-deep);
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition:
        background 0.2s,
        border-color 0.2s;
}
.home-carousel-btn:hover {
    background: var(--pink-deep);
    color: #ffffff;
    border-color: transparent;
}

.home-carousel-dots {
    display: flex;
    gap: 0.5rem;
}
.home-carousel-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(194, 24, 91, 0.28);
    transition:
        background 0.3s,
        transform 0.3s;
}
.home-carousel-dots span.active {
    background: var(--pink-deep);
    transform: scale(1.3);
}

/* ─── Problemática ───────────────────────────────────────────── */

.home-problema {
    background: #ffffff;
    border-bottom: 1px solid rgba(194, 24, 91, 0.08);
}

.home-problema-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.home-problema-text p {
    color: #5a4a52;
    font-size: 0.97rem;
    line-height: 1.8;
    margin-bottom: 1.1rem;
    text-align: justify;
}
.home-problema-text strong {
    color: var(--pink-deep);
    font-weight: 700;
}

.home-refs {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: #fff0f5;
    border-left: 3px solid var(--pink-deep);
    border-radius: 0 8px 8px 0;
}
.home-refs-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--pink-deep);
    margin: 0 0 0.6rem;
}
.home-refs ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.4rem;
}
.home-refs ul li {
    font-size: 0.82rem;
    color: #7a6670;
    line-height: 1.5;
    padding-left: 1rem;
    position: relative;
}
.home-refs ul li::before {
    content: "·";
    position: absolute;
    left: 0;
    color: var(--pink-deep);
    font-weight: 700;
}
.home-refs ul li a {
    color: var(--pink-deep);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.home-problema-fig {
    margin: 0;
    position: sticky;
    top: 2rem;
}
.home-img-slot {
    background: linear-gradient(135deg, #fff0f5, #fdf5f8);
    border: 1px solid rgba(194, 24, 91, 0.12);
    border-radius: 10px;
    overflow: hidden;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.home-img-slot img {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    display: block;
}
.home-problema-fig figcaption {
    margin-top: 0.65rem;
    font-size: 0.8rem;
    color: #9a6878;
    text-align: center;
    line-height: 1.4;
}

/* ─── Instituciones ──────────────────────────────────────────── */

.home-instituciones {
    background: #fff0f5;
    border-top: 1px solid rgba(194, 24, 91, 0.1);
}
.home-instituciones .eyebrow {
    display: block;
    margin-bottom: 1.75rem;
}

.home-inst-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem 4rem;
}

.home-inst-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.home-inst-item:hover {
    opacity: 1;
}
.home-inst-item img {
    max-height: 80px;
    max-width: 180px;
    object-fit: contain;
}

/* ─── Responsive ─────────────────────────────────────────────── */

@media (max-width: 768px) {
    .home-carousel-shell {
        height: clamp(200px, 56vw, 360px);
    }
    .home-problema-grid {
        grid-template-columns: 1fr;
    }
    .home-problema-fig {
        position: static;
        order: -1;
    }
    .home-inst-grid {
        gap: 1.5rem 2.5rem;
    }
    .home-inst-item img {
        max-height: 55px;
        max-width: 130px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Información Clínica
   ═══════════════════════════════════════════════════════════════ */

/* ─── Contenedor de página ───────────────────────────────────── */

.cl-page {
    width: min(1140px, calc(100% - 36px));
    margin: 0 auto;
    padding: 0 0 4rem;
}

/* ─── Divider decorativo ─────────────────────────────────────── */

.cl-divider {
    width: 40px;
    height: 3px;
    background: var(--cl-pink);
    border-radius: 2px;
    margin: 0 0 2rem;
}

/* ─── Prosa general ──────────────────────────────────────────── */

.cl-prose p {
    color: var(--cl-text);
    font-size: 0.97rem;
    line-height: 1.8;
    margin-bottom: 1.1rem;
    text-align: justify;
}

.cl-prose strong {
    color: var(--cl-plum);
    font-weight: 700;
}

/* ─── Encabezados ────────────────────────────────────────────── */

.cl-heading {
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 700;
    color: var(--cl-plum);
    margin: 2.2rem 0 0.75rem;
    line-height: 1.25;
}

.cl-heading--refs {
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--cl-border);
    margin-top: 0;
}

/* ─── Pull list flotante ─────────────────────────────────────── */

.cl-pull-list {
    float: right;
    clear: right;
    width: 290px;
    margin: 0.25rem 0 1.5rem 2rem;
    padding: 1.25rem 1.5rem;
    background: #ffffff;
    border: 1px solid var(--cl-border);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(44, 21, 34, 0.07);
}

.cl-pull-list h4 {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--cl-pink);
    margin-bottom: 1rem;
}
.cl-pull-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.65rem;
}

.cl-pull-list ul li {
    position: relative;
    padding-left: 1.1rem;
    font-size: 0.88rem;
    color: var(--cl-text);
    line-height: 1.55;
}

.cl-pull-list ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.52rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cl-pink);
}

.cl-clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ─── Callout ────────────────────────────────────────────────── */

.cl-callout {
    margin: 0.5rem 0 1.5rem;
    padding: 0.9rem 1.25rem;
    border-left: 3px solid var(--cl-pink);
    background: var(--cl-bg);
    border-radius: 0 8px 8px 0;
}

.cl-callout p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cl-pink) !important;
}

.cl-callout a {
    color: var(--cl-pink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cl-callout a:hover {
    color: var(--cl-pink-light);
}

/* ─── BI-RADS ────────────────────────────────────────────────── */

.cl-birads {
    margin: 2.5rem 0;
    --birads-gap: 0.75rem;
}

.cl-birads-sub {
    color: var(--cl-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    max-width: 780px;
}

.cl-birads-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: var(--birads-gap);
}

.cl-b-step {
    padding: 0.9rem 0.75rem;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    border-left: 3px solid transparent;
}
.cl-b-cat {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: block;
}
.cl-b-desc {
    font-size: 0.75rem;
    line-height: 1.4;
    display: block;
    opacity: 0.88;
}

.cl-b0 {
    background: #f0f0f0;
    border-left-color: #999;
}
.cl-b0 .cl-b-cat,
.cl-b0 .cl-b-desc {
    color: #555;
}
.cl-b1 {
    background: #d4e8f7;
    border-left-color: #4a90c4;
}
.cl-b1 .cl-b-cat,
.cl-b1 .cl-b-desc {
    color: #1a5a8a;
}
.cl-b2 {
    background: #c5e8c5;
    border-left-color: #3a8a3a;
}
.cl-b2 .cl-b-cat,
.cl-b2 .cl-b-desc {
    color: #1d5a1d;
}
.cl-b3 {
    background: #f5e97a;
    border-left-color: #c9a800;
}
.cl-b3 .cl-b-cat,
.cl-b3 .cl-b-desc {
    color: #7a6200;
}
.cl-b4 {
    background: #f5c46a;
    border-left-color: #c46800;
}
.cl-b4 .cl-b-cat,
.cl-b4 .cl-b-desc {
    color: #7a3d00;
}
.cl-b5 {
    background: #c84020;
    border-left-color: #901a06;
}
.cl-b5 .cl-b-cat,
.cl-b5 .cl-b-desc {
    color: #ffffff;
}
.cl-b6 {
    background: #8a0c0c;
    border-left-color: #5a0000;
}
.cl-b6 .cl-b-cat,
.cl-b6 .cl-b-desc {
    color: #ffffff;
}

/* ─── Flecha de peligrosidad BI-RADS ─────────────────────────── */

.cl-birads-arrow {
    width: calc(57.143% - 0.321rem);
    margin-top: 1.4rem;
    margin-left: calc(42.857% + 0.321rem);
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.cl-birads-arrow-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #c84020;
}

.cl-birads-arrow-track {
    display: flex;
    align-items: center;
}

.cl-birads-arrow-bar {
    flex: 1;
    height: 4px;
    background: linear-gradient(90deg, #e8d44d, #e8922a, #d94e2a, #a82020);
    border-radius: 2px 0 0 2px;
}

.cl-birads-arrow-head {
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid #a82020;
}

@media (max-width: 1100px) {
    .cl-birads-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .cl-b3 {
        grid-column: 1;
    }
    .cl-b4 {
        grid-column: 2;
    }
    .cl-b5 {
        grid-column: 3;
    }
    .cl-b6 {
        grid-column: 4;
    }

    .cl-birads-arrow {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 700px) {
    .cl-birads-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cl-b2 {
        grid-column: 1 / -1;
    }
    .cl-b3,
    .cl-b5 {
        grid-column: 1;
    }
    .cl-b4,
    .cl-b6 {
        grid-column: 2;
    }

    .cl-birads-arrow {
        margin-top: 1.2rem;
    }
}

@media (max-width: 440px) {
    .cl-birads-grid {
        grid-template-columns: 1fr;
    }

    .cl-b2,
    .cl-b3,
    .cl-b4,
    .cl-b5,
    .cl-b6 {
        grid-column: auto;
    }
}

/* ─── Estudios adicionales ───────────────────────────────────── */

.cl-estudios {
    margin: 2.5rem 0;
}
.cl-estudios-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.cl-estudio-card {
    background: #ffffff;
    border: 1px solid var(--cl-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(44, 21, 34, 0.06);
    display: flex;
    flex-direction: column;
}

.cl-estudio-header {
    background: var(--cl-bg);
    border-bottom: 1px solid var(--cl-border);
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.cl-estudio-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--cl-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
}
.cl-estudio-icon svg {
    width: 17px;
    height: 17px;
}
.cl-estudio-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--cl-plum);
    margin: 0;
}
.cl-estudio-header p {
    font-size: 0.78rem;
    color: var(--cl-muted);
    margin: 2px 0 0;
}

.cl-estudio-img {
    margin: 0;
    background: linear-gradient(135deg, var(--cl-bg), #fdf5f8);
    border-bottom: 1px dashed var(--cl-border);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    flex: 1;
    overflow: hidden;
}
.cl-estudio-img img {
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    display: block;
}
.cl-estudio-body {
    padding: 0.9rem 1.25rem;
    font-size: 0.86rem;
    color: var(--cl-muted);
    line-height: 1.65;
}

/* ─── Referencias ────────────────────────────────────────────── */

.cl-referencias {
    margin: 2.5rem 0 1rem;
}

.cl-ref-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.cl-ref-item {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 0.75rem;
    align-items: start;
    padding: 0.85rem 1rem;
    background: #ffffff;
    border: 1px solid var(--cl-border);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(44, 21, 34, 0.04);
}

.cl-ref-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--cl-bg);
    border: 1px solid var(--cl-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--cl-pink);
    flex-shrink: 0;
    margin-top: 1px;
}

.cl-ref-text {
    font-size: 0.87rem;
    color: var(--cl-text);
    line-height: 1.65;
    margin: 0;
}
.cl-ref-text em {
    font-style: italic;
}
.cl-ref-text a {
    color: var(--cl-pink);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-size: 0.82rem;
    display: inline-block;
    margin-top: 4px;
}
.cl-ref-text a:hover {
    color: var(--cl-pink-light);
}
.cl-ref-access {
    display: block;
    font-size: 0.78rem;
    color: var(--cl-muted);
    margin-top: 3px;
    font-style: italic;
}

/* ─── Responsive ─────────────────────────────────────────────── */

@media (max-width: 700px) {
    .cl-page {
        padding: 1.5rem 1rem 3rem;
    }
    .cl-pull-list {
        float: none;
        width: 100%;
        margin: 0 0 1.25rem;
    }
    .cl-estudios-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Investigación Computacional
   ═══════════════════════════════════════════════════════════════ */

/* ─── Bloque numerado ────────────────────────────────────────── */

.cl-research-block {
    margin: 2.75rem 0;
    padding: 2rem;
    background: #ffffff;
    border: 1px solid var(--cl-border);
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(44, 21, 34, 0.05);
}

.cl-research-block + .cl-research-block {
    margin-top: 1.75rem;
}

.cl-research-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.cl-research-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--cl-bg);
    border: 1px solid var(--cl-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--cl-pink);
    margin-top: 2px;
}

.cl-heading--block {
    margin: 0;
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}

/* ─── Figura ─────────────────────────────────────────────────── */

.cl-figure {
    margin: 1.5rem 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--cl-border);
    box-shadow: 0 4px 14px rgba(44, 21, 34, 0.06);
}
.cl-figure-img {
    background: linear-gradient(135deg, var(--cl-bg), #fdf5f8);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 1rem;
}
.cl-figure-img img {
    width: 100%;
    max-height: 380px;
    object-fit: contain;
    display: block;
}

.cl-figure-caption {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    padding: 0.75rem 1.25rem;
    background: var(--cl-bg);
    border-top: 1px solid var(--cl-border);
    font-size: 0.83rem;
    color: var(--cl-muted);
    line-height: 1.5;
}

.cl-figure-label {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--cl-pink);
    background: #ffffff;
    border: 1px solid var(--cl-border);
    border-radius: 999px;
    padding: 2px 9px;
}

/* ─── Grid de incisos a), b), c), d) ────────────────────────── */

.cl-figura-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
    margin-top: 1.25rem;
}

.cl-figura-item {
    padding: 0.9rem 1rem;
    background: #ffffff;
    border: 1px solid var(--cl-border);
    border-top: 3px solid var(--cl-pink);
    border-radius: 0 0 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.cl-figura-letra {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--cl-pink);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.cl-figura-item p {
    font-size: 0.85rem;
    color: var(--cl-text);
    line-height: 1.55;
    margin: 0;
}

/* ─── Artículo científico ────────────────────────────────────── */

.cl-article-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 1.5rem 0 0.5rem;
    padding: 1.1rem 1.25rem;
    background: #ffffff;
    border: 1px solid var(--cl-border);
    border-left: 4px solid var(--cl-pink);
    border-radius: 0 10px 10px 0;
    box-shadow: 0 4px 14px rgba(44, 21, 34, 0.06);
    text-decoration: none;
    transition:
        box-shadow 0.2s,
        border-left-color 0.2s;
}

.cl-article-card:hover {
    box-shadow: 0 6px 22px rgba(44, 21, 34, 0.1);
    border-left-color: var(--cl-pink-light);
}

.cl-article-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--cl-bg);
    border: 1px solid var(--cl-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cl-pink);
    margin-top: 2px;
}
.cl-article-icon svg {
    width: 18px;
    height: 18px;
}

.cl-article-body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.cl-article-type {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--cl-pink);
}
.cl-article-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--cl-plum);
    line-height: 1.4;
    margin: 0;
}
.cl-article-link {
    font-size: 0.8rem;
    color: var(--cl-muted);
    margin-top: 2px;
}

/* ─── Responsive ─────────────────────────────────────────────── */

@media (max-width: 700px) {
    .cl-research-block {
        padding: 1.25rem 1rem;
    }
    .cl-research-header {
        flex-direction: column;
        gap: 0.6rem;
    }
    .cl-article-card {
        flex-direction: column;
        gap: 0.75rem;
    }
    .cl-figura-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ═══════════════════════════════════════════════════════════════
   Acerca de
   ═══════════════════════════════════════════════════════════════ */

/* ─── Tarjeta resumen del proyecto ───────────────────────────── */

.cl-about-card {
    margin: 1.75rem 0;
    background: #ffffff;
    border: 1px solid var(--cl-border);
    border-left: 4px solid var(--cl-pink);
    border-radius: 0 10px 10px 0;
    box-shadow: 0 4px 14px rgba(44, 21, 34, 0.05);
    overflow: hidden;
}

.cl-about-card-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.25rem;
    background: var(--cl-bg);
    border-bottom: 1px solid var(--cl-border);
}
.cl-about-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid var(--cl-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cl-pink);
    flex-shrink: 0;
}
.cl-about-icon svg {
    width: 16px;
    height: 16px;
}
.cl-about-card-label {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--cl-pink);
}
.cl-about-card-body {
    padding: 1.1rem 1.25rem;
    font-size: 0.95rem;
    color: var(--cl-text);
    line-height: 1.8;
    margin: 0;
    text-align: justify;
}

/* ─── Logos institucionales ──────────────────────────────────── */

.cl-logos {
    margin: 2.5rem 0;
}
.cl-logos-label {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--cl-pink);
    margin: 0 0 1rem;
}

.cl-logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.cl-logo-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.cl-logo-slot a {
    display: flex;
    align-items: center;
    justify-content: center;
}
.cl-logo-slot img {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
}
.cl-logo-hrae {
    max-height: 150px !important;
}

/* ─── Equipo ─────────────────────────────────────────────────── */

.cl-team {
    margin: 2.5rem 0;
    display: grid;
    gap: 2rem;
}
.cl-team-block {
    display: grid;
    gap: 0.75rem;
}
.cl-team-block .cl-heading {
    margin: 0;
}

.cl-team-lead {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: #ffffff;
    border: 1px solid var(--cl-border);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(44, 21, 34, 0.04);
}

.cl-team-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--cl-bg);
    border: 1px solid var(--cl-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--cl-pink);
    flex-shrink: 0;
}

.cl-team-lead-info {
    display: grid;
    gap: 0.25rem;
}
.cl-team-lead-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--cl-plum);
    margin: 0;
}
.cl-team-lead-role {
    font-size: 0.85rem;
    color: var(--cl-muted);
    margin: 0;
}

.cl-team-email {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: var(--cl-pink);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.cl-team-email svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.cl-team-email:hover {
    color: var(--cl-pink-light);
}

.cl-team-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: start;
}

.cl-team-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #ffffff;
    border: 1px solid var(--cl-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(44, 21, 34, 0.04);
}

.cl-team-list li {
    padding: 0.75rem 1.1rem;
    font-size: 0.9rem;
    color: var(--cl-text);
    border-bottom: 1px solid var(--cl-border);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.cl-team-list li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cl-pink);
    flex-shrink: 0;
}
.cl-team-list li:last-child {
    border-bottom: none;
}

/* ─── Contacto ───────────────────────────────────────────────── */

.cl-contact {
    margin: 2.5rem 0 1rem;
    padding: 1.5rem;
    background: var(--cl-bg);
    border: 1px solid var(--cl-border);
    border-radius: 10px;
    text-align: center;
}
.cl-contact-inner {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.cl-contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--cl-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cl-pink);
}
.cl-contact-icon svg {
    width: 18px;
    height: 18px;
}
.cl-contact-label {
    font-size: 0.85rem;
    color: var(--cl-muted);
    margin: 0;
}
.cl-contact-email {
    font-size: 1rem;
    font-weight: 700;
    color: var(--cl-pink);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.cl-contact-email:hover {
    color: var(--cl-pink-light);
}

/* ─── Responsive ─────────────────────────────────────────────── */

@media (max-width: 700px) {
    .cl-logos-grid {
        flex-direction: column;
        gap: 1.5rem;
    }
    .cl-team-cols {
        grid-template-columns: 1fr;
    }
    .cl-team-lead {
        flex-direction: column;
        gap: 0.75rem;
    }
}
