/* ===========================================================
   S.A.V.E. Mexico — rediseño estático HTML/CSS nativo
   Fiel al layout real de savingmexico.org (Elementor, mobile-first,
   bloques apilados a todo ancho, fondos de color alternados)
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --blue: #0177e3;
  --blue-dark: #0a5bb0;
  --blue-light-bg: #e7f6ff;
  --blue-section: #0085ff;
  --orange: #ff6900;
  --orange-dark: #e05e00;
  --orange-grad: linear-gradient(160deg, #f7ac3c 0%, #ff6900 100%);
  --green: #12b500;
  --green-dark: #5c9635;
  --green-grad: linear-gradient(160deg, #dcf2ab 0%, #a4d96b 100%);
  --green-pale: #e7f5d3;
  --navy: #0f172a;
  --ink: #1b2635;
  --muted: #57606f;
  --white: #ffffff;
  --border: #e3edf5;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(15, 40, 80, 0.10);
  --shadow-lg: 0 20px 50px rgba(15, 40, 80, 0.18);
  --font-head: "Montserrat", sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", sans-serif;
  --container: 760px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  margin: 0 0 0.5em;
  line-height: 1.25;
  font-weight: 600;
}
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-wide { max-width: 1400px; }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.7em;
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn-orange { background: var(--blue); color: var(--white); }
.btn-orange:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn-green { background: var(--blue); color: var(--white); }
.btn-green:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn-white { background: var(--blue); color: var(--white); }
.btn-white:hover { background: var(--blue-dark); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header { background: var(--blue-light-bg); position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 92px; max-width: 1040px; }
.logo-img {
  display: block;
  height: 46px;
  width: auto;
}
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.main-nav a {
  display: block; padding: 34px 20px; font-family: var(--font-head);
  font-weight: 700; font-size: 0.92rem; color: #0051f2;
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover { background: rgba(1, 119, 227, 0.08); }
.main-nav li.active a { color: #ff6900; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: #0051f2; cursor: pointer; padding: 8px; }

/* ---------- Section backgrounds ---------- */
section { padding: 90px 0; }
.section-tight { padding: 40px 0; }
.section-white { background: var(--white); }
.section-lightblue { background: var(--blue-light-bg); }
.section-blue { background: var(--blue-section); color: var(--white); }
.section-blue h1, .section-blue h2, .section-blue h3, .section-blue h4 { color: var(--white); }
.section-orange { background: var(--orange-grad); color: var(--white); }
.section-orange h1, .section-orange h2, .section-orange h3 { color: var(--white); }
.section-green { background: var(--green-grad); color: var(--ink); }
.section-green-pale { background: var(--green-pale); color: var(--ink); }
.section-green-solid { background: var(--green); color: var(--white); }
.section-green-solid h1, .section-green-solid h2, .section-green-solid h3 { color: var(--white); }
.section-navy { background: var(--navy); color: #cbd5e1; }
.section-navy h1, .section-navy h2, .section-navy h3 { color: var(--white); }

.text-center { text-align: center; }
.narrow { max-width: 620px; margin-left: auto; margin-right: auto; }

/* ---------- Hero (home, two-column over background photo) ---------- */
.hero {
  background-image: url('../assets/img/background-home.webp');
  background-size: cover;
  background-position: center;
  padding: 140px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 4fr 3fr;
  gap: 40px;
  align-items: center;
  max-width: 1158px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}
.hero-text {
  background: var(--white);
  padding: 36px 32px;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
}
.hero-text p {
  font-family: var(--font-head);
  color: #0051f2;
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0;
  line-height: 1.4;
}
.hero-media img { width: 100%; display: block; }

/* ---------- Simple page hero (title over/under photo) ---------- */
.page-hero { text-align: center; }
.page-hero h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.page-hero .subtitle { font-weight: 600; opacity: 0.95; max-width: 640px; margin: 0 auto; }
.page-hero img.hero-img { border-radius: 4px; max-width: 560px; margin: 28px auto 0; box-shadow: var(--shadow); }

/* ---------- Feature block: photo + heading + text + button, stacked ---------- */
.feature-block { text-align: center; max-width: 560px; margin: 0 auto; padding: 44px 0; }
.feature-block + .feature-block { border-top: 1px solid rgba(0,0,0,0.06); }
.section-lightblue .feature-block + .feature-block,
.section-white .feature-block + .feature-block { border-top: 1px solid var(--border); }
.feature-block img.photo {
  width: 100%; max-width: 460px; border-radius: 0;
  margin: 0 auto 26px; box-shadow: var(--shadow);
}
.feature-block img.circle {
  width: 260px; height: 260px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 26px; box-shadow: var(--shadow);
}
.feature-block h2, .feature-block h3 { font-size: 1.3rem; }
.feature-block p.desc { margin-bottom: 24px; }

.section-title-left {
  text-align: left;
  color: #0051f2;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 36px;
}
.feature-block-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  align-items: start;
}
.feature-block-grid .feature-block {
  max-width: none;
  margin: 0;
  padding: 0;
  border-top: none !important;
  text-align: left;
}
.feature-block-grid .feature-block h2 {
  color: #0051f2;
  font-weight: 600;
}
.feature-block-grid .feature-block img.photo {
  margin-left: 0;
  margin-right: 0;
}

/* ---------- Icon-stack: vertical icon + caption list ---------- */
.icon-stack { display: flex; flex-direction: column; gap: 44px; max-width: 480px; margin: 0 auto; text-align: center; }
.icon-stack .item img { width: 68px; height: 68px; object-fit: contain; margin: 0 auto 16px; }
.icon-stack .item p { font-weight: 700; font-size: 1.05rem; margin: 0; }
.icon-stack.cols-3 .item p { font-family: var(--font-head); }
.icon-stack.cols-5 .item p { font-family: var(--font-head); font-weight: 400; font-size: calc(1.05rem - 1pt); }
.icon-stack.small { gap: 34px; }
.icon-stack.small .item img { width: 56px; height: 56px; margin-bottom: 12px; }
.icon-stack.small .item p { font-weight: 600; font-size: 0.98rem; }
.icon-stack.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 900px; gap: 30px; }
.icon-stack.cols-5 { display: grid; grid-template-columns: repeat(5, 1fr); max-width: none; width: 100%; gap: 30px; }

/* ---------- Requirement rows (icon left on dark bg) ---------- */
.req-stack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px 30px; max-width: 1100px; margin: 0 auto; text-align: center; }
.req-stack img { width: 60px; height: 60px; object-fit: contain; margin: 0 auto 14px; }
.req-stack svg { display: block; margin: 0 auto 14px; }
.req-stack p { font-weight: 500; margin: 0; }
.req-stack.cols-6 { grid-template-columns: repeat(6, 1fr); max-width: 1100px; gap: 22px 10px; margin: 0 auto 40px; justify-items: center; }
.req-stack.cols-6 svg { width: 32px; height: 32px; }
.req-stack.cols-6 p { font-size: calc(0.8rem + 2pt); }
.req-stack.cols-6.white svg { stroke: var(--white); color: var(--white); }
.req-stack.cols-6 p { color: var(--white); }
@media (max-width: 720px) { .req-stack.cols-6 { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- Two-column info block (e.g. accommodation / exchange) ---------- */
.stay-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 30px; }

/* ---------- Gallery grid ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.gallery-grid img { width: 100%; height: 220px; object-fit: cover; display: block; }
.gallery-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-grid.grid-6 {
  grid-template-columns: repeat(6, 1fr);
}
.gallery-grid.grid-6 img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.photo-gallery-wrap { width: 66.666%; margin: 0 auto; }
.gallery-grid.grid-4 {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 6px;
}
.gallery-grid.grid-4 img {
  flex: 1 1 calc(25% - 4.5px);
  width: calc(25% - 4.5px);
  object-fit: cover;
  display: block;
}

/* ---------- Species block (turtle program) ---------- */
.species-block { padding: 0 0 56px; text-align: center; max-width: 520px; margin: 0 auto; }
.species-block img { max-width: 420px; width: 100%; margin: 0 auto 28px; }
.species-label { background: var(--blue-section); color: var(--white); padding: 18px 20px; font-weight: 700; font-size: 1.05rem; }
.species-block p.desc { padding-top: 22px; color: var(--ink); }

/* ---------- Bulleted list ---------- */
ul.bullets { list-style: disc; padding-left: 1.3em; max-width: 480px; margin: 0 auto; text-align: left; }
ul.bullets li { margin-bottom: 6px; font-size: 1.02rem; line-height: 1.4; }
ul.bullets.bullets-tight li { margin-bottom: 3px; }

/* ---------- Objective boxes (white cards on blue bg) ---------- */
.objective-box {
  background: var(--white); color: #ff6900; font-weight: 400; font-size: 1.05rem;
  padding: 26px 30px; border-radius: 2px; max-width: 560px; margin: 0 auto 30px;
}

/* ---------- Season 2026 dashboard ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-box { background: var(--blue-light-bg); border-radius: 4px; padding: 22px 18px; }
.stat-box .n { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: #0051f2; }
.stat-box .l { font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

.chart-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.chart-grid-2.chart-grid-wide { grid-template-columns: 1.3fr 1fr; align-items: start; }
.chart-card { background: var(--white); border: 1px solid var(--border); border-radius: 4px; padding: 22px 22px 16px; }
.chart-card h3 { font-family: var(--font-body); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink); margin: 0 0 14px; }
.chart-box { position: relative; height: 260px; }
.chart-box.tall { height: 320px; }

.legend-row { display: flex; gap: 18px; margin-top: 10px; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 7px; font-size: 0.8rem; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

.outcome-list { display: flex; flex-direction: column; }
.outcome-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.outcome-row:last-child { border-bottom: none; }
.outcome-row .k { color: var(--muted); }
.outcome-row .v { font-weight: 700; color: var(--ink); font-size: 1rem; }
.outcome-row .v.orange { color: var(--orange); }

@media (max-width: 760px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .chart-grid-2 { grid-template-columns: 1fr; }
  .chart-grid-2.chart-grid-wide { grid-template-columns: 1fr; }
}

/* ---------- Schedule (turtle day timeline) ---------- */
.schedule-item { text-align: center; max-width: 460px; margin: 0 auto 60px; }
.schedule-item img { width: 80%; max-width: 300px; aspect-ratio: 1/1; border-radius: 50%; object-fit: cover; margin: 0 auto 24px; box-shadow: none; }
.schedule-item .time { font-size: calc(1.4rem - 1pt); font-weight: 400; font-family: var(--font-head); }
.schedule-item .title { font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; margin: 4px 0 10px; font-family: var(--font-head); }
.schedule-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; max-width: none; width: 100%; margin: 0 auto; }
.schedule-grid .schedule-item { max-width: none; margin: 0; }
@media (max-width: 900px) {
  .schedule-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .schedule-grid { grid-template-columns: 1fr; }
}

/* ---------- Quote block ---------- */
.quote-block { text-align: center; max-width: 600px; margin: 0 auto; padding: 20px 0; }
.quote-block img { width: 267px; height: 267px; border-radius: 0; object-fit: cover; margin: 0 auto 28px; box-shadow: none; }
.quote-block blockquote { margin: 0; color: #0051f2; font-size: 1.3rem; font-style: normal; font-weight: 600; line-height: 1.5; font-family: var(--font-head); }
.quote-block cite { display: block; margin-top: 20px; color: #0051f2; font-weight: 800; font-style: normal; font-family: var(--font-head); }

/* ---------- Form ---------- */
.form-field { margin-bottom: 24px; text-align: left; max-width: 520px; margin-left: auto; margin-right: auto; }
.form-field label { display: block; font-weight: 600; margin-bottom: 8px; }
.form-field input, .form-field textarea {
  width: 100%; background: var(--navy); border: none; color: var(--white);
  padding: 15px 16px; border-radius: 6px; font-family: var(--font-body); font-size: 1rem;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #94a3b8; }
.form-submit-wrap { max-width: 520px; margin: 0 auto; text-align: center; }

/* ---------- Narrative (About Us history) ---------- */
.narrative:not(.photo-gallery-wrap) { max-width: 620px; margin: 0 auto; }
.narrative p { margin-bottom: 1.3em; }
.narrative img { width: 100%; border-radius: 4px; margin: 8px 0 28px; box-shadow: var(--shadow); }
.narrative h3 { color: var(--ink); }

/* ---------- Video embed card (styled placeholder, links to YouTube) ---------- */
.video-card {
  position: relative; display: block; border-radius: 4px; overflow: hidden;
  max-width: 560px; margin: 0 auto; box-shadow: var(--shadow);
}
.video-card img { width: 100%; display: block; }
.video-card .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.video-card .play span {
  width: 68px; height: 48px; background: #ff0000; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.video-card .play span::before {
  content: ""; border-style: solid; border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent white; margin-left: 4px;
}
.video-card .label {
  position: absolute; top: 0; left: 0; right: 0; padding: 14px 16px;
  background: linear-gradient(180deg, rgba(0,0,0,0.65), transparent);
  color: white; text-align: left; font-family: var(--font-head);
}
.video-card .label strong { display: block; font-size: 1rem; }
.video-card .label span { font-size: 0.8rem; opacity: 0.85; }

/* ---------- Banner photo + caption ---------- */
.photo-caption { text-align: center; }
.photo-caption img { border-radius: 0; box-shadow: var(--shadow); margin-bottom: 20px; width: 100%; max-width: none; }
.photo-caption p.cap { font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.02em; max-width: 560px; margin: 0 auto; }

/* ---------- Get involved (dark photo bg) ---------- */
.donate-band {
  background-image: linear-gradient(rgba(10,20,30,0.3), rgba(10,20,30,0.35)), url('../assets/img/cenote-bg.webp');
  background-size: cover; background-position: center;
  color: var(--white); text-align: center; padding: 80px 0;
}
.donate-band p { font-weight: 400; font-size: 1.1rem; max-width: 640px; margin: 0 auto 1.2em; }

/* ---------- Divider ---------- */
.divider { border: none; border-top: 2px solid rgba(255,255,255,0.5); max-width: 800px; margin: 0 auto 40px; }
.section-white .divider, .section-lightblue .divider, .section-green-pale .divider { border-top: 2px solid var(--green); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9c3d4; padding: 56px 0 26px; text-align: center; }
.footer-cols {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.footer-address { margin-bottom: 0; font-size: 0.98rem; text-align: center; flex: 1; }
.footer-address a { text-decoration: underline; color: #b9c3d4; }
.footer-badges { margin: 0; flex: 1; text-align: center; }
.footer-badges img { width: 100%; max-width: 340px; margin: 0 auto; }
.footer-contact { flex: 1; text-align: center; }
.footer-contact h4 { color: var(--white); font-size: 0.95rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1em; }
.footer-contact a { display: block; margin-bottom: 10px; color: #b9c3d4; font-weight: 400; }
.footer-contact a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 30px; padding-top: 22px; font-size: 0.88rem; color: #7c8798; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .gallery-grid.grid-6 { grid-template-columns: repeat(3, 1fr); }
  .footer-cols { flex-direction: column; gap: 32px; }
  .footer-address, .footer-contact { text-align: center; }
  .feature-block-grid { grid-template-columns: 1fr; gap: 0; }
  .feature-block-grid .feature-block { padding: 32px 0; border-top: 1px solid var(--border) !important; }
  .feature-block-grid .feature-block:first-child { border-top: none !important; padding-top: 0; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
    box-shadow: var(--shadow-lg); display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: 16px 24px; }
  .site-header .container { min-height: 74px; }
  .hero { padding: 90px 0; }
  .hero-grid { padding: 0 24px; }
  section { padding: 70px 0; }
  .gallery-grid img { height: 150px; }
  .photo-gallery-wrap { width: 85%; }
  .gallery-grid.grid-4 { gap: 4px; }
  .gallery-grid.grid-4 img { flex-basis: calc(33.333% - 3px); width: calc(33.333% - 3px); }
  .req-stack { grid-template-columns: repeat(2, 1fr); gap: 34px 24px; }
  .icon-stack.cols-3 { grid-template-columns: 1fr; }
  .icon-stack.cols-5 { grid-template-columns: repeat(2, 1fr); }
  .stay-columns { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .photo-gallery-wrap { width: 94%; }
  .gallery-grid.grid-4 img { flex-basis: calc(50% - 3px); width: calc(50% - 3px); }
}

@media (max-width: 600px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-text { padding: 26px 22px; }
  .hero-text p { font-size: 1.1rem; }
  .hero-media { max-width: 280px; margin: 0 auto; }
  .stay-columns { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 480px) {
  .gallery-grid.grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid.grid-6 { grid-template-columns: repeat(2, 1fr); }
  .req-stack { grid-template-columns: 1fr; }
}

/* === Sección de 2 fotos (Volunteer page) === */
.photo-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}
.photo-columns .item {
  width: 100%;
  max-width: none;
}
.photo-columns .item img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 0;
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
  margin: 0 auto;
  display: block;
}
.photo-columns .item p {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: calc(1.05rem + 1pt);
  text-align: center;
  margin: 0;
  padding: 15px;
  background: #ffffff;
  color: #ff6900;
}
@media (max-width: 640px) {
  .photo-columns {
    grid-template-columns: 1fr;
  }
}
