/* Réplica responsive de la portada IOSFA. No requiere frameworks externos. */
:root {
    --iosfa-teal: #087f9b;
    --iosfa-cyan: #3abaca;
    --iosfa-blue: #0783a1;
    --iosfa-green: #00bcae;
    --footer: #393939;
    --content-width: 1070px;
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body {
    margin: 0;
    color: #fff;
    background: #fff;
    font-family: Lato, Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}
html,
body {
    min-height: 100%;
    margin: 0;
}
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.spacer-area {
    flex: 1 0 auto;
}
footer {
    margin-top: auto;
}
a { color: inherit; }
.site { min-height: 100vh; display: flex; flex-direction: column; }
.header { height: 104px; flex: 0 0 104px; background: #fff; }
.header-inner {
    width: min(var(--content-width), calc(100% - 40px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: 210px; height: auto; max-height: 62px; }
.top-stripe { height: 52px; flex: 0 0 52px; background: var(--iosfa-teal); }
.hero { height: 261px; position: relative; overflow: hidden; background: #c8cdca; }
.slides, .slide { position: absolute; inset: 0; }
.slide {
    background-color: #c8cdca;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity .55s ease;
}
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero-inner {
    width: min(var(--content-width), calc(100% - 40px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
}
.slide-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 453px;
    min-height: 115px;
    padding: 26px 28px;
    background: rgba(55, 57, 56, .72);
    color: #fff;
    text-decoration: none;
    transition: background .2s ease;
}
.slide-copy:hover, .slide-copy:focus-visible { background: rgba(45, 47, 46, .9); }
.slide-title { font-family: "Roboto Condensed", Arial, sans-serif; font-size: 35px; line-height: 1.1; font-weight: 700; }
.slide-subtitle { margin-top: 4px; font-size: 14px; line-height: 1.35; font-weight: 700; }
.slider-arrow {
    position: absolute;
    z-index: 3;
    top: 0;
    bottom: 0;
    width: 76px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .95;
}
.slider-arrow:hover, .slider-arrow:focus-visible { background: rgba(0,0,0,.08); }
.slider-arrow img { width: 28px; height: 52px; object-fit: contain; }
.slider-prev { left: 0; }
.slider-next { right: 0; }
.slider-dots { display: none; }
.quick-links { min-height: 109px; background: var(--iosfa-cyan); }
.quick-links-inner {
    width: min(var(--content-width), 100%);
    min-height: 109px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.quick-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 15px;
    min-height: 109px;
    padding: 14px 28px;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    transition: filter .2s ease;
}
.quick-link:hover, .quick-link:focus-visible { filter: brightness(.93); }
.quick-link img { display: block; width: 31px; height: 34px; object-fit: contain; }
.quick-link-osfa { background: var(--iosfa-blue); }
.quick-link-osffeseg { background: var(--iosfa-green); }
.spacer-area { flex: 1 0 172px; min-height: 172px; background: #fff; }
.footer { min-height: 125px; background: var(--footer); }
.footer-inner {
    width: min(var(--content-width), calc(100% - 40px));
    min-height: 125px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.footer-brand { display: inline-flex; align-items: center; }
.footer-brand img { display: block; width: 205px; max-height: 62px; height: auto; }
.footer-ministry { display: flex; align-items: center; justify-content: flex-end; }
.footer-ministry img { display: block; width: 164px; max-height: 80px; object-fit: contain; }

@media (min-width: 1500px) {
    .hero { background-color: #c8cdca; }
    .slide { background-position: center 48%; }
}
@media (max-width: 700px) {
    .header { height: 72px; flex-basis: 72px; }
    .header-inner, .hero-inner, .footer-inner { width: calc(100% - 32px); }
    .brand img { width: 175px; }
    .top-stripe { height: 24px; flex-basis: 24px; }
    .hero { height: 300px; }
    .slide { background-position: 65% center; }
    .slide-copy {
        width: min(78%, 390px);
        min-height: 0;
        padding: 18px 18px;
        align-self: flex-end;
        margin-bottom: 28px;
        background: rgba(55,57,56,.78);
    }
    .slide-title { font-size: 27px; }
    .slide-subtitle { font-size: 13px; }
    .slider-arrow { width: 42px; }
    .slider-arrow img { width: 19px; height: 38px; }
    .slider-dots {
        display: flex;
        gap: 8px;
        position: absolute;
        z-index: 4;
        left: 50%;
        bottom: 10px;
        transform: translateX(-50%);
    }
    .slider-dot { width: 8px; height: 8px; border: 1px solid #fff; border-radius: 50%; padding: 0; background: transparent; }
    .slider-dot.is-active { background: #fff; }
    .quick-links-inner { grid-template-columns: 1fr 1fr; }
    .quick-link { padding: 14px 16px; min-height: 100px; font-size: 15px; gap: 11px; }
    .quick-link img { width: 27px; height: 29px; }
    .spacer-area { min-height: 100px; flex-basis: 100px; }
    .footer, .footer-inner { min-height: 110px; }
    .footer-brand img { width: 145px; }
    .footer-ministry img { width: 112px; }
}
@media (max-width: 380px) {
    .footer-inner { gap: 12px; }
    .footer-brand img { width: 125px; }
    .footer-ministry img { width: 100px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media (max-width: 650px) {

    .header {
        position: relative;
        height: 92px;
        flex: 0 0 92px;
        background: #fff;
        border-top: 2px solid var(--iosfa-teal);
        border-bottom: 1px solid #aaa;
    }

    .header-inner {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0 16px;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    .brand {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .brand img {
        display: block;
        width: 230px;
        max-width: 100%;
        max-height: 66px;
        height: auto;
        object-fit: contain;
    }

    
}

@media (max-width: 650px) {
    .quick-links a:hover {
        transform: none;
    }
}

@media (max-width: 650px) {
    .quick-links a {
        display: block;
        padding: 20px 0 20px 36px;
        background-repeat: no-repeat;
        background-position: 0;
        font-size: 16px;
        color: #fff;
        font-weight: 700;
        background-size: 24px;
        transition: none;
    }
}

@media (max-width: 650px) {
    .quick-links .quick-links-inner
    {
        padding: 0;
        display: block;
    }
    .spacer-area {
        min-height: 50px;
        flex-basis: 100px;
    }
    .slide {
        background-image: url(assets/slide-doctora-paciente.jpg);
        background-size: cover;
        background-position: 50% center;
    }
    .hero {
        height: 200px;
    }
    .spacer-area  {
        display: none;
    }
}


