:root {
  --green: #0c582a;
  --green-deep: #073d20;
  --green-soft: #eaf4ed;
  --yellow: #f4d51f;
  --ink: #17221b;
  --muted: #667168;
  --cream: #f7f7f2;
  --white: #fff;
  --radius: 22px;
  --shadow: 0 18px 48px rgba(4, 55, 26, .12);
  --green-texture-dots: radial-gradient(circle at 1px 1px, rgba(255,255,255,.13) 1px, transparent 1.2px);
  --green-texture-weave: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 1px, transparent 1px 13px);
  --green-texture-size: 24px 24px, 18px 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: #fff; line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.container { width: min(1600px, calc(100% - 80px)); margin-inline: auto; }
.eyebrow { margin: 0 0 10px; color: var(--green); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; }
.section { padding: 88px 0; }
.section-soft { background: var(--cream); }
.section-green {
  color: #fff;
  background-color: var(--green);
  background-image: var(--green-texture-dots), var(--green-texture-weave), linear-gradient(135deg, #0d5c2d, #084622);
  background-size: var(--green-texture-size), 100% 100%;
}
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.section-head h2, .page-intro h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1.05; letter-spacing: -.04em; }
.section-head p { max-width: 560px; margin: 0; color: var(--muted); }
.section-green .eyebrow { color: var(--yellow); }
.section-green .section-head p { color: rgba(255,255,255,.75); }

/* ===== Navbar global (partials/header.php) ===== */
:root { --hdr-top: 100px; --hdr-nav: 64px; --hdr-h: calc(var(--hdr-top) + var(--hdr-nav)); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--yellow); color: #182313; font-weight: 800; transition: top .2s; }
.skip-link:focus { top: 12px; }

.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; color: #fff; background: linear-gradient(180deg, rgba(5,45,24,.72), rgba(5,45,24,0)); transition: background .3s, box-shadow .3s; }
.site-header svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
.site-header ul { list-style: none; margin: 0; padding: 0; }

.hdr-top-in { height: var(--hdr-top); display: flex; align-items: center; gap: 32px; transition: height .3s; }
.brand { display: block; flex: none; }
.brand img { width: 163px; height: auto; }
.hdr-info { display: flex; align-items: center; gap: 28px; margin-left: auto !important; font-size: .94rem; }
.hdr-info a { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; transition: color .2s; }
.hdr-info svg { font-size: 1.25rem; }
.hdr-info a:hover, .hdr-social a:hover { color: var(--yellow); }
.hdr-social { display: flex; align-items: center; gap: 8px; }
.hdr-social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: 1.15rem; transition: color .2s, background .2s; }
.hdr-social a:hover { background: rgba(255,255,255,.1); }

.hdr-nav { border-top: 1px solid rgba(255,255,255,.22); }
.hdr-nav-in { height: var(--hdr-nav); display: flex; align-items: center; gap: 28px; }
.brand-compact { display: none; }
.brand-compact img { width: 120px; }
.nav ul { display: flex; align-items: center; }
.nav a { position: relative; display: block; white-space: nowrap; padding: 0 22px; line-height: var(--hdr-nav); font-weight: 700; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; transition: color .2s; }
.nav li:first-child a { padding-left: 0; }
.nav a::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 14px; height: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav li:first-child a::after { left: 0; }
.nav a:hover, .nav a.active { color: var(--yellow); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav .nav-online { margin-left: auto; }
.nav-online a { margin-left: 18px; padding: 0 22px; line-height: 40px; border-radius: 999px; background: var(--yellow); color: #182313; }
.nav-online a::after { display: none; }
.nav-online a:hover { color: #182313; background: #fff; }
.nav { flex: 1; }
.nav-contact { display: none; }
.menu-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: transparent; cursor: pointer; place-content: center; gap: 5px; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Al hacer scroll: barra compacta verde oscuro con sombra (el logo es para fondos oscuros) */
.site-header.is-stuck {
  background-color: var(--green-deep);
  background-image: var(--green-texture-dots), linear-gradient(110deg, #06391d, #0a4d27);
  background-size: 28px 28px, 100% 100%;
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}
.site-header.is-stuck .hdr-top { display: none; }
.site-header.is-stuck .nav a { padding-inline: 18px; }
.site-header.is-stuck .nav a::after { left: 18px; right: 18px; }
.site-header.is-stuck .nav li:first-child a { padding-left: 18px; }
.site-header.is-stuck .nav li:first-child a::after { left: 18px; }
.site-header.is-stuck .hdr-nav { border-top: 0; }
.site-header.is-stuck .brand-compact { display: block; }
.site-header.is-stuck .nav-online a:hover { background: #fff; }

.hero { min-height: 720px; padding-top: var(--hdr-h); color: #fff; position: relative; display: grid; align-items: center; overflow: hidden; background: var(--green-deep); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,61,32,.98) 0%, rgba(12,88,42,.82) 48%, rgba(12,88,42,.08) 78%), var(--hero) center/cover no-repeat; }
.hero .container { position: relative; z-index: 1; padding-block: 100px; }
.hero-kicker { display: inline-flex; padding: 8px 18px; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; text-transform: uppercase; font-size: .78rem; letter-spacing: .12em; }
.hero h1 { max-width: 780px; margin: 20px 0; font-size: clamp(3rem, 7vw, 6rem); letter-spacing: -.06em; line-height: .96; text-transform: uppercase; }
.hero p { max-width: 560px; font-size: 1.1rem; color: rgba(255,255,255,.84); }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 999px; background: var(--yellow); color: #182313; font-weight: 850; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; border: 0; cursor: pointer; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0,0,0,.14); }
.btn-light { background: #fff; }
.btn-outline { color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.65); }

.feature-strip { position: relative; margin-top: -54px; z-index: 3; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.feature { padding: 34px; border-right: 1px solid #e7ebe7; }
.feature:last-child { border: 0; }
.feature .icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: var(--green-soft); color: var(--green); }
.feature .icon svg { width: 32px; height: 32px; }
.feature h3 { margin: 18px 0 7px; font-size: 1.45rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid #e5eae6; border-radius: var(--radius); padding: 30px; box-shadow: 0 8px 24px rgba(4,55,26,.05); }
.card h3, .card h4 { margin: 8px 0 8px; font-size: 1.35rem; }
.card p { margin: 0; color: var(--muted); }
.card-number { color: var(--green); font-weight: 900; font-size: .8rem; letter-spacing: .12em; }
.card-link { display: inline-block; margin-top: 18px; color: var(--green); font-weight: 800; }
.card-media { padding: 0; overflow: hidden; }
.card-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card-media .card-body { padding: 26px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 65px; align-items: center; }
.split-media { position: relative; }
.split-media img { width: 100%; min-height: 480px; object-fit: cover; border-radius: var(--radius); }
.split h2 { margin: 0 0 22px; font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1.05; letter-spacing: -.045em; }
.split p { color: var(--muted); }
.check-list { padding: 0; list-style: none; display: grid; gap: 14px; margin: 28px 0; }
.check-list li::before { content: "✓"; margin-right: 12px; color: var(--green); font-weight: 900; }

.benefits { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; align-items: center; }
.stat-panel { background: var(--yellow); color: #17221b; border-radius: var(--radius); padding: 42px; }
.stat { padding: 22px 0; border-bottom: 1px solid rgba(0,0,0,.15); }
.stat:last-child { border: 0; }
.stat strong { display: block; font-size: 2.5rem; line-height: 1; }
.accordion { border-top: 1px solid rgba(255,255,255,.25); }
.accordion button { width: 100%; border: 0; border-bottom: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; text-align: left; font-weight: 750; padding: 21px 0; cursor: pointer; display: flex; justify-content: space-between; }
.accordion .answer { display: none; color: rgba(255,255,255,.76); padding: 0 0 22px; }
.accordion .open + .answer { display: block; }

.page-hero { padding: calc(var(--hdr-h) + 70px) 0 80px; color: #fff; background: linear-gradient(120deg, rgba(7,61,32,.96), rgba(12,88,42,.72)), var(--page-hero) center/cover no-repeat; }
.page-intro { max-width: 800px; }
.page-intro p { max-width: 640px; color: rgba(255,255,255,.8); font-size: 1.08rem; }
.breadcrumb { margin-bottom: 18px; color: var(--yellow); font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }

.timeline { border-left: 3px solid var(--yellow); padding-left: 32px; }
.timeline h3 { margin-top: 0; }
.quote-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.quote { background: var(--green-soft); border-radius: var(--radius); padding: 30px; }
.quote p { margin-top: 0; font-size: 1.06rem; }
.quote strong { color: var(--green); }
.document-list { display: grid; gap: 12px; }
.document { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; background: #fff; border: 1px solid #e4e9e5; border-radius: 14px; }
.document span { color: var(--muted); font-size: .9rem; }
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.course-grid img { width: 100%; border-radius: 18px; box-shadow: var(--shadow); }
.course-grid h3 { font-size: 1rem; line-height: 1.35; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 34px; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { border-radius: 18px; padding: 25px; background: var(--green-soft); }
.contact-card h3 { margin: 0 0 6px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 7px; font-weight: 700; font-size: .9rem; }
.form .full { grid-column: 1/-1; }
.form input, .form textarea { width: 100%; border: 1px solid #d9e1da; border-radius: 12px; padding: 13px 15px; background: #fff; }
.form textarea { min-height: 140px; resize: vertical; }
.form-note { color: var(--muted); font-size: .85rem; }

.cta { padding: 65px 0; background: var(--yellow); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.cta h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.05; letter-spacing: -.04em; max-width: 760px; }
.cta .btn { background: var(--green); color: #fff; white-space: nowrap; }
.site-footer {
  color: rgba(255,255,255,.78);
  padding: 60px 0 24px;
  background-color: #092d1b;
  background-image: var(--green-texture-dots), var(--green-texture-weave), radial-gradient(circle at 82% 16%, rgba(34,128,72,.2), transparent 34%), linear-gradient(145deg, #092d1b, #061f13);
  background-size: var(--green-texture-size), auto, 100% 100%;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid img { width: 210px; margin-bottom: 18px; }
.footer-grid h3 { color: #fff; font-size: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a:hover { color: var(--yellow); }
.copyright { margin-top: 45px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 20px; font-size: .84rem; }
.whatsapp { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; font-weight: 900; box-shadow: 0 12px 30px rgba(0,0,0,.22); }

/* Carrusel promocional principal */
.promo-carousel { position: relative; min-height: 800px; overflow: hidden; color: #fff; background: var(--green-deep); }
.promo-track { position: relative; min-height: 800px; }
.promo-slide { position: absolute; inset: 0; display: grid; align-items: center; padding-top: var(--hdr-h); opacity: 0; visibility: hidden; transform: scale(1.025); transition: opacity .65s ease, transform 1s ease, visibility .65s; pointer-events: none; background: var(--green-deep); }
.promo-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #073d20 0%, rgba(7,61,32,.98) 32%, rgba(12,88,42,.78) 57%, rgba(12,88,42,.16) 84%, rgba(7,61,32,.04) 100%), var(--promo-image) center/cover no-repeat; }
.promo-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .48;
  background-image: var(--green-texture-dots), var(--green-texture-weave);
  background-size: var(--green-texture-size);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.9) 42%, transparent 76%);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.9) 42%, transparent 76%);
}
.promo-slide.is-active { opacity: 1; visibility: visible; transform: scale(1); pointer-events: auto; }
.promo-inner { position: relative; z-index: 1; padding-block: 100px; }
.promo-copy { max-width: 940px; }
.promo-copy h1 { max-width: 940px; margin: 20px 0; font-size: clamp(3rem, 5.3vw, 5rem); line-height: .96; letter-spacing: -.055em; text-transform: uppercase; }
.promo-copy p { max-width: 560px; color: rgba(255,255,255,.84); font-size: 1.1rem; }
.promo-slide-3::before { background-position: center 36%; }
.carousel-arrow { position: absolute; z-index: 5; top: 50%; width: 54px; height: 54px; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; background: rgba(5,45,24,.4); color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; backdrop-filter: blur(8px); }
.carousel-arrow:hover { color: var(--green-deep); background: var(--yellow); border-color: var(--yellow); }
.carousel-prev { left: 18px; }
.carousel-next { right: 18px; }
.carousel-dots { position: absolute; z-index: 5; left: 50%; bottom: 28px; display: flex; gap: 9px; transform: translateX(-50%); }
.carousel-dots button { width: 11px; height: 11px; padding: 0; border: 1px solid #fff; border-radius: 50%; background: transparent; cursor: pointer; }
.carousel-dots button.is-active { width: 34px; border-radius: 999px; border-color: var(--yellow); background: var(--yellow); }

/* Actualidad, artículos y servicios */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.news-card, .service-card { overflow: hidden; background: #fff; border: 1px solid #e3e9e4; border-radius: var(--radius); box-shadow: 0 12px 34px rgba(4,55,26,.07); }
.news-image, .service-image { display: block; overflow: hidden; background: var(--green-soft); }
.news-image { aspect-ratio: 4/5; background: #f5f6f2; }
.news-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s; }
.news-card:hover .news-image img, .service-card:hover .service-image img { transform: scale(1.025); }
.news-body, .service-body { padding: 27px; }
.news-body > span { color: var(--green); font-weight: 800; font-size: .75rem; letter-spacing: .07em; text-transform: uppercase; }
.news-body h2, .news-body h3, .service-body h2 { margin: 10px 0; line-height: 1.18; letter-spacing: -.025em; }
.news-body h2 { font-size: 1.45rem; }
.news-body h3 { font-size: 1.28rem; }
.news-body p, .service-body p { color: var(--muted); }
.section-action { display: flex; justify-content: center; margin-top: 38px; }
.filter-links { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter-links a { padding: 10px 18px; border: 1px solid #dfe7e1; border-radius: 999px; font-weight: 800; color: var(--green); }
.filter-links a:hover, .filter-links a.active { background: var(--green); color: #fff; border-color: var(--green); }

.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.service-card { display: grid; grid-template-columns: 44% 56%; min-height: 300px; }
.service-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.service-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.service-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; color: var(--green); background: var(--green-soft); }
.service-icon svg { width: 31px; height: 31px; }

/* Contenido institucional de la portada */
.institutional-service-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.institutional-service { display: flex; flex-direction: column; min-height: 310px; padding: 28px; border: 1px solid #dfe7e1; border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(4,55,26,.06); }
.institutional-service h3 { margin: 20px 0 8px; font-size: 1.3rem; line-height: 1.2; }
.institutional-service p { margin: 0; color: var(--muted); font-size: .94rem; }
.institutional-service .card-link { margin-top: auto; padding-top: 22px; }

.institutional-marquee {
  overflow: hidden;
  padding: 18px 0;
  color: #fff;
  background-color: var(--green-deep);
  background-image: var(--green-texture-dots), var(--green-texture-weave), linear-gradient(90deg, #052f18, #0c582a, #052f18);
  background-size: var(--green-texture-size), 100% 100%;
  font-weight: 900;
  font-size: clamp(1.4rem, 3vw, 2.5rem);
  letter-spacing: .1em;
  white-space: nowrap;
}
.institutional-marquee div { width: max-content; animation: marquee-flow 24s linear infinite; }
.institutional-marquee span { color: var(--yellow); margin-inline: .55em; }
@keyframes marquee-flow { to { transform: translateX(-35%); } }

.finance-affiliation {
  color: #fff;
  background-color: var(--green-deep);
  background-image: var(--green-texture-dots), var(--green-texture-weave), radial-gradient(circle at 8% 22%, rgba(244,213,31,.08), transparent 25%), linear-gradient(120deg, #073d20, #0c582a);
  background-size: var(--green-texture-size), auto, 100% 100%;
}
.finance-affiliation-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 60px; align-items: center; }
.finance-callout h2 { margin: 0 0 18px; max-width: 620px; font-size: clamp(2.4rem, 4vw, 4.6rem); line-height: 1; letter-spacing: -.05em; }
.finance-callout p:not(.eyebrow) { max-width: 580px; color: rgba(255,255,255,.76); }
.finance-number { display: block; color: var(--yellow); font-size: clamp(5rem, 11vw, 10rem); font-weight: 950; line-height: .8; letter-spacing: -.08em; }
.finance-number small { margin-left: 8px; font-size: .38em; }
.affiliation-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 38px; border-radius: var(--radius); color: var(--ink); background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.22); }
.affiliation-form > div:first-child, .affiliation-form .full { grid-column: 1/-1; }
.affiliation-form h2 { margin: 0 0 10px; font-size: 2.2rem; line-height: 1; }
.affiliation-form label { display: grid; gap: 7px; font-size: .86rem; font-weight: 750; }
.affiliation-form input { width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid #d7e1da; border-radius: 11px; background: #fff; }
.affiliation-form fieldset { display: flex; flex-wrap: wrap; gap: 15px; padding: 15px; border: 1px solid #d7e1da; border-radius: 11px; }
.affiliation-form fieldset label, .affiliation-form .consent { display: flex; align-items: flex-start; gap: 8px; }
.affiliation-form fieldset input, .affiliation-form .consent input { width: auto; min-height: auto; margin-top: 4px; }

.cosede-section { background: #fff; }
.cosede-banner { display: block; overflow: hidden; margin-bottom: 70px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.cosede-banner img { width: 100%; height: auto; }
.regulatory-heading { margin-bottom: 30px; }
.regulatory-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.regulatory-grid a { display: flex; flex-direction: column; align-items: center; min-height: 245px; padding: 24px; border: 1px solid #dfe7e1; border-radius: 18px; background: #fff; text-align: center; transition: transform .25s, box-shadow .25s; }
.regulatory-grid a:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.regulatory-grid img { width: 100%; height: 125px; object-fit: contain; margin-bottom: 12px; }
.regulatory-grid strong { color: var(--green-deep); }
.regulatory-grid span { margin-top: 4px; color: var(--muted); font-size: .84rem; }
.regulatory-grid-dark a { color: var(--ink); }
.regulatory-notice { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-top: 28px; padding: 28px 32px; border-radius: 18px; background: var(--green-soft); }
.regulatory-notice p { max-width: 850px; margin: 0; }
.regulatory-notice .actions { flex: none; margin-top: 0; }
.btn-secondary { color: #fff; background: var(--green); }

.footer-newsletter { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 52px; padding-bottom: 42px; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer-newsletter .eyebrow { color: var(--yellow); }
.footer-newsletter h2 { max-width: 760px; margin: 0; color: #fff; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.08; }
.footer-official-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 35px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: .88rem; }
.footer-official-links span { color: #fff; font-weight: 800; }
.footer-official-links a:hover { color: var(--yellow); }
.financial-statement img { min-height: 0; max-height: 720px; object-fit: contain; background: #fff; box-shadow: var(--shadow); }
.transparency-warning { margin: 26px 0; padding: 20px; border-left: 4px solid var(--yellow); background: #fff; }

.article-hero {
  padding: calc(var(--hdr-h) + 70px) 0 70px;
  color: #fff;
  background-color: var(--green-deep);
  background-image: var(--green-texture-dots), var(--green-texture-weave), radial-gradient(circle at 14% 30%, rgba(34,128,72,.34), transparent 32%), linear-gradient(135deg, #073d20, #0a4a27);
  background-size: var(--green-texture-size), auto, 100% 100%;
}
.article-hero-inner { display: grid; grid-template-columns: 1fr minmax(330px, 520px); gap: 70px; align-items: center; }
.article-hero h1 { margin: 12px 0 18px; max-width: 820px; font-size: clamp(2.5rem, 5vw, 5rem); line-height: 1; letter-spacing: -.055em; }
.article-hero p { max-width: 700px; color: rgba(255,255,255,.8); font-size: 1.08rem; }
.article-hero time { color: var(--yellow); font-weight: 800; }
.article-hero img { width: 100%; max-height: 590px; object-fit: contain; border-radius: var(--radius); background: #fff; box-shadow: 0 24px 60px rgba(0,0,0,.26); }
.service-hero img { max-height: 430px; object-fit: cover; }
.content-narrow { width: min(900px, calc(100% - 40px)); }
.article-body { font-size: 1.06rem; }
.article-body .lead { color: var(--green-deep); font-size: 1.32rem; font-weight: 650; }
.article-body h2 { margin: 44px 0 15px; font-size: clamp(1.55rem, 3vw, 2.3rem); letter-spacing: -.03em; }
.article-body li { margin-bottom: 9px; }
.article-cta { margin-top: 40px; padding: 28px; border-radius: 18px; background: var(--green-soft); }
.article-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 42px; padding-top: 24px; border-top: 1px solid #e0e7e1; }
.article-tags a { padding: 6px 12px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-weight: 750; font-size: .85rem; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 30px 0; }
.info-grid section { padding: 24px; border: 1px solid #dfe7e1; border-radius: 18px; background: #fff; }
.info-grid section h2 { margin-top: 0; font-size: 1.35rem; }
.table-wrap { overflow-x: auto; margin: 28px 0; border: 1px solid #dfe7e1; border-radius: 16px; }
.table-wrap table { width: 100%; border-collapse: collapse; min-width: 610px; }
.table-wrap th { background: var(--green); color: #fff; text-align: left; }
.table-wrap th, .table-wrap td { padding: 14px 18px; border-bottom: 1px solid #e2e8e3; }
.table-wrap tr:last-child td { border-bottom: 0; }
.empty-state { padding-top: calc(var(--hdr-h) + 100px); min-height: 70vh; }
.course-card { padding-bottom: 18px; }
.course-card h3, .course-card .card-link { margin-inline: 6px; }

@media (max-width: 980px) {
  :root { --hdr-top: 76px; --hdr-nav: 0px; }
  .container { width: calc(100% - 40px); }
  .site-header, .site-header.is-stuck {
    background-color: var(--green-deep);
    background-image: var(--green-texture-dots), linear-gradient(110deg, #06391d, #0a4d27);
    background-size: 28px 28px, 100% 100%;
  }
  .hdr-top-in { gap: 16px; }
  .brand img { width: 140px; }
  .hdr-info, .hdr-social { display: none; }
  .menu-toggle { display: grid; }
  .hdr-nav { position: absolute; inset: 100% 0 auto 0; display: none; max-height: calc(100vh - var(--hdr-top)); overflow-y: auto; background: var(--green-deep); border-top: 1px solid rgba(255,255,255,.14); box-shadow: 0 18px 30px rgba(0,0,0,.28); }
  .hdr-nav.open { display: block; }
  .site-header.is-stuck .hdr-top { display: block; }
  .site-header.is-stuck .brand-compact { display: none; }
  .hdr-nav-in { height: auto; flex-direction: column; align-items: stretch; gap: 0; padding-block: 8px 24px; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .site-header.is-stuck .nav a, .site-header.is-stuck .nav li:first-child a, .nav a, .nav li:first-child a { padding: 0; line-height: 54px; font-size: .88rem; border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav a::after { display: none; }
  .nav .nav-online { margin: 18px 0 0; }
  .nav-online a { margin: 0; text-align: center; border-bottom: 0; }
  .nav-contact { display: grid; gap: 6px; margin-top: 22px; font-size: .9rem; color: rgba(255,255,255,.75); }
  .feature-grid, .card-grid { grid-template-columns: 1fr; }
  .feature { border-right: 0; border-bottom: 1px solid #e7ebe7; }
  .split, .benefits, .contact-grid { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: repeat(2,1fr); }
  .news-grid, .service-grid { grid-template-columns: 1fr; }
  .institutional-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finance-affiliation-grid { grid-template-columns: 1fr; }
  .regulatory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .regulatory-notice { align-items: flex-start; flex-direction: column; }
  .promo-carousel, .promo-track { min-height: 800px; }
  .promo-inner { padding-inline: 35px; }
  .promo-copy h1 { font-size: clamp(2.8rem, 6.5vw, 4.8rem); }
  .article-hero-inner { grid-template-columns: 1fr; }
  .article-hero img { max-width: 600px; }
  .info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 650px) {
  .hero { min-height: 610px; }
  .hero::before { background: linear-gradient(90deg, rgba(7,61,32,.96), rgba(12,88,42,.75)), var(--hero) 64% center/cover no-repeat; }
  .hero h1 { font-size: 2.9rem; }
  .section { padding: 65px 0; }
  .section-head, .cta-inner, .copyright, .footer-newsletter { align-items: start; flex-direction: column; }
  .course-grid, .quote-grid, .form, .footer-grid { grid-template-columns: 1fr; }
  .form .full { grid-column: auto; }
  .split-media img { min-height: 340px; }
  .service-card { grid-template-columns: 1fr; }
  .institutional-service-grid, .regulatory-grid, .affiliation-form { grid-template-columns: 1fr; }
  .affiliation-form > div:first-child, .affiliation-form .full { grid-column: auto; }
  .institutional-service { min-height: auto; }
  .regulatory-grid a { min-height: 210px; }
  .service-image img { aspect-ratio: 16/10; }
  .article-hero { padding-top: calc(var(--hdr-h) + 45px); }
  .promo-carousel, .promo-track { min-height: 760px; }
  .promo-inner { padding: calc(var(--hdr-h) + 45px) 28px 90px; }
  .promo-copy h1 { font-size: 2.65rem; }
  .promo-slide::before { background: linear-gradient(90deg, rgba(7,61,32,.98) 0%, rgba(12,88,42,.88) 58%, rgba(12,88,42,.38) 100%), var(--promo-image) 68% center/cover no-repeat; }
  .carousel-arrow { top: auto; bottom: 24px; width: 44px; height: 44px; }
  .carousel-prev { left: 20px; }
  .carousel-next { right: 20px; }
  .carousel-dots { bottom: 39px; }
}

/* ===== Usabilidad: cards clickeables e íconos destacados ===== */
.feature, .institutional-service, .news-card, .service-card, .card { position: relative; transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease, background .28s ease; }
/* enlace extendido: toda la card es clickeable */
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-link { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 9px 16px; margin-top: 18px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-weight: 800; font-size: .86rem; transition: background .25s, color .25s, gap .25s; }
.institutional-service .card-link, .feature .card-link { margin-top: auto; }
.feature { display: flex; flex-direction: column; align-items: flex-start; }
.feature .card-link { margin-top: 20px; }
.news-image, .service-image { position: relative; z-index: 2; }
.news-body .card-link, .service-body .card-link { position: static; }

.institutional-service::before, .news-card::before, .service-card::before, .feature::before { content: ""; position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 4px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; pointer-events: none; }
.institutional-service:hover, .news-card:hover, .service-card:hover { transform: translateY(-6px); border-color: rgba(12,88,42,.35); box-shadow: 0 24px 52px rgba(4,55,26,.17); }
.feature:hover { background: var(--green-soft); }
.institutional-service:hover::before, .news-card:hover::before, .service-card:hover::before, .feature:hover::before { transform: scaleX(1); }
.feature:hover .card-link, .institutional-service:hover .card-link, .news-card:hover .card-link, .service-card:hover .card-link, .card:hover .card-link { background: var(--green); color: #fff; gap: 12px; }
.feature:focus-within, .institutional-service:focus-within, .news-card:focus-within, .service-card:focus-within { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* íconos: mosaico verde sólido con trazo amarillo */
.feature .icon, .service-icon { position: relative; width: 68px; height: 68px; border-radius: 20px; background: linear-gradient(145deg, var(--green) 0%, var(--green-deep) 100%); color: var(--yellow); box-shadow: 0 12px 26px rgba(7,61,32,.28), inset 0 0 0 1px rgba(255,255,255,.12); transition: transform .3s ease, background .3s, color .3s; }
.feature .icon svg, .service-icon svg { width: 40px; height: 40px; }
.feature .icon svg *, .service-icon svg * { stroke-width: 2.8; }
.feature:hover .icon, .institutional-service:hover .service-icon, .service-card:hover .service-icon { transform: translateY(-3px) rotate(-5deg) scale(1.06); background: var(--yellow); color: var(--green-deep); }
.feature h3, .institutional-service h3 { color: var(--green-deep); }

.card-link { white-space: nowrap; align-self: flex-start; }
.institutional-service .card-link, .feature .card-link { padding: 9px 16px; font-size: .82rem; }
.institutional-service .card-link { margin-top: auto; }
.institutional-service p { margin-bottom: 20px; }

/* ===== Fichas de servicio: 2 columnas (contenido + barra lateral) ===== */
.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.service-main > :first-child { margin-top: 0; }
.service-main h2.first, .callout-online h2.first { margin-top: 0; }
.service-main h3 { margin: 0 0 8px; color: var(--green-deep); font-size: 1.25rem; letter-spacing: -.01em; }
.side-stack { position: sticky; top: 100px; display: grid; gap: 22px; }
.side-banner { position: relative; overflow: hidden; padding: 34px 28px; border-radius: var(--radius); color: #fff; background: radial-gradient(circle at 85% 0%, rgba(244,213,31,.22), transparent 55%), linear-gradient(160deg, var(--green) 0%, var(--green-deep) 100%); box-shadow: var(--shadow); }
.side-banner img { width: 190px; height: auto; margin-bottom: 22px; }
.side-banner h2 { margin: 0; font-size: 1.45rem; line-height: 1.15; letter-spacing: -.02em; }
.side-banner p { margin: 6px 0 24px; color: var(--yellow); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: .82rem; }
.side-banner .btn svg { width: 18px; height: 18px; margin-right: 10px; fill: currentColor; }
.side-docs { padding: 26px; border: 1px solid #dfe7e1; border-radius: var(--radius); background: #fff; box-shadow: 0 12px 34px rgba(4,55,26,.07); }
.side-docs h2 { margin: 0 0 18px; font-size: 1.3rem; letter-spacing: -.02em; }
.side-docs ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.side-docs a { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border: 1px solid #e3eae5; border-radius: 14px; transition: background .25s, border-color .25s, transform .25s; }
.side-docs a:hover { background: var(--green-soft); border-color: rgba(12,88,42,.35); transform: translateX(4px); }
.doc-ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--green); color: var(--yellow); }
.doc-ico svg { width: 24px; height: 24px; }
.side-docs strong { flex: 1; color: var(--green-deep); font-size: .95rem; line-height: 1.25; }
.side-docs small { margin-left: 4px; padding: 2px 6px; border-radius: 6px; background: var(--yellow); color: #182313; font-size: .66rem; font-weight: 900; letter-spacing: .06em; vertical-align: middle; }
.doc-arrow { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 900; transition: background .25s, color .25s; }
.side-docs a:hover .doc-arrow { background: var(--green); color: #fff; }

/* acordeones nativos */
.acc-list { display: grid; gap: 12px; margin: 28px 0; }
.acc { border: 1px solid #dfe7e1; border-radius: 16px; background: #fff; overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.acc[open] { border-color: rgba(12,88,42,.4); box-shadow: 0 10px 28px rgba(4,55,26,.08); }
.acc summary { display: flex; align-items: center; gap: 12px; padding: 18px 22px; font-weight: 800; color: var(--green-deep); cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary b { color: var(--green); }
.acc summary::after { content: "+"; margin-left: auto; display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 1.3rem; line-height: 1; transition: transform .25s, background .25s, color .25s; }
.acc[open] summary::after { content: "−"; background: var(--green); color: #fff; }
.acc summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }
.acc > p, .acc > ul, .acc > .table-wrap { margin: 0; padding: 0 22px 20px; }
.acc > ul { padding-left: 42px; }
.acc > .table-wrap { margin: 0 22px 22px; padding: 0; }
.amount { color: var(--green); font-size: 1.35rem; }
.table-wrap caption { padding: 12px 18px; text-align: left; font-weight: 800; color: var(--green-deep); background: var(--green-soft); }
.acc .table-wrap table { min-width: 520px; }

/* bloques de contenido */
.credit-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 34px 0; }
.credit-types article { overflow: hidden; border: 1px solid #dfe7e1; border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(4,55,26,.06); }
.credit-types img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.credit-types article > div { padding: 22px; }
.credit-types .rate { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: var(--yellow); color: #182313; font-weight: 800; font-size: .88rem; line-height: 1.3; }
.credit-types ul { margin: 6px 0 0; padding-left: 20px; font-size: .94rem; }
.req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 22px 0; }
.req-grid section { padding: 26px; border-radius: 18px; background: var(--green-soft); }
.req-grid ul { margin: 12px 0 0; padding-left: 20px; }
.service-main .check-list { margin: 20px 0; }
.service-main .check-list li { position: relative; padding-left: 36px; }
.service-main .check-list li::before { position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 24px; height: 24px; margin: 0; border-radius: 50%; background: var(--green); color: var(--yellow); font-size: .8rem; }
.split-bars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 22px 0; }
.split-bars div { position: relative; padding: 24px 24px 30px; border-radius: 18px; background: var(--green-soft); }
.split-bars strong { display: block; color: var(--green); font-size: 3.4rem; line-height: 1; letter-spacing: -.04em; }
.split-bars small { font-size: 1.5rem; }
.split-bars span { display: block; margin-top: 6px; font-weight: 800; color: var(--green-deep); }
.split-bars i { position: absolute; left: 24px; right: 24px; bottom: 14px; height: 6px; border-radius: 6px; background: rgba(12,88,42,.15); }
.split-bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 6px; background: var(--yellow); }
.rate-range { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 14px; margin: 22px 0; }
.rate-range div { display: flex; flex-direction: column; justify-content: center; padding: 22px 24px; border-radius: 18px; background: var(--green-soft); }
.rate-range div:first-child { background: var(--green); color: #fff; font-size: 1.3rem; font-weight: 800; }
.rate-range strong { color: var(--green); font-size: 3rem; line-height: 1; letter-spacing: -.04em; }
.rate-range small { font-size: 1.4rem; }
.rate-range span { font-weight: 800; color: var(--green-deep); }
.rate-range div:first-child span { color: #fff; }
.gallery-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 28px 0; }
.gallery-4 figure { margin: 0; overflow: hidden; border-radius: 16px; background: #fff; border: 1px solid #dfe7e1; }
.gallery-4 img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery-4 figcaption { padding: 12px 14px; font-size: .86rem; font-weight: 700; line-height: 1.3; color: var(--green-deep); }
.price-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.price-pair div { padding: 26px; border-radius: 18px; background: var(--green-soft); }
.price-pair span { display: block; font-weight: 700; color: var(--muted); }
.price-pair strong { display: block; margin-top: 4px; color: var(--green-deep); font-size: 2rem; letter-spacing: -.03em; }
.price-pair .affiliate { background: var(--green); }
.price-pair .affiliate span { color: rgba(255,255,255,.8); }
.price-pair .affiliate strong { color: var(--yellow); font-size: 2.6rem; }
.highlight { padding: 18px 22px; border-left: 5px solid var(--yellow); border-radius: 0 14px 14px 0; background: var(--cream); }
.callout-online { margin: 40px 0; padding: 34px; border-radius: 22px; background: linear-gradient(145deg, var(--green-deep), var(--green)); color: #fff; }
.callout-online .eyebrow { color: var(--yellow); }
.callout-online h2 { color: #fff; }
.callout-online ol { padding-left: 22px; }
.callout-online li { margin-bottom: 8px; }
.info-grid.two { grid-template-columns: repeat(2, 1fr); }
.info-grid section { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.info-grid .btn { margin-top: auto; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .72rem; }
.btn-outline-dark { color: var(--green-deep); background: transparent; border: 2px solid var(--green); }
.btn-outline-dark:hover { background: var(--green); color: #fff; }
.btn-outline-dark svg { width: 18px; height: 18px; margin-right: 8px; }
.service-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.service-actions p { flex-basis: 100%; margin: 0; font-weight: 800; color: var(--green-deep); }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 28px; border-top: 1px solid #dfe7e1; }
.post-nav a { display: grid; gap: 4px; max-width: 48%; padding: 16px 20px; border: 1px solid #dfe7e1; border-radius: 14px; transition: border-color .25s, background .25s; }
.post-nav a:hover { border-color: var(--green); background: var(--green-soft); }
.post-nav .next { margin-left: auto; text-align: right; }
.post-nav span { color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.post-nav strong { color: var(--green-deep); }

@media (max-width: 1100px) {
  .service-layout { grid-template-columns: 1fr; gap: 36px; }
  .side-stack { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
  .gallery-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .side-stack, .credit-types, .req-grid, .split-bars, .rate-range, .price-pair, .info-grid.two { grid-template-columns: 1fr; }
  .post-nav { flex-direction: column; }
  .post-nav a { max-width: none; }
  .callout-online { padding: 24px; }
}

/* barra lateral de publicaciones */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.post-cover { width: 100%; max-height: 640px; margin-bottom: 28px; border-radius: var(--radius); background: #f5f6f2; object-fit: contain; box-shadow: 0 14px 40px rgba(4,55,26,.12); }
.side-widget { padding: 24px; border: 1px solid #dfe7e1; border-radius: var(--radius); background: #fff; box-shadow: 0 12px 34px rgba(4,55,26,.07); }
.side-widget h2 { margin: 0 0 16px; padding-bottom: 12px; border-bottom: 3px solid var(--yellow); width: fit-content; font-size: 1.2rem; letter-spacing: -.02em; }
.side-search > div { display: flex; border: 1px solid #d9e1da; border-radius: 999px; overflow: hidden; background: #fff; }
.side-search input { flex: 1; min-width: 0; border: 0; padding: 12px 18px; outline: 0; }
.side-search button { display: grid; place-items: center; width: 50px; border: 0; background: var(--green); color: #fff; cursor: pointer; transition: background .25s, color .25s; }
.side-search button:hover { background: var(--yellow); color: #182313; }
.side-search button svg { width: 20px; height: 20px; }
.side-search > div:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(244,213,31,.5); }
.side-cats, .side-recent { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.side-cats a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 12px; background: var(--cream); font-weight: 700; transition: background .25s, color .25s, transform .25s; }
.side-cats b { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--green); color: #fff; font-size: .78rem; }
.side-cats a:hover { background: var(--green-soft); color: var(--green); transform: translateX(4px); }
.side-recent a { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 14px; padding: 8px; border-radius: 14px; transition: background .25s; }
.side-recent a:hover { background: var(--green-soft); }
.side-recent img { width: 74px; height: 74px; border-radius: 12px; object-fit: cover; background: #f5f6f2; }
.side-recent strong { display: block; color: var(--green-deep); font-size: .94rem; line-height: 1.25; }
.side-recent time { display: block; margin-top: 4px; color: var(--muted); font-size: .8rem; font-weight: 700; }

/* Quiénes somos */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0 30px; }
.pillar { position: relative; padding: 22px; border: 1px solid #dfe7e1; border-radius: 18px; background: #fff; transition: transform .28s, box-shadow .28s, border-color .28s; }
.pillar:hover { transform: translateY(-4px); border-color: rgba(12,88,42,.35); box-shadow: 0 18px 40px rgba(4,55,26,.12); }
.pillar-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(145deg, var(--green), var(--green-deep)); color: var(--yellow); font-weight: 900; }
.pillar h3 { margin: 14px 0 6px; font-size: 1.15rem; color: var(--green-deep); }
.pillar p { margin: 0; font-size: .92rem; color: var(--muted); }
.quotes { margin-top: 34px; }
.quotes .quote { margin: 0; }
.community-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.community-grid figure { margin: 0; overflow: hidden; border-radius: 18px; border: 1px solid #dfe7e1; background: #fff; box-shadow: 0 10px 28px rgba(4,55,26,.06); }
.community-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .4s; }
.community-grid figure:hover img { transform: scale(1.04); }
.community-grid figcaption { padding: 16px 18px; color: var(--muted); font-size: .9rem; }
.community-grid strong { display: block; color: var(--green-deep); font-size: 1.05rem; }
@media (max-width: 760px) { .pillars, .community-grid { grid-template-columns: 1fr; } }

.stat-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.stat-trio div { position: relative; padding: 30px 28px 38px; border-radius: 20px; background: var(--green-soft); }
.stat-trio strong { display: block; color: var(--green); font-size: 4rem; line-height: 1; letter-spacing: -.05em; }
.stat-trio small { font-size: 1.8rem; }
.stat-trio span { display: block; margin-top: 8px; color: var(--green-deep); font-weight: 800; }
.stat-trio i { position: absolute; left: 28px; right: 28px; bottom: 18px; height: 6px; border-radius: 6px; background: rgba(12,88,42,.15); }
.stat-trio i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 6px; background: var(--yellow); }
@media (max-width: 760px) { .stat-trio { grid-template-columns: 1fr; } }

/* textos largos del original dentro de cards: máximo 4 líneas */
.feature p, .institutional-service p, .service-card .service-body p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== Hero: los 3 slides comparten el mismo layout ===== */
.promo-copy { max-width: 780px; }
.promo-copy h1 { max-width: 780px; font-size: clamp(2.7rem, 4.8vw, 4.6rem); }
.promo-copy p { max-width: 540px; min-height: 3.4em; }
/* Coral: la imagen ya trae el verde degradado; solo se iguala al verde de marca */
.promo-slide-1::before { background: linear-gradient(90deg, #073d20 0%, rgba(7,61,32,.96) 38%, rgba(7,61,32,.55) 52%, rgba(7,61,32,0) 64%), var(--promo-image) 62% center/cover no-repeat; }
@media (max-width: 650px) { .promo-slide-1::before { background: linear-gradient(90deg, rgba(7,61,32,.97) 0%, rgba(7,61,32,.82) 55%, rgba(7,61,32,.25) 100%), var(--promo-image) 78% center/cover no-repeat; } }

/* controles del carrusel agrupados abajo, sin tapar el texto */
@media (min-width: 651px) {
  .carousel-arrow { top: auto; bottom: 74px; width: 44px; height: 44px; font-size: 1.8rem; }
  .carousel-prev { left: calc(50% - 112px); }
  .carousel-next { right: calc(50% - 112px); }
  .carousel-dots { bottom: 86px; }
}

/* ===== Servicios para socios: image cards expandibles ===== */
.institutional-service-grid { align-items: stretch; }
.service-tile { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 470px; overflow: hidden; border-radius: 22px; color: #fff; background: var(--green-deep) var(--tile-img) center/cover no-repeat; box-shadow: 0 16px 40px rgba(4,55,26,.18); transition: transform .35s ease, box-shadow .35s ease; }
.service-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(7,61,32,.96) 0%, rgba(7,61,32,.78) 16%, rgba(7,61,32,.32) 32%, rgba(7,61,32,0) 46%); transition: background .4s ease; }
.service-tile:hover, .service-tile.is-open, .service-tile:focus-within { transform: translateY(-6px); box-shadow: 0 28px 60px rgba(4,55,26,.3); }
.service-tile:hover::before, .service-tile.is-open::before, .service-tile:focus-within::before { background: linear-gradient(to top, rgba(7,61,32,.98) 0%, rgba(7,61,32,.94) 38%, rgba(7,61,32,.68) 62%, rgba(7,61,32,.2) 85%, rgba(7,61,32,0) 100%); }
.tile-body { width: 100%; padding: 26px 24px 24px; padding-right: 74px; }
.tile-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 16px; border-radius: 16px; background: var(--yellow); color: var(--green-deep); box-shadow: 0 10px 22px rgba(0,0,0,.25); transition: transform .3s; }
.tile-icon svg { width: 32px; height: 32px; }
.tile-icon svg * { stroke-width: 2.8; }
.service-tile:hover .tile-icon, .service-tile.is-open .tile-icon { transform: rotate(-6deg) scale(1.06); }
.service-tile h3 { margin: 0; font-size: 1.4rem; line-height: 1.15; letter-spacing: -.02em; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.tile-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s ease; }
.tile-more > div { overflow: hidden; min-height: 0; }
.service-tile:hover .tile-more, .service-tile.is-open .tile-more, .service-tile:focus-within .tile-more { grid-template-rows: 1fr; }
.tile-more p { margin: 12px 0 14px; font-size: .94rem; line-height: 1.5; color: rgba(255,255,255,.9); }
.tile-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 2px; color: var(--yellow); font-weight: 800; font-size: .88rem; }
.tile-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tile-link:hover { text-decoration: underline; }
.tile-toggle { position: absolute; right: 18px; bottom: 22px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(7,61,32,.55); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; backdrop-filter: blur(6px); transition: background .25s, color .25s, transform .3s; }
.tile-toggle:hover, .service-tile.is-open .tile-toggle { background: var(--yellow); color: var(--green-deep); border-color: var(--yellow); }
.service-tile.is-open .tile-toggle span { display: inline-block; transform: rotate(45deg); }
.service-tile:focus-within { outline: 3px solid var(--yellow); outline-offset: 3px; }
@media (hover: none) { .tile-more { grid-template-rows: 0fr; } .service-tile.is-open .tile-more { grid-template-rows: 1fr; } .service-tile:hover { transform: none; } }
@media (max-width: 1200px) { .institutional-service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .institutional-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .service-tile { min-height: 380px; } .tile-body { padding: 18px 16px 16px; padding-right: 58px; } .service-tile h3 { font-size: 1.1rem; } .tile-toggle { right: 12px; bottom: 16px; } }
@media (max-width: 480px) { .institutional-service-grid { grid-template-columns: 1fr; } }

/* ===== Navbar de una sola fila (reconstruido) ===== */
.site-header { --hdr-row: 96px; }
.site-header.is-stuck { --hdr-row: 80px; }
.hdr-top-in { height: var(--hdr-row); gap: 24px; transition: height .3s; }
.site-header.is-stuck .hdr-top { display: block; }
.site-header.is-stuck .brand img { width: 150px; }
.site-header.is-stuck { background: rgba(7,61,32,.97); backdrop-filter: blur(10px); }
.hdr-nav { border-top: 0; }
.hdr-nav-in { display: flex; align-items: center; width: 100%; height: auto; gap: 0; }

@media (min-width: 1241px) {
  :root { --hdr-top: 96px; --hdr-nav: 0px; }
  .hdr-nav { flex: 1; display: block; position: static; }
  .nav { flex: 1; }
  .nav > ul { display: flex; align-items: center; justify-content: flex-start; }
  .nav a { padding: 0 13px; line-height: var(--hdr-row); font-size: .76rem; letter-spacing: .05em; }
  .nav > ul > li:first-child > a, .site-header.is-stuck .nav > ul > li:first-child > a { padding-left: 13px; }
  .site-header.is-stuck .nav a { padding-inline: 13px; }
  .nav > ul > li > a::after, .site-header.is-stuck .nav > ul > li > a::after, .nav > ul > li:first-child > a::after { left: 13px; right: 13px; bottom: calc(var(--hdr-row) / 2 - 22px); }
  .nav .nav-online { margin-left: auto; }
  .nav-online a { margin-left: 14px; padding: 0 20px; line-height: 42px; }
  .menu-toggle { display: none; }
  .nav-contact { display: none; }

  .has-sub { position: relative; }
  .has-sub > a { padding-right: 30px; }
  .site-header.is-stuck .has-sub > a { padding-right: 30px; }
  .has-sub > a::before { content: ""; position: absolute; right: 13px; top: 50%; width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
  .has-sub:hover > a::before, .has-sub:focus-within > a::before { transform: translateY(-30%) rotate(225deg); }
  .sub { position: absolute; left: 0; top: 100%; z-index: 70; min-width: 290px; margin: 0; padding: 10px; list-style: none; border-radius: 18px; background: #fff; box-shadow: 0 28px 70px rgba(0,0,0,.3); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .22s, transform .22s, visibility .22s; }
  .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
  .has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
  .sub a, .site-header.is-stuck .sub a { display: block; padding: 12px 16px; border-radius: 12px; line-height: 1.25; color: var(--ink); font-size: .9rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
  .sub a::after { display: none; }
  .sub a:hover { background: var(--green-soft); color: var(--green); }
}

@media (max-width: 1240px) {
  :root { --hdr-top: 76px; --hdr-nav: 0px; }
  .site-header, .site-header.is-stuck { --hdr-row: 76px; background: var(--green-deep); }
  .site-header.is-stuck .brand img, .brand img { width: 140px; }
  .hdr-top-in { gap: 16px; }
  .hdr-info, .hdr-social { display: none; }
  .menu-toggle { display: grid; }
  .hdr-nav { position: absolute; inset: 100% 0 auto 0; display: none; max-height: calc(100vh - var(--hdr-top)); overflow-y: auto; background: var(--green-deep); border-top: 1px solid rgba(255,255,255,.14); box-shadow: 0 18px 30px rgba(0,0,0,.28); }
  .hdr-nav.open { display: block; }
  .site-header.is-stuck .brand-compact { display: none; }
  .hdr-nav-in { height: auto; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 24px; }
  .nav ul { display: block; }
  .nav a, .site-header.is-stuck .nav a, .nav li:first-child a { padding: 0; line-height: 54px; font-size: .88rem; border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav a::after { display: none; }
  .nav .nav-online { margin: 18px 0 0; }
  .nav-online a { margin: 0; text-align: center; border-bottom: 0; }
  .nav-contact { display: grid; gap: 6px; margin-top: 22px; font-size: .9rem; color: rgba(255,255,255,.75); }
  .sub { list-style: none; margin: 0; padding: 0 0 0 16px; }
  .sub a, .site-header.is-stuck .sub a { line-height: 44px; font-size: .84rem; font-weight: 600; text-transform: none; letter-spacing: 0; color: rgba(255,255,255,.78); }
}

.nav .sub { display: block; }
.nav .sub li { display: block; }

@media (min-width: 1241px) { .site-header .nav .sub li > a, .site-header .nav .sub li:first-child > a { padding: 12px 16px; } }


/* image cards: el degradado pertenece al bloque de texto y crece solo con él */
.service-tile::before { display: none; }
.tile-body { padding-top: 84px; background: linear-gradient(to top, rgba(7,61,32,.97) 0%, rgba(7,61,32,.93) 62%, rgba(7,61,32,.55) 82%, rgba(7,61,32,0) 100%); }


/* image cards (versión final): reposo = degradado bajo; abierta = card cubierta */
.service-tile::before { display: block; background: linear-gradient(to top, rgba(7,61,32,.96) 0%, rgba(7,61,32,.78) 16%, rgba(7,61,32,.3) 32%, rgba(7,61,32,0) 44%); transition: background .45s ease; }
.service-tile:hover::before, .service-tile.is-open::before, .service-tile:focus-within::before { background: linear-gradient(to top, rgba(7,61,32,.98) 0%, rgba(7,61,32,.95) 55%, rgba(7,61,32,.88) 100%); }
.tile-body { padding-top: 26px; background: none; }


/* Fondo sutil de la sección "Servicios para nuestros socios" */
#servicios-institucionales {
  position: relative;
  background:
    radial-gradient(900px 420px at 8% 0%, rgba(7,98,52,.09), transparent 70%),
    radial-gradient(800px 420px at 100% 100%, rgba(240,193,0,.10), transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--cream) 22%, #e9efe6 100%);
}
#servicios-institucionales::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(7,61,32,.13) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 35%, #000 100%);
}
#servicios-institucionales > .container { position: relative; }


/* Topbar (contacto + redes) sobre el navbar, solo escritorio y sin scroll */
.hdr-strip { display: none; }
@media (min-width: 1241px) {
  :root { --hdr-top: 134px; }
  .hdr-strip { display: block; border-bottom: 1px solid rgba(255,255,255,.16); background: rgba(5,45,24,.35); }
  .site-header.is-stuck .hdr-strip { display: none; }
  .hdr-strip-in { height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .hdr-strip .hdr-info { margin-left: 0 !important; font-size: .82rem; gap: 26px; }
  .hdr-strip .hdr-info svg { font-size: 1.05rem; color: var(--yellow); }
  .hdr-strip .hdr-social a { width: 28px; height: 28px; font-size: 1rem; }
}


/* Navbar más grande y elementos de la derecha como el original */
.hdr-tag, .hdr-strip-right { margin: 0; }
@media (min-width: 1241px) {
  :root { --hdr-top: 168px; }
  .site-header { --hdr-row: 118px; }
  .site-header.is-stuck { --hdr-row: 92px; }
  .site-header .brand img { width: 196px; height: auto; }
  .site-header.is-stuck .brand img { width: 164px; }
  .hdr-strip-in { height: 50px; }
  .hdr-tag { font-size: .84rem; letter-spacing: .02em; color: rgba(255,255,255,.82); }
  .hdr-tag strong { color: #fff; font-weight: 800; }
  .hdr-strip-right { display: flex; align-items: center; gap: 30px; margin-left: auto; }
  .hdr-strip .hdr-info { font-size: .9rem; gap: 30px; }
  .hdr-strip .hdr-info svg { font-size: 1.15rem; }
  .hdr-strip .hdr-social { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.25); }
  .hdr-strip .hdr-social a { width: 34px; height: 34px; font-size: 1.1rem; background: rgba(255,255,255,.1); }
  .nav a { padding: 0 16px; font-size: .86rem; }
  .nav > ul > li:first-child > a, .site-header.is-stuck .nav > ul > li:first-child > a { padding-left: 16px; }
  .site-header.is-stuck .nav a { padding-inline: 16px; }
  .nav > ul > li > a::after, .site-header.is-stuck .nav > ul > li > a::after, .nav > ul > li:first-child > a::after { left: 16px; right: 16px; }
  .has-sub > a, .site-header.is-stuck .has-sub > a { padding-right: 32px; }
  .has-sub > a::before { right: 15px; }
  .nav-online a { margin-left: 20px; padding: 0 28px; line-height: 52px; font-size: .86rem; }
}
@media (min-width: 1241px) and (max-width: 1400px) {
  .nav a { padding: 0 11px; font-size: .8rem; }
  .nav > ul > li:first-child > a, .site-header.is-stuck .nav > ul > li:first-child > a { padding-left: 11px; }
  .site-header.is-stuck .nav a { padding-inline: 11px; }
  .nav > ul > li > a::after, .site-header.is-stuck .nav > ul > li > a::after, .nav > ul > li:first-child > a::after { left: 11px; right: 11px; }
  .has-sub > a, .site-header.is-stuck .has-sub > a { padding-right: 28px; }
  .nav-online a { padding: 0 22px; margin-left: 12px; }
}

.hdr-tag { white-space: nowrap; }
@media (min-width: 1241px) and (max-width: 1560px) {
  .site-header .brand img { width: 176px; }
  .site-header.is-stuck .brand img { width: 150px; }
  .nav a { padding: 0 9px; font-size: .78rem; letter-spacing: .03em; }
  .nav > ul > li:first-child > a, .site-header.is-stuck .nav > ul > li:first-child > a { padding-left: 9px; }
  .site-header.is-stuck .nav a { padding-inline: 9px; }
  .nav > ul > li > a::after, .site-header.is-stuck .nav > ul > li > a::after, .nav > ul > li:first-child > a::after { left: 9px; right: 9px; }
  .has-sub > a, .site-header.is-stuck .has-sub > a { padding-right: 24px; }
  .has-sub > a::before { right: 9px; }
  .nav-online a { padding: 0 20px; margin-left: 10px; line-height: 48px; }
  .hdr-top-in { gap: 18px; }
}

@media (min-width: 1241px) and (max-width: 1560px) { .hdr-tag { display: none; } .hdr-strip-right { margin-left: auto; } }


/* Topbar integrado: sin banda de otro tono */
.hdr-strip, .site-header.is-stuck .hdr-strip { background: none; border-bottom: 0; }
@media (min-width: 1241px) {
  .site-header:not(.is-stuck) { background: linear-gradient(180deg, rgba(5,45,24,.55) 0%, rgba(5,45,24,.3) 55%, rgba(5,45,24,0) 100%); }
  .hdr-strip .hdr-social a { background: rgba(255,255,255,.08); }
}

@media (min-width: 1241px) {
  .hdr-strip-in { position: relative; }
  .hdr-strip-in::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.28), rgba(255,255,255,.12) 60%, rgba(255,255,255,.22)); }
}

.hdr-strip-in { justify-content: flex-end; }


/* Dropdown de Servicios tipo mega-menú */
.sub-ic, .sub-tx small, .sub-foot { display: none; }
@media (min-width: 1241px) {
  .site-header .nav .sub {
    left: 50%; top: calc(100% - 18px); width: 760px; min-width: 0; padding: 14px; border-radius: 26px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
    background: #fff; border: 1px solid rgba(7,61,32,.08);
    box-shadow: 0 2px 6px rgba(7,61,32,.06), 0 30px 80px -10px rgba(5,35,20,.38);
    transform: translate(-50%, 14px) scale(.97); transform-origin: 50% 0;
    transition: opacity .25s ease, transform .3s cubic-bezier(.2,.8,.2,1), visibility .25s;
  }
  .site-header .nav .has-sub:hover .sub, .site-header .nav .has-sub:focus-within .sub { transform: translate(-50%, 0) scale(1); }
  .site-header .nav .sub::before { top: -30px; height: 30px; }
  .site-header .nav .sub li > a, .site-header .nav .sub li:first-child > a {
    display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; line-height: 1.25; text-transform: none;
    color: var(--ink); transition: background .2s, transform .2s;
  }
  .site-header .nav .sub li > a:hover { background: var(--green-soft, #eef6ee); transform: translateX(2px); color: var(--ink); }
  .sub-ic { display: grid; flex: none; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--green-soft, #eef6ee); color: var(--green); transition: background .2s, color .2s, transform .25s; }
  .sub-ic svg { width: 26px; height: 26px; }
  .sub li > a:hover .sub-ic { background: var(--green); color: #fff; transform: scale(1.06) rotate(-4deg); }
  .sub-tx { display: grid; gap: 3px; min-width: 0; }
  .sub-tx strong { font-size: .95rem; font-weight: 800; letter-spacing: 0; color: #12301e; }
  .sub-tx small { display: block; font-size: .8rem; font-weight: 500; line-height: 1.35; color: #5d6b61; text-transform: none; letter-spacing: 0; }
  .sub-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; padding: 14px 18px; border-radius: 18px; background: linear-gradient(100deg, var(--green-deep), var(--green)); color: #fff; }
  .sub-foot span { font-size: .86rem; font-weight: 600; color: rgba(255,255,255,.85); }
  .site-header .nav .sub li.sub-foot > a, .site-header .nav .sub li.sub-foot:first-child > a { display: inline-flex; padding: 9px 18px; gap: 8px; border-radius: 999px; background: var(--yellow); color: #182313; font-size: .84rem; font-weight: 800; }
  .site-header .nav .sub li.sub-foot > a:hover { background: #fff; transform: none; color: #182313; }
  .sub-foot b { transition: transform .2s; }
  .sub-foot a:hover b { transform: translateX(3px); }
}

@media (min-width: 1241px) {
  .site-header .nav .sub { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header .nav .sub a, .sub-tx, .sub-tx * { white-space: normal; }
  .site-header .nav .sub li.sub-foot > a { white-space: nowrap; }
}

@media (min-width: 1241px) {
  .site-header .nav .sub li.sub-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 10px; padding: 16px 20px 16px 24px; }
  .site-header .nav .sub li.sub-foot span { flex: 1; line-height: 1.35; }
  .site-header .nav .sub li.sub-foot > a { flex: none; padding: 11px 22px; }
  .site-header .nav .sub li:nth-last-child(2):nth-child(odd) { grid-column: 1 / -1; }
  .site-header .nav .sub li:not(.sub-foot) > a { min-height: 80px; }
  .sub-tx small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* Heroes de páginas secundarias: texto alineado al contenedor, imagen integrada */
.page-hero { position: relative; min-height: 400px; display: flex; align-items: center; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5,45,24,.96) 0%, rgba(7,61,32,.86) 38%, rgba(7,61,32,.45) 68%, rgba(7,61,32,.12) 100%),
    linear-gradient(0deg, rgba(5,45,24,.5), rgba(5,45,24,0) 45%),
    var(--page-hero) center / cover no-repeat, var(--green-deep); }
.page-hero > .container.page-intro { max-width: none; width: min(1600px, calc(100% - 80px)); }
.page-intro > * { max-width: 760px; }
.page-intro h1 { margin: 10px 0 14px; }
@media (max-width: 980px) { .page-hero > .container.page-intro { width: calc(100% - 40px); } .page-hero { min-height: 340px; } }

/* Heroes de subpáginas: más altura y texto siempre alineado al contenedor */
.page-hero, .article-hero { min-height: 500px; display: flex; align-items: center; }
.page-hero { padding-block: calc(var(--hdr-h) + 30px) 70px; }
.page-hero > .container, .article-hero > .container { margin-inline: auto; }
.page-hero > .container.page-intro { text-align: left; }
@media (max-width: 980px) { .page-hero, .article-hero { min-height: 400px; } }
.page-hero, .article-hero { min-height: 600px; }
.page-hero { padding-block: calc(var(--hdr-h) + 40px) 90px; }
@media (max-width: 980px) { .page-hero, .article-hero { min-height: 460px; } }

/* Heroes con foto completa a la derecha (sin recortar a los sujetos) y fundido hacia el verde del texto */
.page-hero {
  --hero-ratio: 1.777;
  background: radial-gradient(900px 500px at 10% 20%, rgba(18,110,58,.55), transparent 70%), linear-gradient(120deg, #052d18 0%, #073d20 55%, #0b5a2e 100%);
}
.page-hero::before {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; z-index: 0;
  aspect-ratio: var(--hero-ratio); max-width: 100%;
  background: var(--page-hero) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 18%, #000 42%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 18%, #000 42%);
}
.page-hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 35%; z-index: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(5,45,24,.45), transparent);
}
.page-hero > .container { position: relative; z-index: 1; }
@media (max-width: 1100px) {
  .page-hero::before { left: 0; aspect-ratio: auto; -webkit-mask-image: none; mask-image: none; background-position: 70% center; opacity: .55; }
  .page-hero { background-color: #052d18; }
}

/* Foto panorámica a todo el ancho del hero + degradado verde desde la izquierda */
.page-hero::before {
  left: 0; right: 0; aspect-ratio: auto; max-width: none; opacity: 1;
  background: var(--page-hero) center 40% / cover no-repeat;
  -webkit-mask-image: none; mask-image: none;
}
.page-hero::after {
  inset: 0; height: auto; z-index: 0;
  background:
    linear-gradient(90deg, rgba(5,45,24,.94) 0%, rgba(7,61,32,.8) 30%, rgba(7,61,32,.38) 58%, rgba(7,61,32,.05) 85%, rgba(7,61,32,0) 100%),
    linear-gradient(0deg, rgba(5,45,24,.4) 0%, rgba(5,45,24,0) 40%),
    linear-gradient(180deg, rgba(5,45,24,.55) 0%, rgba(5,45,24,0) 28%);
}
@media (max-width: 1100px) {
  .page-hero::after { background: linear-gradient(90deg, rgba(5,45,24,.92) 0%, rgba(7,61,32,.75) 60%, rgba(7,61,32,.45) 100%); }
  .page-hero::before { background-position: 70% center; opacity: 1; }
}
.copyright a { color: inherit; font-weight: 700; transition: color .2s; }
.copyright a:hover { color: var(--yellow); text-decoration: underline; }

/* Botón flotante de WhatsApp: icono + número */
.whatsapp { display: inline-flex; align-items: center; gap: 10px; width: auto; height: 56px; padding: 0 22px 0 16px; border-radius: 999px; font-weight: 800; font-size: .95rem; letter-spacing: .01em; white-space: nowrap; transition: transform .2s, box-shadow .2s; }
.whatsapp svg { width: 28px; height: 28px; fill: currentColor; flex: none; }
.whatsapp:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0,0,0,.28); }
@media (max-width: 650px) { .whatsapp { right: 14px; bottom: 14px; height: 50px; padding: 0 16px 0 12px; font-size: .86rem; gap: 8px; } .whatsapp svg { width: 24px; height: 24px; } }

/* Responsive: drawer y controles del carrusel */
@media (max-width: 1240px) {
  .sub-foot { display: block; margin-top: 4px; }
  .sub-foot span { display: none; }
  .sub-foot a { display: block; line-height: 44px; font-size: .84rem; font-weight: 800; color: var(--yellow) !important; border-bottom: 1px solid rgba(255,255,255,.12); }
}
@media (max-width: 650px) {
  .promo-inner { padding-bottom: 150px; }
  .carousel-arrow { bottom: 92px; }
  .carousel-dots { bottom: 107px; }
}
@media (max-width: 650px) {
  .promo-carousel, .promo-track { min-height: 920px; }
  .promo-inner { padding-bottom: 170px; }
  .carousel-arrow { bottom: 100px; }
  .carousel-dots { bottom: 115px; }
}
@media (max-width: 650px) { .article-body .lead, .service-main > p.lead, .service-main h4 { font-size: 1.1rem; line-height: 1.5; } .whatsapp span { font-size: .84rem; } }

/* Marquee infinito y continuo: dos grupos idénticos, desplazamiento de -50% */
.institutional-marquee { padding: 20px 0; }
.institutional-marquee .marquee-track { display: flex; width: max-content; animation: marquee-infinite 38s linear infinite; }
.institutional-marquee .marquee-group { display: flex; flex: none; align-items: center; }
.institutional-marquee .marquee-group > * { flex: none; }
.institutional-marquee i { font-style: normal; color: var(--yellow); margin-inline: .7em; }
.institutional-marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-infinite { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Botones del mismo tamaño en móvil */
@media (max-width: 650px) {
  .actions, .article-cta, .service-actions, .section-action { display: grid; grid-template-columns: 1fr; gap: 12px; width: 100%; }
  .actions .btn, .article-cta .btn, .service-actions .btn, .section-action .btn, .cta .btn, .cta-inner .btn { width: 100%; min-height: 54px; padding: 0 20px; text-align: center; white-space: normal; line-height: 1.2; }
}

/* Efectos: aparición al hacer scroll, brillo en botones, zoom en imágenes, entrada del hero */
.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.js-reveal .reveal.in-view { opacity: 1; transform: none; }
.btn { position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s, background .25s, color .25s; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s ease; pointer-events: none; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(0,0,0,.2); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); }
.news-image { overflow: hidden; }
.news-image img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.news-card:hover .news-image img { transform: scale(1.07); }
.feature .icon, .feature-icon { transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.feature:hover .icon { transform: translateY(-4px) rotate(-6deg) scale(1.08); }
.card, .regulatory-grid a, .quote-card { transition: transform .3s ease, box-shadow .3s ease; }
.card:hover, .regulatory-grid a:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(7,61,32,.16); }
.promo-slide.is-active .hero-kicker, .promo-slide.is-active h1, .promo-slide.is-active .promo-copy p, .promo-slide.is-active .actions { animation: hero-rise .8s cubic-bezier(.2,.7,.2,1) both; }
.promo-slide.is-active h1 { animation-delay: .12s; }
.promo-slide.is-active .promo-copy p { animation-delay: .24s; }
.promo-slide.is-active .actions { animation-delay: .36s; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.page-hero .page-intro > * { animation: hero-rise .8s cubic-bezier(.2,.7,.2,1) both; }
.page-hero .page-intro > :nth-child(2) { animation-delay: .1s; }
.page-hero .page-intro > :nth-child(3) { animation-delay: .2s; }
.page-hero::before { animation: hero-zoom 14s ease-out both; }
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.whatsapp { animation: wa-pulse 2.8s ease-out infinite; }
@keyframes wa-pulse { 0% { box-shadow: 0 12px 30px rgba(0,0,0,.22), 0 0 0 0 rgba(37,211,102,.55); } 70%, 100% { box-shadow: 0 12px 30px rgba(0,0,0,.22), 0 0 0 18px rgba(37,211,102,0); } }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  .institutional-marquee .marquee-track, .page-hero::before, .whatsapp, .promo-slide.is-active * , .page-hero .page-intro > * { animation: none !important; }
}
@media (max-width: 650px) {
  .carousel-prev { left: 20px; }
  .carousel-next { left: 76px; right: auto; }
  .carousel-dots { left: 140px; right: auto; transform: none; bottom: 114px; }
}

/* WhatsApp flotante: solo el icono (el número queda en el aria-label) */
.whatsapp { width: 60px; height: 60px; padding: 0; gap: 0; justify-content: center; }
.whatsapp span { display: none; }
.whatsapp svg { width: 32px; height: 32px; }
@media (max-width: 650px) { .whatsapp { width: 54px; height: 54px; padding: 0; } .whatsapp svg { width: 30px; height: 30px; } }
