/* ============================================================
   SIMS — Società Italiana di Mutuo Soccorso
   Direction: Río del Tiempo · seed:2f8cf3aed1bb41a6
   ============================================================ */

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; }

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --night:      #020D07;
  --dusk:       #061A0E;
  --dusk-mid:   #0A2818;
  --dusk-warm:  #0E3420;

  --gold:       #C9A227;
  --gold-pale:  #E8C860;
  --gold-dim:   #8A6A18;

  --rosso:      #CE2B37;
  --verde:      #009246;
  --white:      #FAFAF8;

  --paper:      #F5EDD8;
  --paper-mid:  #EDE0C4;
  --paper-deep: #D8C8A8;
  --ink:        #0E1C14;
  --ink-mid:    #243D2E;
  --ink-light:  #5A7262;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --container: 1160px;
  --gutter:    clamp(16px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 120px);
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Base ───────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scrollbar-width: none; /* Firefox */
}
html::-webkit-scrollbar { display: none; } /* Chrome/Safari */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-mid);
  background: var(--dusk);
  overflow-x: hidden;
}
h1,h2,h3,h4,h5 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
  font-weight: 400;
}
a { color: inherit; text-decoration: none; }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Flag stripe ────────────────────────────────────────── */
.flag-stripe {
  position: fixed;
  top: 0; left: 0; right: 0; width: 100vw;
  height: 4px; z-index: 1001;
  background: linear-gradient(90deg,
    var(--verde) 0 33.333%,
    var(--white) 33.333% 66.666%,
    var(--rosso) 66.666%
  );
  transition: opacity 300ms;
}
.flag-stripe.hidden { opacity: 0; pointer-events: none; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 4px; left: 0; right: 0; width: 100vw;
  z-index: 1000;
  transition: background 300ms var(--ease), box-shadow 300ms var(--ease), top 300ms var(--ease);
}
.site-header.scrolled {
  top: 0;
  background: var(--dusk);
  box-shadow: 0 1px 0 rgba(201,162,39,.15), 0 4px 24px rgba(0,0,0,.35);
}
body:not(.page-home) .site-header {
  background: rgba(6,26,14,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(201,162,39,.12);
  top: 0;
}
/* flag-stripe visible en todas las páginas */
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 108px; gap: 24px;
}

/* Logo */
.site-logo {
  display: flex; align-items: center;
  flex-shrink: 0; text-decoration: none;
  transition: opacity 200ms;
}
.site-logo:hover { opacity: .85; }
.site-logo-img {
  height: 94px; width: auto;
}
.site-logo-img--footer {
  height: 94px;
}

/* Nav */
.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav a {
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(250,250,248,.7);
  padding: 8px 13px; border-radius: 2px;
  transition: color 180ms, background 180ms;
}
.main-nav a:hover { color: var(--white); background: rgba(255,255,255,.06); }

.nav-item { position: relative; }
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 210px;
  background: var(--dusk-warm);
  border: 1px solid rgba(201,162,39,.2);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  border-radius: 2px; padding: 8px 0;
  opacity: 0; pointer-events: none;
  transition: opacity 160ms var(--ease), transform 160ms var(--ease);
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block; padding: 9px 18px;
  font-size: 13px; color: rgba(250,250,248,.7);
  letter-spacing: .03em; text-transform: none;
}
.nav-dropdown a:hover { background: rgba(255,255,255,.05); color: var(--white); }

.nav-cta {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid rgba(201,162,39,.4); color: var(--gold);
  padding: 9px 20px; border-radius: 2px;
  transition: all 180ms; white-space: nowrap; text-decoration: none;
}
.nav-cta:hover { background: rgba(201,162,39,.1); }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px;
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 1px;
}

/* ── Mobile menu ────────────────────────────────────────── */
.mobile-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.7); z-index: 998;
  backdrop-filter: blur(4px);
}
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(300px, 90vw);
  background: var(--dusk-warm); z-index: 999;
  padding: 72px 28px 36px;
  transform: translateX(100%);
  transition: transform 280ms var(--ease); overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-overlay.open { display: block; }
.mobile-menu-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none;
  font-size: 28px; color: var(--gold); line-height: 1;
}
.mobile-menu ul { list-style: none; }
.mobile-menu li { border-bottom: 1px solid rgba(201,162,39,.15); }
.mobile-menu li a { display: block; padding: 14px 0; font-size: 17px; color: var(--white); }
.mobile-menu .btn-primary { display: block; text-align: center; margin-top: 28px; }

/* ── Stars ──────────────────────────────────────────────── */
.rt-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.rt-star {
  position: absolute;
  border-radius: 50%;
  background: var(--white);
  animation: starTwinkle var(--sd, 3s) ease-in-out infinite var(--delay, 0s);
}
@keyframes starTwinkle {
  0%, 100% { opacity: var(--smin, .08); transform: scale(1); }
  50%       { opacity: var(--smax, .55); transform: scale(1.15); }
}

/* ── HERO — Río del Tiempo ──────────────────────────────── */
.rt-hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(170deg,
    #0E3420 0%,
    #082418 35%,
    #041810 65%,
    #020D07 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px var(--gutter) 80px;
}

/* Radial ambient glow */
.rt-hero::before {
  content: '';
  position: absolute;
  top: 30%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(201,162,39,.07) 0%, transparent 70%);
  pointer-events: none;
}

.rt-year {
  font-family: var(--font-display);
  font-size: clamp(120px, 18vw, 220px);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -.02em;
  text-shadow: 0 0 80px rgba(201,162,39,.25), 0 0 160px rgba(201,162,39,.1);
  position: relative;
  z-index: 2;
  margin-bottom: 0;
}

/* The river line */
.rt-river {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 28px 0 32px;
  z-index: 2;
}

.rt-river-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--gold-dim) 10%,
    var(--gold) 30%,
    var(--gold-pale) 50%,
    var(--gold) 70%,
    var(--gold-dim) 90%,
    transparent 100%
  );
}

.rt-milestones {
  display: flex;
  justify-content: space-between;
  padding: 0 5%;
  margin-top: -6px;
}

.rt-milestone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.rt-milestone-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--dusk);
  border: 2px solid var(--gold);
  box-shadow: 0 0 10px rgba(201,162,39,.4);
  position: relative;
  z-index: 1;
}

.rt-milestone-dot.active {
  background: var(--gold);
  box-shadow: 0 0 14px rgba(201,162,39,.6);
}

.rt-milestone-year {
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--gold-pale);
  opacity: .75;
  margin-top: 6px;
}

.rt-label {
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-pale);
  opacity: .7;
  margin-bottom: 8px;
  z-index: 2;
  position: relative;
  text-align: center;
}

.rt-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 400;
  color: var(--white);
  letter-spacing: .04em;
  text-align: center;
  z-index: 2;
  position: relative;
  margin-bottom: 32px;
}

.rt-actions {
  display: flex; gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  z-index: 2; position: relative;
}

/* Scroll cue */
.rt-scroll {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  color: rgba(250,250,248,.3);
  z-index: 3;
}
.rt-scroll span { font-size: 9px; letter-spacing: .22em; text-transform: uppercase; }
.rt-scroll-line {
  width: 1px; height: 32px;
  background: linear-gradient(to bottom, rgba(201,162,39,.4), transparent);
  animation: linePulse 2.2s ease-in-out infinite;
}
@keyframes linePulse {
  0%,100% { opacity: .4; } 50% { opacity: 1; }
}

/* ── Buttons ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  background: var(--rosso); color: var(--white);
  padding: 14px 32px; border: none; border-radius: 2px;
  transition: background 180ms, transform 180ms; text-decoration: none;
}
.btn-primary:hover { background: #b02030; transform: translateY(-1px); color: var(--white); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  background: transparent; color: var(--gold);
  padding: 13px 31px;
  border: 1px solid rgba(201,162,39,.45);
  border-radius: 2px; transition: all 180ms; text-decoration: none;
}
.btn-outline:hover { background: rgba(201,162,39,.1); }

.btn-outline-light {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  background: transparent; color: var(--paper);
  padding: 13px 31px;
  border: 1px solid rgba(245,237,216,.3);
  border-radius: 2px; transition: all 180ms; text-decoration: none;
}
.btn-outline-light:hover { background: rgba(245,237,216,.08); }

/* ── Section label ──────────────────────────────────────── */
.section-label {
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: 12px;
}

/* ── Wayfinding ─────────────────────────────────────────── */
.wayfinding {
  background: var(--dusk-warm);
  border-top: 1px solid rgba(201,162,39,.12);
}
.wayfinding-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.waycard {
  padding: 48px 40px;
  border-right: 1px solid rgba(201,162,39,.1);
  position: relative; transition: background 240ms;
  display: block; text-decoration: none; cursor: pointer;
}
.waycard:last-child { border-right: none; }
.waycard::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
}
.waycard--verde::before  { background: var(--verde); }
.waycard--gold::before   { background: var(--waycard-line, #ffffff); }
.waycard--rosso::before  { background: var(--rosso); }
.waycard:hover { background: rgba(255,255,255,.03); }

.waycard-num {
  font-size: 10px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.waycard-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 400; color: var(--white);
  line-height: 1.2; margin-bottom: 10px;
}
.waycard-desc {
  font-size: 13px; color: rgba(250,250,248,.48); line-height: 1.7;
}
.waycard-link {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 22px; font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(250,250,248,.5);
  border-bottom: 1px solid rgba(250,250,248,.18);
  padding-bottom: 2px; transition: color 180ms, border-color 180ms;
  text-decoration: none;
}
.waycard-link:hover { color: var(--white); border-color: rgba(250,250,248,.5); }

/* ── About section ──────────────────────────────────────── */
.about-section {
  background: var(--paper);
  padding: var(--section-y) 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.about-stat { text-align: center; }
.about-year-big {
  font-family: var(--font-display);
  font-size: clamp(80px, 12vw, 148px);
  font-weight: 300; color: var(--ink);
  line-height: 1; letter-spacing: -.02em; display: block;
}
.about-year-sub {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-light); margin-top: 6px; display: block;
}
.about-rule {
  width: 1px; height: 64px;
  background: var(--paper-deep);
  margin: 18px auto;
}
.about-founded {
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 22px);
  color: var(--ink); line-height: 1.35;
}
.about-content h2 { font-size: clamp(28px, 4.2vw, 48px); margin-bottom: 20px; }
.about-content p { font-size: 16px; line-height: 1.75; color: var(--ink-light); margin-bottom: 16px; }
.about-flags { display: flex; gap: 6px; margin-top: 26px; align-items: center; }
.flag-dot { width: 9px; height: 9px; border-radius: 50%; }
.about-flags span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-light); margin-left: 4px; }

/* ── History river (timeline) ───────────────────────────── */
.history-section {
  background: var(--dusk);
  padding: var(--section-y) 0;
  position: relative;
  overflow: hidden;
}

/* Ambient glow behind the river */
.history-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; height: 2px;
  background: linear-gradient(90deg,
    transparent, rgba(201,162,39,.12) 20%,
    rgba(201,162,39,.25) 50%,
    rgba(201,162,39,.12) 80%, transparent
  );
}

.history-section .section-label { color: var(--gold-pale); }
.history-section h2 {
  font-size: clamp(28px, 4vw, 44px);
  color: var(--white); margin-bottom: 56px;
}

.history-river {
  position: relative;
  padding: 40px 0;
}

.history-river-line {
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(201,162,39,.3) 5%,
    var(--gold-dim) 20%,
    var(--gold) 50%,
    var(--gold-dim) 80%,
    rgba(201,162,39,.3) 95%,
    transparent 100%
  );
  transform: translateY(-50%);
}

.history-events {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.history-event {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

.history-event:nth-child(odd) {
  padding-top: 0;
  padding-bottom: calc(50% + 32px);
  align-items: flex-start;
}
.history-event:nth-child(even) {
  padding-top: calc(50% + 32px);
  padding-bottom: 0;
  align-items: flex-start;
}

.history-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--dusk);
  border: 2px solid var(--gold);
  position: absolute;
  top: 50%; left: 20px;
  transform: translateY(-50%);
  box-shadow: 0 0 10px rgba(201,162,39,.35);
}

.history-event-inner {
  position: relative;
}

.history-event:nth-child(odd) .history-event-inner {
  padding-bottom: 20px;
}
.history-event:nth-child(even) .history-event-inner {
  padding-top: 20px;
}

.history-year {
  font-family: var(--font-display);
  font-size: 32px; color: var(--gold);
  line-height: 1; margin-bottom: 6px;
}
.history-event p {
  font-size: 13px; color: rgba(250,250,248,.55); line-height: 1.6;
}

/* ── Services ───────────────────────────────────────────── */
.services-section {
  background: var(--dusk-warm);
  padding: var(--section-y) 0;
  border-top: 1px solid rgba(201,162,39,.1);
}
.services-header { text-align: center; margin-bottom: clamp(36px, 5vw, 60px); }
.services-header .section-label { color: var(--gold-pale); }
.services-header h2 { font-size: clamp(28px, 4.5vw, 50px); color: var(--white); }

.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }

.service-card {
  position: relative; min-height: 400px;
  background: rgba(255,255,255,.02);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 40px 40px 44px;
  border: 1px solid rgba(255,255,255,.04);
  transition: background 280ms;
}
.service-card:hover { background: rgba(255,255,255,.05); }
.service-card-line {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
}
.service-card--sanatorio .service-card-line { background: var(--verde); }
.service-card--cementerio .service-card-line { background: var(--gold); }

.service-icon {
  width: 44px; height: 44px;
  border: 1px solid rgba(201,162,39,.2);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px; color: var(--gold); font-size: 18px;
}
.service-card h3 { font-size: clamp(24px, 3vw, 36px); color: var(--white); margin-bottom: 12px; }
.service-card p { font-size: 14px; color: rgba(250,250,248,.5); line-height: 1.7; margin-bottom: 24px; }
.service-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-pale);
  border-bottom: 1px solid rgba(201,162,39,.25);
  padding-bottom: 2px;
  transition: color 180ms, border-color 180ms; text-decoration: none;
}
.service-link:hover { color: var(--gold); border-color: var(--gold); }

/* ── News ───────────────────────────────────────────────── */
.news-section { background: var(--paper); padding: var(--section-y) 0; }
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: clamp(28px, 4vw, 48px); gap: 16px; flex-wrap: wrap;
}
.section-header h2 { font-size: clamp(24px, 3.5vw, 40px); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.news-card {
  background: var(--paper-mid);
  display: flex; flex-direction: column;
  transition: background 180ms; overflow: hidden;
}
.news-card--link { text-decoration: none; cursor: pointer; }
.news-card-img {
  height: 200px;
  background-size: cover; background-position: center;
  flex-shrink: 0;
}
.news-card-body {
  padding: 24px 26px 30px;
  display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.news-card:hover { background: var(--paper-deep); }
.news-tag { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--rosso); }
.news-card h3 { font-family: var(--font-display); font-size: clamp(18px, 2vw, 22px); line-height: 1.25; color: var(--ink); }
.news-card p { font-size: 13px; color: var(--ink-light); line-height: 1.65; flex: 1; }
.news-date { font-size: 11px; color: var(--ink-light); letter-spacing: .06em; }
.news-read {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); border-bottom: 1px solid var(--ink);
  padding-bottom: 1px; transition: opacity 180ms; text-decoration: none;
  margin-top: auto; align-self: flex-start;
}
.news-read:hover { opacity: .55; }

/* ── CTA ────────────────────────────────────────────────── */
.cta-section {
  background: var(--rosso); padding: var(--section-y) 0; text-align: center;
}
.cta-section .section-label { color: rgba(250,250,248,.65); }
.cta-section h2 { font-size: clamp(30px, 5vw, 58px); color: var(--white); margin-bottom: 16px; }
.cta-section p { font-size: 16px; color: rgba(250,250,248,.78); max-width: 500px; margin: 0 auto 32px; line-height: 1.7; }
.btn-cta-light {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  background: var(--white); color: var(--rosso);
  padding: 14px 36px; border-radius: 2px; font-weight: 500;
  transition: all 180ms; text-decoration: none;
}
.btn-cta-light:hover { background: var(--paper); }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--night);
  border-top: 1px solid rgba(201,162,39,.1);
  padding: clamp(44px, 6vw, 72px) 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(20px, 4vw, 52px);
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.footer-brand p { font-size: 13px; color: rgba(250,250,248,.38); line-height: 1.7; margin-top: 14px; max-width: 270px; }
.footer-social { display: flex; gap: 8px; margin-top: 20px; }
.footer-social a {
  width: 30px; height: 30px; border-radius: 2px;
  border: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(250,250,248,.38); font-size: 12px;
  transition: all 180ms; text-decoration: none;
}
.footer-social a:hover { border-color: rgba(201,162,39,.4); color: var(--gold); }

.footer-col h4 {
  font-size: 10px; letter-spacing: .24em; text-transform: uppercase;
  color: rgba(250,250,248,.3); margin-bottom: 16px; font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul a { font-size: 13px; color: rgba(250,250,248,.48); transition: color 160ms; text-decoration: none; }
.footer-col ul a:hover { color: var(--white); }

.footer-contact { list-style: none !important; }
.footer-contact li { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: rgba(250,250,248,.44); line-height: 1.5; }
.footer-contact i { margin-top: 2px; font-size: 11px; flex-shrink: 0; }
.footer-contact a { color: inherit; transition: color 160ms; text-decoration: none; }
.footer-contact a:hover { color: var(--white); }

.footer-bottom {
  padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
}
.footer-bottom p { font-size: 12px; color: rgba(250,250,248,.25); letter-spacing: .04em; }

/* ══════════════════════════════════════════════════════════
   INNER PAGES
   ══════════════════════════════════════════════════════════ */

/* Page hero banner */
.page-hero {
  background: var(--dusk);
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--dusk-warm) 0%, var(--dusk) 60%);
  opacity: .7;
}
.page-hero-body {
  position: relative; z-index: 1;
}
.page-hero-label {
  display: inline-block;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300; color: var(--white);
  line-height: 1.1; margin-bottom: 16px;
}
.page-hero h1 em { font-style: italic; color: var(--gold-pale); }
.page-hero-sub {
  font-size: 15px; color: rgba(250,250,248,.55); max-width: 540px;
  margin-bottom: 28px;
}
.page-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(250,250,248,.35); margin-bottom: 24px;
}
.breadcrumb a { color: inherit; text-decoration: none; transition: color 160ms; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { opacity: .4; font-size: 9px; }

/* Inner sections */
.inner-section {
  padding: var(--section-y) 0;
  background: var(--paper);
}
.inner-section--dark {
  background: var(--dusk);
}
.inner-section--dusk {
  background: var(--dusk-mid);
}
.inner-section--night {
  background: var(--night);
}

/* Two-col layout */
.inner-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.inner-two-col--wide { grid-template-columns: 1.1fr 0.9fr; }
.inner-two-col--reverse { direction: rtl; }
.inner-two-col--reverse > * { direction: ltr; }

/* Section headings in light sections */
.inner-section .section-label { color: var(--ink-light); }
.inner-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300; color: var(--ink);
  line-height: 1.15; margin: 8px 0 20px;
}
.inner-section p { color: var(--ink-mid); line-height: 1.75; }
.inner-section--dark .section-label { color: var(--gold-dim); }
.inner-section--dark h2 { color: var(--white); }
.inner-section--dark p { color: rgba(250,250,248,.6); }
.inner-section--dusk .section-label { color: var(--gold-dim); }
.inner-section--dusk h2 { color: var(--white); }
.inner-section--dusk p { color: rgba(250,250,248,.6); }

/* Specialty / feature cards grid */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(14,28,20,.12);
  border: 1px solid rgba(14,28,20,.12);
  border-radius: 12px;
  overflow: hidden;
  margin-top: clamp(28px, 4vw, 48px);
}
.spec-card {
  background: var(--paper);
  padding: 28px 24px;
  transition: background 200ms;
}
.spec-card:hover { background: var(--paper-mid); }
.spec-icon {
  width: 40px; height: 40px;
  background: rgba(206,43,55,.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--rosso);
  font-size: 16px;
  margin-bottom: 14px;
}
.spec-card h4 {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 600;
  color: var(--ink); margin-bottom: 6px;
}
.spec-card p { font-size: 13px; color: var(--ink-mid); line-height: 1.6; margin: 0; }

/* Dark spec cards */
.spec-grid--dark {
  background: rgba(201,162,39,.08);
  border-color: rgba(201,162,39,.08);
}
.spec-grid--dark .spec-card { background: var(--dusk-mid); }
.spec-grid--dark .spec-card:hover { background: var(--dusk-warm); }
.spec-grid--dark .spec-icon { background: rgba(201,162,39,.1); color: var(--gold); }
.spec-grid--dark .spec-card h4 { color: var(--white); }
.spec-grid--dark .spec-card p { color: rgba(250,250,248,.5); }

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(201,162,39,.15);
  border-top: 1px solid rgba(201,162,39,.15);
  border-bottom: 1px solid rgba(201,162,39,.15);
}
.stat-item {
  padding: 32px 24px;
  text-align: center;
  background: var(--dusk);
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300; color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 11px; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(250,250,248,.4); margin-top: 6px;
}

/* Prepaga tags */
.prepaga-grid {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 28px;
}
.prepaga-tag {
  padding: 7px 16px;
  border: 1px solid rgba(14,28,20,.15);
  border-radius: 100px;
  font-size: 12px; color: var(--ink-mid);
  background: var(--paper);
}

/* Mission/vision list */
.mv-list { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.mv-item { display: flex; gap: 16px; align-items: flex-start; }
.mv-icon {
  flex-shrink: 0; width: 38px; height: 38px;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.mv-icon--rosso { background: rgba(206,43,55,.1); color: var(--rosso); }
.mv-icon--gold  { background: rgba(201,162,39,.1); color: var(--gold); }
.mv-item h5 { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.mv-item p { font-size: 13px; color: var(--ink-mid); line-height: 1.6; margin: 0; }

/* CTA banner */
.cta-banner-inner {
  background: linear-gradient(135deg, var(--dusk-warm) 0%, var(--night) 100%);
  border-radius: 16px;
  padding: clamp(48px, 7vw, 80px) clamp(32px, 5vw, 64px);
  text-align: center;
  border: 1px solid rgba(201,162,39,.12);
}
.cta-banner-inner .section-label { color: var(--gold-dim); }
.cta-banner-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300; color: var(--white);
  margin: 8px 0 14px;
}
.cta-banner-inner p { color: rgba(250,250,248,.5); margin-bottom: 28px; }
.cta-banner-inner .page-hero-actions { justify-content: center; }

/* Urgencias cards */
.urgencia-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.urgencia-card {
  background: var(--dusk-mid);
  border: 1px solid rgba(201,162,39,.1);
  border-radius: 12px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}
.urgencia-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
}
.urgencia-card .u-icon {
  font-size: 26px; margin-bottom: 14px; display: block; color: var(--gold);
}
.urgencia-card h3 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 400; color: var(--white);
  margin-bottom: 10px;
}
.urgencia-card p { font-size: 13px; color: rgba(250,250,248,.5); margin: 0; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .inner-two-col { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .urgencia-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .wayfinding-grid { grid-template-columns: 1fr; }
  .waycard { border-right: none; border-bottom: 1px solid rgba(201,162,39,.1); }
  .waycard:last-child { border-bottom: none; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-stat { display: flex; gap: 24px; align-items: center; justify-content: center; }
  .about-rule { width: 1px; height: 52px; margin: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .history-events { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .spec-grid { grid-template-columns: 1fr; }
  .urgencia-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .page-hero { padding: 130px 0 56px; }
  .main-nav, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .waycard { padding: 32px 20px; }
  .news-grid { grid-template-columns: 1fr; }
  .about-stat { flex-direction: column; gap: 4px; }
  .about-rule { display: none; }
  .history-events { grid-template-columns: 1fr; }
  .history-event:nth-child(odd),
  .history-event:nth-child(even) { padding: 0 0 28px 32px; }
  .history-river-line { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .rt-actions { flex-direction: column; align-items: center; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 280px; }
}

/* ── Parallax stage (hero fuente) ───────────────────────── */
.rt-stage {
  height: 100svh;
  position: relative;
}
.rt-stage .rt-hero {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  min-height: unset;
  padding: 0;
  background: #153f37;
  z-index: 0;
}
.page-home .header-inner {
  border-bottom: 1px solid rgba(255,255,255,.25);
  padding-bottom: 12px;
}
/* ambas imágenes extendidas 5% — cubre el gap del scrollbar de Windows */
.rt-parallax-bg {
  position: absolute; inset: -5%;
  width: 110%; height: 110%;
  object-fit: cover; object-position: center;
  will-change: transform; pointer-events: none;
  z-index: 0; transform-origin: 50% 62%;
}
.rt-parallax-fg {
  position: absolute; inset: -5%;
  width: 110%; height: 110%;
  object-fit: cover; object-position: center;
  will-change: transform; pointer-events: none;
  z-index: 1; transform-origin: 50% 68%;
}
.rt-shade-parallax {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, #062e35ca 0%, #06363b65 42%, transparent 82%),
    linear-gradient(0deg,  #052d3298 0%, transparent 50%);
}
.rt-vignette {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  box-shadow: inset 0 0 180px #092e3360;
}
/* gotas de agua de la fuente */
.rt-drop {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #fff0cd;
  opacity: .28;
  top: -10%;
  left: var(--x);
  pointer-events: none;
  z-index: 3;
  animation: rt-leaf var(--d) linear infinite;
  animation-delay: var(--delay);
}
@keyframes rt-leaf {
  to { transform: translate(-220px, 115vh) rotate(380deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .rt-drop { display: none; } }

/* wrapper que levanta todo el contenido por encima de las imágenes */
.rt-parallax-content {
  position: relative; z-index: 4;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  width: 100%; min-height: 100%;
  padding: 100px var(--gutter) 80px;
}
.rt-stage .rt-stars  { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .rt-stage { height: 100svh; }
  .rt-parallax-bg, .rt-parallax-fg { will-change: auto; }
}
