/* Variables */

:root {
    --navy: #0A2E5C;
    --mustard: #F2C94C;
    --ink: #22252E;
    --bg: #FBFBFD;
    --panel: #FFFFFF;
    --muted: #5d626e;
    --radius: 16px;
    --shadow: 0 8px 24px rgba(10, 46, 92, .12);
    --header-h: 64px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px
}

.section {
    padding: 64px 0;
    scroll-margin-top: calc(var(--header-h) + 12px)
}

.section.white {
    background: var(--bg)
}

.section.mustard {
    background: var(--mustard)
}

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

.section .muted {
    color: var(--muted)
}

.section.navy .muted {
    color: #CED7E6
}

.card {
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px
}

.grid-2 {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 18px
}

.highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: flex-start
}

.pill {
    background: rgba(10, 46, 92, .08);
    color: var(--navy);
    padding: 8px 10px;
    border-radius: 999px;
    font-weight: 700
}

.section.mustard .pill {
    background: rgba(0, 0, 0, .05);
    color: #3b2e00
}

.section.navy .pill {
    background: rgba(255, 255, 255, .12);
    color: #fff
}


/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .98);
    border-bottom: 2px solid var(--navy);
    transition: box-shadow .25s ease, background .25s ease, border-color .25s ease
}

.site-header.scrolled {
    box-shadow: 0 6px 18px rgba(10, 46, 92, .18);
    background: rgba(255, 255, 255, .98)
}

.site-header.over-hero {
    background: transparent;
    border-bottom-color: rgba(255, 255, 255, .35)
}

.nav {
    max-width: 1100px;
    margin: auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

.brand {
    font-weight: 800;
    letter-spacing: .5px;
    font-size: 1.15rem;
    color: #fff;
    text-decoration: none
}

.site-header:not(.over-hero) .brand {
    color: var(--navy)
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.nav a {
    color: #0A2E5C;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 10px;
    position: relative;
    font-weight: 600
}

.site-header:not(.over-hero) .nav a {
    color: var(--navy)
}

.nav a:hover {
    background: rgba(255, 255, 255, .12)
}

.site-header:not(.over-hero) .nav a:hover {
    background: rgba(10, 46, 92, .08)
}

.btn {
    display: inline-block;
    background: var(--navy);
    color: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 800;
    border: 0;
    box-shadow: 0 10px 18px rgba(10, 46, 92, .18);
    transition: transform .15s ease, filter .2s ease
}

.btn:hover {
    filter: brightness(1.06);
    transform: translateY(-2px)
}

.btn.ghost {
    background: transparent;
    border: 1px solid #fff
}

.btn.small {
    padding: 6px 10px;
    font-size: .9rem
}


/* Hamburger */

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: 0;
    padding: 8px;
    border-radius: 10px
}

.menu-toggle .bar {
    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    display: block
}

.menu-toggle:focus-visible {
    outline: 3px solid var(--mustard)
}


/* Drawer */

.mobile-panel {
    position: fixed;
    inset: 0;
    pointer-events: none;
    visibility: hidden;
    z-index: 70
}

.mobile-panel .scrim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    opacity: 0;
    transition: opacity .25s ease
}

.mobile-panel .panel-content {
    position: absolute;
    top: 0;
    right: 0;
    width: min(88vw, 380px);
    height: 100%;
    background: #fff;
    border-left: 1px solid rgba(10, 46, 92, .15);
    box-shadow: -8px 0 28px rgba(10, 46, 92, .18);
    transform: translateX(100%);
    transition: transform .3s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px
}

.mobile-panel .panel-close {
    background: transparent;
    border: 0;
    font-size: 26px;
    align-self: flex-end
}

.mobile-panel a {
    padding: 12px;
    border-radius: 10px;
    color: var(--navy);
    font-weight: 700;
    text-decoration: none
}

.mobile-panel a:hover {
    background: rgba(10, 46, 92, .08)
}

.mobile-panel.open {
    pointer-events: auto;
    visibility: visible
}

.mobile-panel.open .scrim {
    opacity: 1
}

.mobile-panel.open .panel-content {
    transform: translateX(0)
}


/* Hero */

.hero {
    position: relative;
    min-height: 68vh;
    display: grid;
    place-items: center;
    color: #fff;
    overflow: hidden;
    background-image: linear-gradient(rgba(10, 46, 92, .72), rgba(10, 46, 92, .72)), url('assets/img/hero-obra.jpg');
    background-size: cover;
    background-position: center;
}

.hero-inner {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    position: relative;
    z-index: 2
}

.kicker {
    text-transform: uppercase;
    letter-spacing: .15em;
    font-weight: 800;
    opacity: .9
}

.hero h1 {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    margin: .3rem 0 .5rem
}

.hero .accent {
    color: var(--mustard)
}

.hero .lead {
    opacity: .95
}

.hero .cta {
    margin-top: 10px
}

.hero-bg {
    position: absolute;
    inset: -20%;
    background: radial-gradient(1200px 600px at 20% 20%, rgba(242, 201, 76, .18), transparent 60%), radial-gradient(800px 400px at 80% 10%, rgba(255, 255, 255, .08), transparent 60%)
}

.hero-inner {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    position: relative;
    z-index: 2
}

.kicker {
    text-transform: uppercase;
    letter-spacing: .15em;
    font-weight: 800;
    opacity: .9
}

.hero h1 {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    margin: .3rem 0 .5rem
}

.hero .accent {
    color: var(--mustard)
}

.hero .lead {
    opacity: .95
}

.hero .cta {
    margin-top: 10px
}

.hero-bg {
    position: absolute;
    inset: -20%;
    background: radial-gradient(1200px 600px at 20% 20%, rgba(242, 201, 76, .28), transparent 60%), radial-gradient(800px 400px at 80% 10%, rgba(255, 255, 255, .12), transparent 60%)
}


/* Identidad */

.section-head {
    margin-bottom: 10px
}

.id-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px
}

.id-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow)
}

.section.mustard .id-card {
    background: #fff
}

.id-card h3 {
    margin: 4px 0 8px;
    color: var(--navy)
}

.id-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--navy), #214d87);
    display: grid;
    place-items: center
}

.id-card .values {
    columns: 2;
    margin: 0;
    padding-left: 18px
}


/* Objetivos */

.obj-table {
    display: grid;
    grid-template-columns: 64px 200px 1fr;
    background: #0b376d;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow)
}

.obj-row {
    display: contents
}

.obj-cell {
    padding: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .12)
}

.obj-header .obj-cell {
    font-weight: 800;
    background: #092a52
}

.obj-cell.icon {
    display: grid;
    place-items: center
}

.obj-table .icon svg {
    width: 26px;
    height: 26px;
    fill: var(--mustard)
}

.obj-row:last-child .obj-cell {
    border-bottom: 0
}


/* Steps */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px
}

.step {
    background: var(--panel);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow)
}

.step h3 {
    margin: .3rem 0 .5rem;
    color: var(--navy)
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--mustard), #ffe58f);
    display: grid;
    place-items: center;
    color: #2d2d2d;
    font-weight: 800
}


/* Services */

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

.s-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow)
}

.s-card h3 {
    margin: .3rem 0 .4rem;
    color: var(--navy)
}


/* Footer + map */

.site-footer {
    background: var(--navy);
    color: #fff;
    text-align: center;
    padding: 28px 20px
}

.footer-map {
    max-width: 1100px;
    margin: 0 auto 18px
}

.footer-heading {
    margin: 0 0 6px;
    font-size: 1.1rem
}

.footer-address {
    margin: 0 0 12px;
    opacity: .95
}

.map-card {
    background: #ffffff10;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .18)
}

.map-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden
}

.map-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0
}

.map-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 10px 0 0
}

.btn.ghost.light {
    border: 1px solid rgba(255, 255, 255, .8);
    color: #fff
}

.btn.ghost.light:hover {
    background: rgba(255, 255, 255, .12)
}

.legal {
    opacity: .85;
    font-size: .95rem
}


/* Reveal (safe fallback) */

.reveal {
    opacity: 1;
    transform: none;
    transition: opacity .6s ease, transform .6s ease
}

.js .reveal {
    opacity: 0;
    transform: translateY(14px)
}

.reveal.is-visible {
    opacity: 1;
    transform: none
}

.reveal.d1 {
    transition-delay: .15s
}

.reveal.d2 {
    transition-delay: .3s
}

.reveal.d3 {
    transition-delay: .45s
}


/* Responsive */

@media (max-width:900px) {
    .links {
        display: none
    }
    .menu-toggle {
        display: flex
    }
    .grid-2 {
        grid-template-columns: 1fr
    }
    .id-grid {
        grid-template-columns: 1fr
    }
    .steps {
        grid-template-columns: 1fr
    }
    .service-grid {
        grid-template-columns: 1fr
    }
    .obj-table {
        grid-template-columns: 56px 160px 1fr
    }
}


/* Brand logo image */

.brand img {
    height: 34px;
    display: block;
    object-fit: contain
}

@media (max-width:900px) {
    .brand img {
        height: 30px
    }
}


/* Identidad media images */

.id-card .id-media {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
    margin-bottom: 10px
}

.id-card .id-media.mision {
    background-image: url('assets/img/identidad-mision.jpg')
}

.id-card .id-media.vision {
    background-image: url('assets/img/identidad-vision.jpg')
}

.id-card .id-media.valores {
    background-image: url('assets/img/identidad-valores.jpg')
}


/* Objetivos banner image */

.obj-media {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    background-image: linear-gradient(rgba(10, 46, 92, .25), rgba(10, 46, 92, .25)), url('assets/img/objetivos-banner.jpg');
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
    margin: 8px 0 16px
}