:root {
    --copelar-azul: #0d6efd;
    --copelar-azul-oscuro: #073b76;
    --copelar-verde: #198754;
    --copelar-fondo: #f4f7fb;
    --copelar-texto: #243247;
}

body { font-family: "Montserrat", sans-serif; color: var(--copelar-texto); background: #fff; }

.institucion-hero { color: #fff; background: linear-gradient(120deg,rgba(7,59,118,.98),rgba(13,110,253,.88)); overflow: hidden; }
.institucion-hero h2 { max-width: 780px; margin: 14px 0; font-size: clamp(2rem,4vw,3.35rem); font-weight: 700; line-height: 1.08; }
.institucion-hero p { max-width: 700px; font-size: 1.05rem; opacity: .92; }
.etiqueta-seccion { display: inline-flex; gap: 8px; align-items: center; padding: 7px 13px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: rgba(255,255,255,.12); font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.hero-imagen { width: 100%; max-height: 330px; object-fit: cover; border: 7px solid rgba(255,255,255,.18); border-radius: 22px; box-shadow: 0 22px 45px rgba(0,0,0,.28); }

.identidad-seccion { position: relative; z-index: 2; margin-top: -1px; background: #fff; border-bottom: 1px solid #e0e8f2; }
.identidad-grid { box-shadow: 0 10px 30px rgba(27,54,93,.07); }
.identidad-item { display: flex; gap: 14px; align-items: center; justify-content: center; min-height: 112px; padding: 23px; border-right: 1px solid #e0e8f2; }
.identidad-grid > div:last-child .identidad-item { border-right: 0; }
.identidad-item > i { color: var(--copelar-azul); font-size: 2rem; }
.identidad-item div { display: flex; flex-direction: column; }
.identidad-item strong { color: var(--copelar-azul-oscuro); }
.identidad-item span { color: #718096; font-size: .78rem; }

.historia-destacado { position: relative; overflow: hidden; padding: 38px; color: #fff; border-radius: 22px; background: linear-gradient(145deg,var(--copelar-azul-oscuro),var(--copelar-azul)); box-shadow: 0 18px 38px rgba(7,59,118,.22); }
.historia-destacado::after { content: ""; position: absolute; right: -55px; bottom: -70px; width: 190px; height: 190px; border: 28px solid rgba(255,255,255,.09); border-radius: 50%; }
.historia-destacado > span { font-size: .78rem; font-weight: 700; letter-spacing: .12em; }
.historia-destacado > i { display: block; margin: 25px 0 18px; font-size: 3rem; }
.historia-destacado h3 { position: relative; z-index: 1; font-size: 1.6rem; font-weight: 700; }
.historia-destacado p { position: relative; z-index: 1; margin: 0; opacity: .88; }
.etiqueta-azul { color: var(--copelar-azul); font-size: .78rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.titulo-contenido { margin: 8px 0 22px; color: var(--copelar-azul-oscuro); font-weight: 700; }
.texto-institucional p { color: #4e5d70; line-height: 1.8; }

.funciones-seccion { background: var(--copelar-fondo); }
.encabezado-seccion { max-width: 720px; margin: 0 auto 34px; }
.encabezado-seccion > span { color: var(--copelar-azul); font-size: .78rem; font-weight: 700; letter-spacing: .11em; }
.encabezado-seccion h3 { margin-top: 7px; color: var(--copelar-azul-oscuro); font-weight: 700; }
.funcion-card { padding: 27px 24px; border: 1px solid #dfe7f2; border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(27,54,93,.07); transition: transform .2s ease,box-shadow .2s ease; }
.funcion-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(27,54,93,.13); }
.funcion-icono { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 20px; color: #fff; border-radius: 15px; background: var(--copelar-azul); font-size: 1.45rem; }
.funcion-icono.verde { background: var(--copelar-verde); }
.funcion-card h4 { color: var(--copelar-azul-oscuro); font-size: 1.06rem; font-weight: 700; }
.funcion-card p { margin: 0; color: #66758a; font-size: .9rem; line-height: 1.65; }

.marco-legal { padding: 34px; border: 1px solid #dfe7f2; border-radius: 22px; background: #fff; box-shadow: 0 13px 35px rgba(27,54,93,.08); }
.ley-destacada { display: flex; align-items: center; flex-direction: column; justify-content: center; min-height: 330px; padding: 30px; color: #fff; text-align: center; border-radius: 18px; background: linear-gradient(145deg,#0b6843,var(--copelar-verde)); }
.ley-destacada i { margin-bottom: 20px; font-size: 2.7rem; }
.ley-destacada span { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .82; }
.ley-destacada strong { margin: 10px 0; font-size: 1.75rem; line-height: 1.3; }
.ley-destacada small { opacity: .82; }
.obligatoriedad-box { display: flex; gap: 14px; align-items: flex-start; padding: 17px 19px; margin-top: 20px; color: #674f00; border-left: 4px solid #e5ad00; border-radius: 11px; background: #fff8dd; }
.obligatoriedad-box i { flex: 0 0 auto; font-size: 1.4rem; }
.obligatoriedad-box p { margin: 0; line-height: 1.6; }

.cta-institucion { display: flex; gap: 25px; align-items: center; justify-content: space-between; padding: 30px; color: #fff; border-radius: 20px; background: linear-gradient(120deg,#073b76,#0b579e); box-shadow: 0 15px 35px rgba(7,59,118,.18); }
.cta-institucion span { font-size: .8rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; opacity: .8; }
.cta-institucion h3 { margin: 5px 0; font-weight: 700; }
.cta-institucion p { margin: 0; opacity: .88; }
.cta-institucion .btn { flex: 0 0 auto; }
.mapa-seccion iframe { display: block; width: 100%; height: 390px; }

@media (max-width: 767.98px) {
    .institucion-hero { text-align: center; }
    .institucion-hero p { margin-right: auto; margin-left: auto; }
    .identidad-item { justify-content: flex-start; border-right: 0; border-bottom: 1px solid #e0e8f2; }
    .identidad-grid > div:last-child .identidad-item { border-bottom: 0; }
    .historia-destacado { padding: 28px; text-align: center; }
    .marco-legal { padding: 22px; }
    .ley-destacada { min-height: 280px; }
    .cta-institucion { align-items: stretch; flex-direction: column; text-align: center; }
    .cta-institucion .btn { width: 100%; }
}
