@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

:root {
    --navy: #123b55;
    --blue: #218baa;
    --orange: #d9a64a;
    --turquoise: #65b9cc;
    --ink: #17384b;
    --muted: #627987;
    --pale: #f3f7f9;
    --line: #dce8ed;
    --white: #fff
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px
}

body {
    font-family: Inter, Arial, sans-serif;
    color: var(--ink);
    line-height: 1.65
}

h1,
h2,
h3,
h4,
.brand-name {
    font-family: Poppins, Inter, sans-serif;
    letter-spacing: -.035em
}

h2 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.16;
    color: var(--navy)
}

h2 span {
    color: var(--blue)
}

p {
    color: var(--muted)
}

.topbar {
    background: var(--navy);
    color: #dbe8f3;
    font-size: .78rem;
    padding: 8px 0
}

.topbar a {
    color: #fff;
    text-decoration: none;
    font-weight: 700
}

.main-nav {
    box-shadow: 0 4px 22px #102a4310
}

.brand-logo {
    width: 53px;
    height: 53px;
    object-fit: contain;
    border-radius: 8px
}

.brand-name {
    font-size: .9rem;
    color: var(--navy);
    line-height: 1.2;
    display: flex;
    flex-direction: column
}

.brand-name strong {
    font-size: .9rem
}

.brand-name small {
    font: 500 .62rem Inter, sans-serif;
    color: var(--muted);
    letter-spacing: 0
}

.nav-link {
    font-size: .88rem;
    font-weight: 600;
    color: #40566a !important
}

.nav-link:hover {
    color: var(--blue) !important
}

.btn {
    font-weight: 700;
    border-radius: 8px
}

.btn-accent {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
    box-shadow: 0 8px 20px #d9a64a33
}

.btn-accent:hover {
    background: #b88328;
    border-color: #b88328;
    color: #fff;
    transform: translateY(-1px)
}

.hero {
    position: relative;
    isolation: isolate;
    color: #fff;
    background: var(--navy);
    overflow: hidden
}

.hero-image,
.hero-shade {
    position: absolute;
    inset: 0;
    z-index: -1
}

.hero-image {
    background: url("../img/instalaciones-bth.webp") center 52%/cover no-repeat;
    transform: scale(1.015)
}

.hero-shade {
    background: linear-gradient(90deg, rgba(8, 29, 48, .94) 0%, rgba(8, 29, 48, .82) 48%, rgba(8, 29, 48, .25) 100%), linear-gradient(0deg, rgba(8, 29, 48, .35), transparent 45%)
}

.min-vh-hero {
    min-height: 610px;
    padding-top: 76px;
    padding-bottom: 90px
}

.eyebrow,
.section-kicker,
.panel-label {
    font-size: .72rem;
    letter-spacing: .16em;
    font-weight: 800;
    color: #e6bd70
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 13px;
    border: 1px solid #ffffff45;
    border-radius: 99px;
    background: #ffffff12
}

.eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--orange)
}

.hero h1 {
    font-size: clamp(2.8rem, 6.3vw, 5.25rem);
    font-weight: 800;
    line-height: 1.07;
    max-width: 800px;
    margin: 24px 0
}

.hero h1 span {
    color: #f0c36d
}

.hero-lead {
    font-size: 1.12rem;
    max-width: 610px;
    color: #e0e9f0
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 48px;
    padding-top: 23px;
    border-top: 1px solid #ffffff4a
}

.hero-facts div {
    display: flex;
    flex-direction: column
}

.hero-facts strong {
    font-size: 1.05rem;
    color: #fff
}

.hero-facts span,
.hero-note {
    font-size: .75rem;
    color: #d0dce5
}

.hero-note {
    display: block;
    margin-top: 13px
}

.hero-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding-top: 13px;
    padding-bottom: 13px;
    border-top: 1px solid #ffffff35;
    font-size: .65rem;
    letter-spacing: .12em;
    color: #d0dce5
}

.section-space {
    padding: 100px 0
}

.intro-section {
    background: #fff
}

.intro-section h2 {
    max-width: 480px
}

.intro-copy {
    font-size: 1.05rem;
    line-height: 1.9
}

.text-link {
    font-weight: 800;
    color: var(--blue);
    text-decoration: none;
    font-size: .9rem
}

.text-link span {
    margin-left: 5px
}

.text-link:hover {
    color: var(--orange)
}

.section-heading {
    max-width: 720px;
    margin-bottom: 60px
}

.section-heading h2 {
    margin: 13px 0
}

.section-heading p {
    font-size: 1.02rem
}

.offer-section {
    background: var(--pale)
}

.area-label {
    display: flex;
    align-items: center;
    gap: 17px;
    margin: 0 0 23px
}

.area-number {
    font: 800 1.5rem Poppins;
    color: var(--blue);
    background: #dff1f5;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center
}

.orange-number {
    color: #c76a13;
    background: #fff0df
}

.area-label h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    color: var(--navy)
}

.area-label p {
    margin: 3px 0 0;
    font-size: .9rem
}

.program-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 15px;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px #102a4312
}

.program-visual {
    height: 190px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden
}

.program-visual:before,
.program-visual:after {
    content: "";
    position: absolute;
    border: 1px solid #ffffff55;
    border-radius: 50%;
    width: 230px;
    height: 230px;
    right: -65px;
    top: -95px
}

.program-visual:after {
    width: 155px;
    height: 155px;
    right: auto;
    left: -45px;
    top: auto;
    bottom: -85px
}

.visual-human-primary {
    background: linear-gradient(135deg, #218baa, #6ca6ca)
}

.visual-human-secondary {
    background: linear-gradient(135deg, #173e68, #65b9cc)
}

.visual-tech {
    background: linear-gradient(135deg, #17617d, #218baa)
}

.visual-gastro {
    background: linear-gradient(135deg, #b88328, #e0b85f)
}

.visual-design {
    background: linear-gradient(135deg, #426f8b, #83b9c5)
}

.visual-music {
    background: linear-gradient(135deg, #176b70, #65b9cc)
}

.visual-icon {
    font: 800 4.4rem Poppins;
    color: #ffffffdc;
    z-index: 1;
    text-shadow: 0 5px 20px #0002
}

.visual-caption {
    position: absolute;
    bottom: 15px;
    left: 19px;
    color: #fff;
    font-size: .64rem;
    letter-spacing: .15em;
    font-weight: 800
}

.program-body {
    padding: 24px
}

.program-tag {
    font-size: .63rem;
    letter-spacing: .13em;
    font-weight: 800;
    color: var(--blue)
}

.program-body h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin: 9px 0
}

.program-body p {
    font-size: .87rem;
    min-height: 65px
}

.offer-note {
    font-size: .78rem;
    margin-top: 25px
}

.why-section {
    background: var(--navy);
    color: #fff
}

.why-section h2 {
    color: #fff
}

.why-section h2 span {
    color: #f0c36d
}

.why-section p {
    color: #c4d2de
}

.light-kicker {
    color: #f0c36d
}

.benefit {
    height: 100%;
    padding: 24px 20px;
    border: 1px solid #ffffff2b;
    border-radius: 13px;
    background: #ffffff08
}

.benefit-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #ffffff14;
    color: #f0c36d;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 20px
}

.benefit h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff
}

.benefit p {
    font-size: .82rem;
    margin: 0
}

.admission-section {
    background: #fff
}

.admission-lead {
    font-size: 1.02rem;
    margin: 20px 0 30px
}

.requirements {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fbfdff
}

.requirements h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 20px
}

.requirement {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    font-size: .9rem;
    font-weight: 600
}

.requirement span {
    color: var(--orange);
    font-size: .75rem;
    font-weight: 800
}

.muted-note,
.map-note {
    display: block;
    color: #788b9b;
    font-size: .75rem;
    margin-top: 12px
}

.enroll-panel {
    background: var(--navy);
    border-radius: 18px;
    padding: 42px;
    color: #fff;
    box-shadow: 0 22px 50px #102a4322
}

.panel-label {
    color: #f0c36d
}

.enroll-panel h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 12px 0 20px
}

.enroll-panel p {
    color: #c7d6e2;
    margin: 0
}

.schedule {
    font: 700 clamp(2.7rem, 5vw, 4rem) Poppins;
    color: #fff;
    letter-spacing: -.06em
}

.schedule span {
    color: #f0c36d;
    font-size: .65em
}

.schedule-label {
    font-size: .7rem;
    letter-spacing: .2em;
    color: #f0c36d;
    font-weight: 800
}

.enroll-panel small {
    display: block;
    text-align: center;
    color: #c4d2de;
    margin-top: 15px
}

.contact-section {
    background: var(--pale)
}

.contact-section h2 {
    margin: 15px 0 35px
}

.contact-item {
    display: flex;
    gap: 16px;
    margin: 23px 0
}

.contact-symbol {
    flex-shrink: 0;
    width: 43px;
    height: 43px;
    border-radius: 12px;
    background: #dff1f5;
    color: var(--blue);
    display: grid;
    place-items: center;
    font-size: 1.3rem
}

.contact-item strong {
    color: var(--navy)
}

.contact-item p {
    margin: 3px 0 0;
    font-size: .9rem
}

.contact-item a {
    color: var(--blue);
    font-weight: 700;
    text-decoration: none
}

.location-photo {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 45px #102a431c
}

.location-photo img {
    width: 100%;
    height: 390px;
    object-fit: cover;
    display: block
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 35px 24px 20px;
    color: #fff;
    background: linear-gradient(transparent, #102a43dd);
    display: flex;
    flex-direction: column
}

.photo-caption span {
    font-size: .65rem;
    letter-spacing: .15em;
    color: #f0c36d;
    font-weight: 800
}

.photo-caption strong {
    font: 600 1.15rem Poppins
}

.final-cta {
    background: #218baa;
    padding: 55px 0;
    color: #fff
}

.final-cta h2 {
    color: #fff;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    margin: 8px 0 0
}

.footer {
    background: #0b2033;
    color: #d2dee8;
    padding: 28px 0;
    font-size: .78rem
}

.footer strong,
.footer small {
    display: block
}

.footer small {
    color: #9db0c0
}

.footer-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px
}

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #1fbf69;
    color: white;
    text-decoration: none;
    font-size: 1.7rem;
    box-shadow: 0 8px 25px #0003;
    z-index: 1000
}

.whatsapp-float:hover {
    background: #149e55;
    color: #fff;
    transform: translateY(-2px)
}

@media(max-width:767.98px) {
    .section-space {
        padding: 70px 0
    }

    .brand-logo {
        width: 45px;
        height: 45px
    }

    .brand-name,
    .brand-name strong {
        font-size: .78rem
    }

    .min-vh-hero {
        min-height: 690px;
        padding-top: 75px;
        padding-bottom: 100px
    }

    .hero-image {
        background-position: 58% center
    }

    .hero-shade {
        background: linear-gradient(90deg, rgba(8, 29, 48, .91), rgba(8, 29, 48, .58)), linear-gradient(0deg, rgba(8, 29, 48, .65), transparent)
    }

    .hero h1 {
        font-size: clamp(2.6rem, 12vw, 4rem)
    }

    .hero-lead {
        font-size: 1rem
    }

    .hero-facts {
        gap: 18px;
        margin-top: 35px
    }

    .hero-facts div {
        min-width: 40%
    }

    .hero-bottom {
        font-size: .53rem;
        letter-spacing: .07em
    }

    .hero-bottom span:last-child {
        display: none
    }

    .section-heading {
        margin-bottom: 42px
    }

    .program-visual {
        height: 165px
    }

    .program-body {
        padding: 20px
    }

    .program-body p {
        min-height: 0
    }

    .enroll-panel {
        padding: 30px 24px
    }

    .location-photo img {
        height: 280px
    }

    .topbar {
        font-size: .68rem
    }

    .topbar .container {
        flex-wrap: wrap
    }

    .final-cta {
        text-align: center
    }

    .final-cta .btn {
        margin-top: 25px
    }

    .whatsapp-float {
        right: 15px;
        bottom: 15px;
        width: 52px;
        height: 52px
    }
}

.mini-form {
    margin-top: 26px;
    padding: 22px;
    border: 1px solid #ffffff35;
    border-radius: 13px;
    background: #ffffff0b
}

.mini-form h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 5px
}

.mini-form p {
    font-size: .8rem;
    color: #c4d2de;
    margin-bottom: 16px
}

.mini-form .form-label {
    font-size: .78rem;
    color: #e2ebf2;
    font-weight: 600
}

.mini-form .form-control,
.mini-form .form-select {
    border: 1px solid #ffffff45;
    background: #fff;
    border-radius: 7px;
    min-height: 43px;
    font-size: .88rem
}

.mini-form .btn-light {
    font-weight: 700;
    color: var(--navy);
    min-height: 45px
}

.form-privacy {
    display: block;
    color: #c4d2de;
    font-size: .68rem;
    text-align: left;
    margin-top: 10px
}

:focus-visible {
    outline: 3px solid #d9a64a;
    outline-offset: 3px
}

.area-number {
    background: #dff1f5;
    color: #17617d
}

.orange-number {
    background: #f8efd9;
    color: #98702b
}

.program-card {
    box-shadow: 0 5px 18px rgba(18, 59, 85, .045)
}

.program-card:hover {
    box-shadow: 0 18px 38px rgba(18, 59, 85, .13)
}

.text-link {
    color: #176f8a
}

.btn-accent {
    background: #d9a64a;
    border-color: #d9a64a;
    color: #123b55
}

.btn-accent:hover {
    background: #c39235;
    border-color: #c39235;
    color: #102a43
}

.hero h1 span {
    color: #f0c36d
}

.hero-shade {
    background: linear-gradient(90deg, rgba(10, 43, 63, .95) 0%, rgba(10, 43, 63, .82) 48%, rgba(10, 43, 63, .25) 100%), linear-gradient(0deg, rgba(10, 43, 63, .35), transparent 45%)
}

/* Fotografías provisionales generadas para reemplazo por imágenes reales del CEA. */
.program-visual {
    background-position: center;
    background-size: cover
}

.program-visual:before {
    inset: 0;
    width: auto;
    height: auto;
    right: 0;
    top: 0;
    border: 0;
    border-radius: 0;
    background: linear-gradient(0deg, rgba(9, 35, 53, .65), transparent 58%)
}

.program-visual:after {
    display: none
}

.visual-human-primary {
    background-image: url('../img/programas/primaria.webp')
}

.visual-human-secondary {
    background-image: url('../img/programas/secundariaa.webp')
}

.visual-tech {
    background-image: url('../img/programas/tecnologia.webp')
}

.visual-gastro {
    background-image: url('../img/programas/gastronomia.webp')
}

.visual-design {
    background-image: url('../img/programas/diseno-grafico.jpg')
}

.visual-music {
    background-image: url('../img/programas/artes-musicales.jpg')
}

.visual-icon {
    display: none
}

.visual-caption {
    z-index: 2;
    text-shadow: 0 1px 3px #000
}

.gallery-section {
    background: #fff
}

.gallery-card {
    height: 235px;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #dce8ed
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s
}

.gallery-card:hover img {
    transform: scale(1.045)
}

.gallery-card span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 16px 14px;
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    background: linear-gradient(transparent, rgba(10, 43, 63, .82))
}

@media(max-width:767.98px) {
    .gallery-card {
        height: 190px
    }
}

/* Fotografías de las tarjetas de oferta educativa */
.program-photo {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: #dce8ed
}

.human-card .program-photo {
    height: 190px
}

/* Galería filtrable */
.gallery-section {
    background: #fff
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 auto 32px
}

.gallery-filter {
    border: 1px solid #d8e5eb;
    background: #f3f7f9;
    color: #34566a;
    border-radius: 999px;
    padding: 9px 16px;
    font: 600 .8rem Inter, sans-serif;
    transition: .2s
}

.gallery-filter:hover,
.gallery-filter.active {
    background: #123b55;
    color: #fff;
    border-color: #123b55
}

.gallery-item {
    transition: opacity .2s, transform .2s
}

.gallery-item.is-hidden {
    display: none
}

.gallery-tile {
    display: block;
    position: relative;
    width: 100%;
    height: 245px;
    padding: 0;
    border: 0;
    border-radius: 13px;
    overflow: hidden;
    background: #dce8ed;
    text-align: left
}

.gallery-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s
}

.gallery-tile:hover img {
    transform: scale(1.045)
}

.gallery-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 34px 16px 14px;
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    background: linear-gradient(transparent, rgba(8, 29, 48, .85));
    display: flex;
    justify-content: space-between;
    align-items: end
}

.gallery-overlay b {
    font-size: 1.15rem;
    color: #f0c36d
}

.gallery-disclaimer {
    font-size: .75rem;
    color: #7b8d98;
    margin: 18px 0 0
}

.gallery-modal .modal-content {
    background: #0c2234;
    color: #fff;
    border: 1px solid #ffffff22;
    border-radius: 14px;
    overflow: hidden
}

.gallery-modal .modal-header {
    border-bottom: 1px solid #ffffff22
}

.gallery-modal .modal-body {
    position: relative;
    padding: 12px 56px 18px;
    text-align: center
}

.gallery-modal #lightboxImage {
    max-height: 72vh;
    max-width: 100%;
    object-fit: contain;
    border-radius: 7px
}

.gallery-modal #lightboxCaption {
    color: #d8e5ed;
    font-size: .85rem;
    margin: 13px 0 0
}

.lightbox-nav {
    position: absolute;
    top: 48%;
    transform: translateY(-50%);
    border: 1px solid #ffffff55;
    background: #ffffff18;
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.7rem;
    line-height: 1
}

.lightbox-prev {
    left: 10px
}

.lightbox-next {
    right: 10px
}

.projects-section {
    padding: 82px 0;
    background: #f3f7f9
}

.projects-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px
}

.projects-heading h2 {
    margin: 10px 0 0;
    font-size: clamp(1.9rem, 3.5vw, 2.7rem)
}

.projects-controls {
    display: flex;
    gap: 9px
}

.projects-controls button {
    width: 42px;
    height: 42px;
    border: 1px solid #cbdce4;
    border-radius: 50%;
    background: #fff;
    color: #123b55;
    font-size: 1.2rem
}

.projects-controls button:hover {
    background: #123b55;
    color: #fff
}

.project-slide {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 34px;
    align-items: center;
    background: #fff;
    border: 1px solid #dce8ed;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 12px 32px rgba(18, 59, 85, .07)
}

.project-slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 11px
}

.project-slide>div {
    padding: 15px 25px 15px 0
}

.project-tag {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .14em;
    color: #218baa
}

.project-slide h3 {
    font: 700 1.8rem Poppins, sans-serif;
    color: #123b55;
    margin: 12px 0
}

.project-slide p {
    margin: 0;
    max-width: 440px
}

@media(max-width:767.98px) {

    .program-photo,
    .human-card .program-photo {
        height: 165px
    }

    .gallery-tile {
        height: 165px
    }

    .gallery-filters {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px
    }

    .gallery-filter {
        white-space: nowrap
    }

    .gallery-modal .modal-body {
        padding: 12px 42px 18px
    }

    .projects-section {
        padding: 65px 0
    }

    .projects-heading {
        align-items: center
    }

    .project-slide {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 12px
    }

    .project-slide img {
        height: 210px
    }

    .project-slide>div {
        padding: 8px 10px 14px
    }

    .project-slide h3 {
        font-size: 1.4rem
    }
}