:root {
  --ink: #123b55;
  --muted: #5e7888;
  --teal: #087f9c;
  --teal-dark: #075474;
  --mint: #e5f4f7;
  --sand: #edf6f8;
  --cream: #f8fcfd;
  --coral: #ec765d;
  --line: #d9e4df;
  --white: #fff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--cream); color: var(--ink); font-family: "DM Sans", sans-serif; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
.container { margin: 0 auto; max-width: 1160px; padding: 0 28px; }
.sr-only { clip: rect(0, 0, 0, 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }

.site-header { background: var(--cream); position: relative; z-index: 10; }
.header-top { align-items: center; display: flex; justify-content: space-between; padding-bottom: 8px; padding-top: 12px; }
/*.institution-logo { display: block; line-height: 0; max-width: 360px; }
.institution-logo img { display: block; height: auto; max-height: 64px; object-fit: contain; width: 100%; }*/
.institution-logo { display: block; flex: 0 1 830px; line-height: 0; }
.institution-logo img { display: block; height: auto; max-height: 158px; object-fit: contain; width: 100%; }
.institution-logo { 
  display: block; 
  flex: 0 1 1300px; /* Aumenta este número si el contenedor necesita más ancho */
  line-height: 0; 
} 

.institution-logo img { 
  display: block; 
  height: auto; 
  max-height: 130px; /* Cambia este valor para aumentar o reducir la altura máxima */
  object-fit: contain; 
  width: 100%; 
}






.facebook-link { align-items: center; color: #1877f2; display: inline-flex; font-size: .78rem; font-weight: 700; gap: 8px; }
.facebook-link span:first-child { align-items: center; background: #1877f2; border-radius: 50%; color: #fff; display: inline-flex; font: 700 1.35rem Arial, sans-serif; height: 30px; justify-content: center; width: 30px; }
.nav-bar { align-items: center; display: flex; gap: 18px; height: 64px; justify-content: space-between; }


.brand { align-items: center; display: flex; font-family: Manrope, sans-serif; font-size: 1.38rem; font-weight: 800; letter-spacing: -.06em; }
.brand-mark { align-items: center; background: var(--teal); border-radius: 50%; color: var(--white); display: inline-flex; font-size: 1.7rem; height: 32px; justify-content: center; margin-right: 8px; transform: rotate(-12deg); width: 32px; }
.brand-accent { color: var(--coral); }
.nav-links { align-items: center; display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--muted); font-size: .84rem; font-weight: 600; transition: color .2s; }
.nav-links a:hover, .text-link:hover, .card-content a:hover { color: var(--coral); }
.nav-links .nav-map-link { border: 1px solid var(--line); border-radius: 30px; color: var(--teal-dark); padding: 10px 16px; }
.menu-toggle { background: none; border: 0; cursor: pointer; display: none; }

.hero { background: var(--mint); min-height: 615px; overflow: hidden; padding: 76px 0 68px; position: relative; }
.hero-grid { align-items: center; display: grid; gap: 70px; grid-template-columns: 1fr 1fr; position: relative; z-index: 1; }
.hero-copy { max-width: 530px; }
.eyebrow { align-items: center; color: var(--coral); display: flex; font-size: .68rem; font-weight: 700; letter-spacing: .16em; margin-bottom: 20px; text-transform: uppercase; }
.eyebrow-line { background: currentColor; display: inline-block; height: 1px; margin-right: 12px; width: 25px; }
h1, h2, h3 { font-family: Manrope, sans-serif; line-height: 1.12; }
h1 { font-size: clamp(3.3rem, 6vw, 5.35rem); letter-spacing: -.08em; max-width: 540px; }
h1 em { color: var(--teal); font-style: normal; }
.hero-text { color: var(--muted); font-size: 1rem; margin: 24px 0 31px; max-width: 460px; }
.hero-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 22px; }
.button { align-items: center; border: 0; border-radius: 20px; cursor: pointer; display: inline-flex; font: 600 .78rem "DM Sans", sans-serif; gap: 20px; justify-content: center; padding: 15px 21px; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--teal); color: var(--white); }
.button-primary:hover { background: var(--teal-dark); }
.button-quiet { color: var(--teal-dark); padding-left: 0; }
.hero-stats { border-top: 1px solid #cbded7; display: flex; gap: 42px; margin-top: 66px; padding-top: 18px; }
.hero-stats div { align-items: center; display: flex; gap: 9px; }
.hero-stats strong { color: var(--teal); font: 700 1.3rem Manrope, sans-serif; }
.hero-stats span { color: var(--muted); font-size: .61rem; line-height: 1.3; text-transform: uppercase; }
.hero-visual { margin: auto; position: relative; width: min(100%, 445px); }
.visual-card { background: #b9dfe8; border-radius: 48% 48% 5px 5px; height: 460px; overflow: hidden; position: relative; transform: rotate(3deg); }
.hero-video { background: #0c4761; display: block; height: 100%; object-fit: contain; width: 100%; }
.payment-promo { background: #d7eef4; border-bottom: 1px solid #bfdee6; border-top: 1px solid #bfdee6; }
.payment-promo-content { align-items: center; display: flex; gap: 30px; justify-content: space-between; padding-bottom: 24px; padding-top: 24px; }
.payment-promo h2 { color: var(--teal-dark); font-size: clamp(1.2rem, 2.3vw, 1.7rem); letter-spacing: -.04em; }
.payment-promo p:not(.eyebrow) { color: var(--muted); font-size: .76rem; margin-top: 5px; }
.payment-promo .eyebrow { margin-bottom: 7px; }
.sun { background: #f6bc71; border-radius: 50%; height: 110px; left: 52px; position: absolute; top: 61px; width: 110px; }
.mountain { bottom: 112px; position: absolute; width: 0; }
.mountain-back { border-bottom: 240px solid #7cae9f; border-left: 210px solid transparent; border-right: 210px solid transparent; left: -75px; }
.mountain-front { border-bottom: 190px solid #4f8b81; border-left: 190px solid transparent; border-right: 190px solid transparent; left: 140px; }
.water { background: #236c78; bottom: 0; clip-path: polygon(0 26%, 15% 18%, 31% 25%, 48% 11%, 70% 24%, 85% 15%, 100% 22%, 100% 100%, 0 100%); height: 200px; position: absolute; width: 100%; }
.visual-label { bottom: 22px; color: var(--white); font-size: .65rem; left: 23px; letter-spacing: .1em; position: absolute; text-transform: uppercase; z-index: 2; }
.pulse-dot { background: #f3b778; border: 3px solid rgba(255,255,255,.5); border-radius: 50%; display: inline-block; height: 10px; margin-right: 7px; width: 10px; }
.compass { color: rgba(255,255,255,.7); font: 600 .7rem Manrope, sans-serif; position: absolute; right: 24px; top: 24px; }
.floating-note { align-items: center; background: var(--white); border-radius: 5px; bottom: 46px; box-shadow: 0 13px 35px rgba(21,63,57,.12); display: flex; gap: 12px; padding: 14px 19px; position: absolute; right: -29px; }
.note-icon { align-items: center; background: #fae5cd; border-radius: 50%; color: var(--coral); display: flex; font-size: 1.4rem; height: 36px; justify-content: center; width: 36px; }
.floating-note strong, .floating-note small { display: block; font-size: .7rem; }
.floating-note small { color: var(--muted); font-size: .62rem; margin-top: 3px; }
.hero-shape { border: 1px solid rgba(14,119,119,.12); border-radius: 50%; height: 470px; position: absolute; right: -200px; top: -230px; width: 470px; }
.hero-shape-two { height: 300px; left: -190px; right: auto; top: 430px; width: 300px; }

.section-pad { padding: 112px 0; }
.section-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 48px; }
.section-heading h2, .management h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); letter-spacing: -.07em; }
.section-heading > p { color: var(--muted); font-size: .87rem; max-width: 340px; }
.water-grid { display: grid; gap: 20px; grid-template-columns: 1.1fr 1fr 1fr; }
.water-card { background: var(--white); border: 1px solid #e7ece7; border-radius: 5px; overflow: hidden; }
.card-illustration { height: 213px; overflow: hidden; position: relative; }
.river-illustration { background: #d7e8df; }
.lagoon-illustration { background: #eadfcf; }
.dam-illustration { background: #cde1dc; }
.card-tag { background: rgba(255,255,255,.8); color: var(--teal-dark); font-size: .6rem; font-weight: 700; left: 18px; letter-spacing: .13em; padding: 6px 9px; position: absolute; text-transform: uppercase; top: 17px; z-index: 3; }
.illustration-sun { background: #f5bd71; border-radius: 50%; height: 70px; left: 28%; position: absolute; top: 43px; width: 70px; }
.illustration-mountains, .illustration-peaks, .illustration-hills { bottom: 53px; border-bottom: 120px solid #77a89b; border-left: 150px solid transparent; border-right: 150px solid transparent; position: absolute; right: -50px; }
.illustration-river { background: #2f8290; bottom: 0; clip-path: polygon(0 35%, 40% 14%, 66% 34%, 100% 8%, 100% 100%, 0 100%); height: 85px; position: absolute; width: 100%; z-index: 2; }
.illustration-moon { background: #f4ba7f; border-radius: 50%; height: 62px; left: 30%; position: absolute; top: 38px; width: 62px; }
.illustration-peaks { border-bottom-color: #9c8d79; bottom: 45px; right: -100px; transform: scale(.8); }
.illustration-lagoon { background: #598f96; bottom: 0; height: 72px; position: absolute; width: 100%; }
.illustration-sky { background: #e7b477; height: 4px; left: 0; position: absolute; top: 80px; width: 100%; }
.illustration-hills { border-bottom-color: #76a296; bottom: 53px; }
.illustration-dam { background: #347b82; bottom: 0; height: 48px; position: absolute; width: 100%; }
.card-content { padding: 22px 23px 25px; }
.card-content h3 { font-size: 1.17rem; letter-spacing: -.03em; }
.card-content p { color: var(--muted); font-size: .76rem; line-height: 1.6; margin: 10px 0 20px; }
.card-content a, .text-link { color: var(--teal); font-size: .73rem; font-weight: 700; }
.button-secondary { background: #d8eef3; color: var(--teal-dark); }
.map-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.map-actions .button { font-size: .72rem; gap: 10px; padding: 12px 15px; }

.authorities { background: var(--white); }
.authority-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.authority-card { background: #f0f8fa; border-left: 3px solid var(--teal); padding: 25px 23px; }
.authority-index { color: var(--coral); display: block; font: 700 .72rem Manrope, sans-serif; margin-bottom: 22px; }
.authority-card h3 { font-size: 1.03rem; }
.authority-card p { color: var(--muted); font-size: .75rem; margin-top: 10px; }

.services { background: #dceff4; }
.services-grid { display: grid; gap: 90px; grid-template-columns: .85fr 1.15fr; }
.services-intro h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); letter-spacing: -.07em; }
.services-intro > p:not(.eyebrow) { color: var(--muted); font-size: .87rem; margin: 22px 0; max-width: 440px; }
.service-list { border-top: 1px solid #b9d5dc; }
.service-item { align-items: center; border-bottom: 1px solid #b9d5dc; display: flex; justify-content: space-between; padding: 20px 4px; }
.service-item strong, .service-item small { display: block; }
.service-item strong { color: var(--teal-dark); font-size: .9rem; }
.service-item small { color: var(--muted); font-size: .7rem; margin-top: 4px; }
.service-item b { color: var(--teal); font-size: 1.2rem; }

.management { background: var(--sand); }
.management-grid { display: grid; gap: 110px; grid-template-columns: 1fr 1fr; }
.management-copy > p:not(.eyebrow) { color: var(--muted); font-size: .9rem; margin: 24px 0; max-width: 420px; }
.principles { border-top: 1px solid #d6ddd6; }
.principle { border-bottom: 1px solid #d6ddd6; display: flex; gap: 26px; padding: 23px 0; }
.principle-number { color: var(--coral); font: 700 .72rem Manrope, sans-serif; }
.principle h3 { font-size: 1rem; margin-bottom: 6px; }
.principle p { color: var(--muted); font-size: .75rem; }

.report { background: var(--teal-dark); color: var(--white); }
.report-grid { display: grid; gap: 100px; grid-template-columns: .8fr 1.2fr; }
.eyebrow-light { color: #f3b183; }
.report-intro h2 { font-size: clamp(2.3rem, 4vw, 3.5rem); letter-spacing: -.07em; }
.report-intro > p:not(.eyebrow) { color: #b9d1cd; font-size: .9rem; margin: 23px 0 45px; max-width: 370px; }
.report-contact { align-items: start; border-top: 1px solid rgba(255,255,255,.2); display: flex; gap: 13px; padding-top: 20px; }
.report-contact > span { color: #f3b183; }
.report-contact p { color: #b9d1cd; font-size: .72rem; line-height: 1.7; }
.report-contact strong { color: var(--white); }
.report-form { background: var(--white); border-radius: 5px; color: var(--ink); padding: 34px; }
.form-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.report-form label { color: var(--ink); display: block; font-size: .7rem; font-weight: 700; margin-bottom: 19px; }
.report-form input:not([type="checkbox"]), .report-form select, .report-form textarea { background: #f7f8f5; border: 1px solid #e5e9e4; border-radius: 3px; color: var(--ink); display: block; font: 400 .78rem "DM Sans", sans-serif; margin-top: 8px; outline: 0; padding: 13px 14px; resize: vertical; width: 100%; }
.report-form input:focus, .report-form select:focus, .report-form textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(15,119,119,.1); }
.checkbox-label { align-items: center; color: var(--muted) !important; display: flex !important; font-size: .64rem !important; font-weight: 400 !important; gap: 9px; }
.checkbox-label input { accent-color: var(--teal); }
.button-light { background: var(--coral); color: var(--white); }
.button-light:hover { background: #dc644e; }
.form-status { color: var(--teal); font-size: .72rem; margin-top: 14px; min-height: 1.2em; }

.site-footer { background: #073f47; color: #a9c5c1; padding: 28px 0; }
.footer-content { align-items: center; display: flex; gap: 22px; justify-content: space-between; }
.footer-brand { color: var(--white); font-size: 1.1rem; }
.footer-brand .brand-mark { height: 27px; width: 27px; }
.footer-content p { font-size: .68rem; }
.contact-links { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; }
.contact-links a { color: #d3ebeb; font-size: .67rem; }
.contact-links a:hover { color: #f3b183; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 800px) {
  .nav-bar { height: 58px; }
  .menu-toggle { display: flex; flex-direction: column; gap: 4px; padding: 8px 0 8px 8px; }
  .menu-toggle span:not(.sr-only) { background: var(--ink); display: block; height: 2px; width: 22px; }
  .nav-links { background: var(--cream); border-bottom: 1px solid var(--line); display: none; left: 0; padding: 18px 28px 24px; position: absolute; right: 0; top: 58px; }
  .nav-links.is-open { display: grid; gap: 15px; }
  .hero { padding-top: 55px; }
  .hero-grid, .management-grid, .report-grid, .services-grid { gap: 60px; grid-template-columns: 1fr; }
  .hero-visual { margin-top: 10px; max-width: 420px; }
  .section-heading { align-items: start; flex-direction: column; gap: 20px; }
  .water-grid { grid-template-columns: 1fr; }
  .water-card-large { grid-row: auto; }
  .report-grid { gap: 40px; }
  .authority-grid { grid-template-columns: 1fr; }
  .payment-promo-content { align-items: stretch; flex-direction: column; gap: 18px; }
  .payment-promo .payment-button { width: 100%; }
}
@media (max-width: 500px) {
  .container { padding: 0 20px; }
  h1 { font-size: 3.2rem; }
  .hero-stats { gap: 17px; justify-content: space-between; }
  .hero-stats div { gap: 5px; }
  .hero-stats span { font-size: .5rem; }
  .floating-note { bottom: 25px; right: -10px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .report-form { padding: 24px 20px; }
  .footer-content { align-items: start; flex-direction: column; gap: 12px; }
  .institution-logo { max-width: 235px; }
  .facebook-link span:last-child { display: none; }
  .video-banner { height: 250px; }
}
.video-banner { background: #0c4761; height: clamp(220px, 42vw, 550px); overflow: hidden; width: 100%; }
#video-banner { display: block; height: 100%; object-fit: contain; width: 100%; }
/* Contenedor de la imagen para limitar su altura y recortar excesos */
.card-image {
  width: 100%;
  height: 200px; /* Ajusta esta altura a tu gusto (ej. 180px o 220px) */
  overflow: hidden;
}

/* Regla clave para que la foto NO se estire ni se deforme */
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Recorta la imagen manteniendo su proporción original */
  object-position: center; /* Centra la foto para que no se corten partes importantes */
}