/* Iglesperanza v2 — "Casa abierta" × estética actual de redes (bosque, lima, grano, mayúsculas) */
:root {
  --forest: #173d33;
  --forest-2: #1f4b3f;
  --forest-3: #0f2b24;
  --lime: #d3efb2;
  --lime-2: #bfe39a;
  --cream: #fbf5ec;
  --paper: #fffdf8;
  --ink: #173d33;
  --ink-2: #4c6159;
  --line: #e4dccf;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --pad: clamp(18px, 4.5vw, 64px);
  --r: 22px;
  --ease: cubic-bezier(.2, .75, .1, 1);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.62' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='3.2' intercept='-1.1'/%3E%3CfeFuncG type='linear' slope='3.2' intercept='-1.1'/%3E%3CfeFuncB type='linear' slope='3.2' intercept='-1.1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }
body { background: var(--cream); color: var(--ink); font: 400 17px/1.55 var(--font); letter-spacing: -.01em; -webkit-font-smoothing: antialiased; overflow-x: clip; opacity: 0; transition: opacity .5s ease; }
body.ready { opacity: 1; }
body.leaving { opacity: 0; transition-duration: .25s; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, .display { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -.035em; line-height: .88; }
[hidden] { display: none !important; }

/* Grano global sutil */
.grain { position: fixed; inset: -50%; width: 200%; height: 200%; pointer-events: none; z-index: 300; opacity: .11; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0%,100%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-1%)} }

/* Secciones oscuras con grano fuerte (como las stories) */
.dark { background: var(--forest); color: #fff; position: relative; isolation: isolate; }
.dark::before { content: ""; position: absolute; inset: 0; background: var(--noise); background-size: 200px; opacity: .5; mix-blend-mode: overlay; pointer-events: none; z-index: -1; }
.dark::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.06), transparent 60%), radial-gradient(ellipse at 80% 90%, rgba(0,0,0,.25), transparent 60%); pointer-events: none; z-index: -1; }
.dark h1, .dark h2, .dark h3 { color: var(--lime); }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--forest-2); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.dark .kicker { color: var(--lime); }
.big { font-size: clamp(54px, 9.4vw, 150px); }
.h2 { font-size: clamp(42px, 6.4vw, 104px); }
.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--ink-2); max-width: 36ch; }
.dark .lead { color: #e6efe9; }
.strong-lead { font-weight: 700; font-size: clamp(20px, 2vw, 28px); letter-spacing: -.03em; line-height: 1.12; color: #fff; max-width: 22ch; }

/* Botones */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; background: var(--forest); color: var(--lime); font-weight: 700; font-size: 15px; isolation: isolate; transition: color .35s var(--ease), transform .35s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--forest-3); border-radius: inherit; transform: translateY(101%); transition: transform .45s var(--ease); z-index: -1; }
.btn:hover::before { transform: none; }
.btn:active { transform: scale(.97); }
.btn-lime { background: var(--lime); color: var(--forest); }
.btn-lime::before { background: var(--cream); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost::before { background: var(--lime); }
.btn-ghost:hover { color: var(--forest); }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* Nav */
.nav { position: fixed; inset: 14px var(--pad) auto; z-index: 100; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 10px 10px 22px; border-radius: 999px; color: var(--lime); transition: background .4s, box-shadow .4s, transform .5s var(--ease); }
.nav.solid { background: rgba(23, 61, 51, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 6px 30px rgba(0,0,0,.15); }
.nav.hide { transform: translateY(-130%); }
.nav .logo img { height: 32px; width: auto; }
.nav-links { display: flex; gap: 30px; font-size: 15px; font-weight: 600; }
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav-links a:hover::after, .nav-links a.on::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { padding: 11px 20px; font-size: 14px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--lime); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--forest); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 24px; }
.menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }
.mmenu { position: fixed; inset: 0; z-index: 90; background: var(--forest); color: var(--lime); display: flex; flex-direction: column; justify-content: center; padding: 100px var(--pad) 40px; clip-path: circle(0 at calc(100% - 44px) 40px); transition: clip-path .7s var(--ease); }
.mmenu::before { content: ""; position: absolute; inset: 0; background: var(--noise); background-size: 200px; opacity: .5; mix-blend-mode: overlay; pointer-events: none; }
.menu-open .mmenu { clip-path: circle(150% at calc(100% - 44px) 40px); }
.mmenu a { font-family: var(--display); font-size: clamp(40px, 12vw, 64px); font-weight: 800; text-transform: uppercase; letter-spacing: -.035em; line-height: 1.02; position: relative; }
.mmenu a.small { font-family: var(--font); font-size: 16px; font-weight: 500; text-transform: none; letter-spacing: 0; color: #cfe0d6; margin-top: 30px; }

/* Botón flotante WhatsApp */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 95; width: 58px; height: 58px; border-radius: 50%; background: var(--lime); color: var(--forest); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(23,61,51,.35); transform: scale(0); transition: transform .5s var(--ease); }
.fab.on { transform: scale(1); }
.fab svg { width: 28px; height: 28px; }
.fab::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(211,239,178,.6); animation: ping 2.6s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 16px rgba(211,239,178,0); } 100% { box-shadow: 0 0 0 0 rgba(211,239,178,0); } }

/* Reveal */
.words .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em 0 .06em; margin: -.04em 0 -.06em; }
.words .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 70ms); }
.words.in .w > span { transform: none; }
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

/* Pastilla "Hoy" */
.today { display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--lime); color: var(--forest); font-size: 14px; font-weight: 700; transition: transform .3s var(--ease); }
.today:hover { transform: translateY(-2px); }
.today .dot { width: 28px; height: 28px; border-radius: 50%; background: var(--forest); color: var(--lime); display: grid; place-items: center; font-size: 13px; font-weight: 800; position: relative; }
.today .dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--forest); opacity: .4; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(.8); opacity: .6; } 100% { transform: scale(1.4); opacity: 0; } }

/* ── HERO (bosque + franja de foto) ── */
.hero { height: 100svh; min-height: 540px; display: flex; align-items: center; padding: 84px 0 48px; overflow: hidden; }
.hero h1.big { font-size: clamp(44px, min(9.4vw, calc((100svh - 360px) / 3.6)), 150px); }
.hero .wrap { position: relative; width: 100%; }
.hero-strip { position: absolute; left: 50%; top: 50%; width: clamp(240px, 30vw, 440px); height: min(calc(100svh - 150px), 760px); transform: translate(-10%, -50%); overflow: hidden; }
.hero-strip img { width: 100%; height: 118%; object-fit: cover; transform: translateY(var(--py, 0)) scale(var(--ps, 1.06)); will-change: transform; }
.hero-strip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,61,51,.1), rgba(23,61,51,.35)); }
.hero-strip::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--noise); background-size: 200px; opacity: .45; mix-blend-mode: overlay; pointer-events: none; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { max-width: 9ch; text-shadow: 0 4px 40px rgba(0,0,0,.25); }
.hero .strong-lead { margin: clamp(16px, 3.4svh, 34px) 0 clamp(14px, 3svh, 30px); }
.hero-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-logo { position: absolute; right: var(--pad); bottom: 0; width: clamp(110px, min(13vw, 18svh), 190px); z-index: 2; }
.hero-foot { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #cfe0d6; }

/* ── SOMOS ─────────────────────────── */
.somos { padding: clamp(110px, 12vw, 180px) 0; text-align: center; overflow: hidden; }
.somos h2 { max-width: 13ch; margin: 0 auto 28px; }
.somos .kicker { justify-content: center; }
.somos .lead { margin: 0 auto 36px; }
.hug { position: relative; height: clamp(320px, 40vw, 560px); margin-top: clamp(50px, 6vw, 90px); }
.hug img { position: absolute; top: 50%; border-radius: var(--r); object-fit: cover; box-shadow: 0 30px 60px -30px rgba(0,0,0,.4); will-change: transform; }
.hug .a { left: 50%; width: 24%; height: 78%; transform: translate(calc(-50% - 105% * var(--spread, 1)), -50%) rotate(calc(-6deg * var(--spread, 1))); }
.hug .b { left: 50%; width: 30%; height: 100%; transform: translate(-50%, -50%); z-index: 2; }
.hug .c { left: 50%; width: 24%; height: 78%; transform: translate(calc(-50% + 105% * var(--spread, 1)), -50%) rotate(calc(6deg * var(--spread, 1))); }

/* ── MENSAJES (tipo stories) ───────── */
.stories { padding: 0 0 clamp(110px, 12vw, 170px); }
.stories-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.story { position: relative; aspect-ratio: 4 / 5.4; border-radius: 18px; overflow: hidden; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: space-between; color: var(--lime); isolation: isolate; }
.story > img.bg { position: absolute; inset: -6%; width: 112%; height: 112%; object-fit: cover; z-index: -2; transform: translateY(var(--sy, 0)); }
.story::before { content: ""; position: absolute; inset: 0; background: var(--noise); background-size: 200px; opacity: .55; mix-blend-mode: overlay; z-index: -1; }
.story.forest { background: var(--forest); }
.story p { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -.03em; line-height: .9; font-size: clamp(40px, 4.6vw, 72px); margin-top: 18%; }
.story img.mark { width: 42%; align-self: center; }

/* ── CASAS (home) ──────────────────── */
.casas { border-radius: clamp(28px, 4vw, 48px); margin: 0 clamp(8px, 1.4vw, 20px); padding: clamp(80px, 9vw, 130px) 0; overflow: hidden; }
.casas-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.casas .lead { margin: 26px 0 34px; }
.hoy { margin-bottom: 34px; }
.hoy-title { font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; color: var(--lime); }
.hoy-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.hoy-list a { background: var(--cream); color: var(--forest); border-radius: 14px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; transition: transform .3s var(--ease), background .3s; }
.hoy-list a:hover { transform: translateY(-3px); background: #fff; }
.hoy-list span { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 15px; letter-spacing: -.01em; line-height: 1.1; }
.hoy-list b { font-weight: 700; font-size: 14px; white-space: nowrap; }
.casas-photos { position: relative; height: clamp(380px, 38vw, 540px); }
.casas-photos img { position: absolute; border-radius: var(--r); object-fit: cover; }
.casas-photos .p1 { width: 62%; height: 78%; left: 0; top: 0; transform: rotate(-3deg) translateY(var(--y1, 0)); }
.casas-photos .p2 { width: 52%; height: 66%; right: 0; bottom: 0; transform: rotate(4deg) translateY(var(--y2, 0)); }
.casas-photos .tag { position: absolute; left: 8%; bottom: 6%; z-index: 2; background: var(--cream); color: var(--forest); border-radius: 12px; padding: 10px 18px; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(22px, 2.4vw, 34px); letter-spacing: -.02em; transform: rotate(-3deg); box-shadow: 0 16px 40px rgba(0,0,0,.25); }

/* ── MINISTERIOS ───────────────────── */
.mins { padding: clamp(110px, 12vw, 170px) 0 clamp(90px, 10vw, 140px); }
.mins-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); padding: 0 var(--pad) 20px; scrollbar-width: none; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail::before, .rail::after { content: ""; flex: 0 0 max(0px, calc((100vw - 1320px) / 2)); }
.mcard { flex: 0 0 clamp(260px, 26vw, 360px); scroll-snap-align: start; border-radius: var(--r); overflow: hidden; position: relative; aspect-ratio: 3 / 4; color: #fff; }
.mcard img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transform: scale(1.04); transition: filter .7s var(--ease), transform .9s var(--ease); }
.mcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(15,43,36,.85)); }
.mcard:hover img, .mcard:focus-visible img { filter: none; transform: scale(1); }
.mcard-body { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2; }
.mcard-body small { display: block; font-size: 13px; font-weight: 600; opacity: .9; margin-bottom: 6px; }
.mcard-body h3 { font-size: 34px; color: var(--lime); }
.mcard-tag { position: absolute; top: 16px; left: 16px; z-index: 2; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px rgba(255,255,255,.35); }
.rail-nav { display: flex; gap: 10px; }
.rail-nav button { width: 52px; height: 52px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--forest); display: grid; place-items: center; transition: background .3s, color .3s; }
.rail-nav button:hover { background: var(--forest); color: var(--lime); }

/* ── REUNIONES ─────────────────────── */
.reu { padding: 0 0 clamp(110px, 12vw, 170px); }
.reu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.reu-photo { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; }
.reu-photo img { width: 100%; height: 115%; object-fit: cover; transform: translateY(var(--py, 0)); }
.days { margin-top: 40px; border-top: 2px solid var(--forest); }
.days li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; transition: padding .4s var(--ease); }
.days li:hover { padding-left: 10px; }
.days b { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 22px; letter-spacing: -.02em; }
.days span { color: var(--ink-2); }
.days li.today-row b::after { content: "Hoy"; margin-left: 10px; font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: .08em; background: var(--lime); color: var(--forest); padding: 3px 8px; border-radius: 999px; vertical-align: middle; }

/* ── VISITANOS ─────────────────────── */
.visit { position: relative; margin: 0 clamp(8px, 1.4vw, 20px); border-radius: clamp(28px, 4vw, 48px); overflow: hidden; min-height: clamp(560px, 70vw, 820px); display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.visit > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; z-index: -2; }
.visit::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,43,36,0) 30%, rgba(15,43,36,.85)); z-index: -1; }
.visit .wrap { width: 100%; padding-bottom: clamp(40px, 6vw, 80px); display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }
.visit h2 { max-width: 9ch; color: var(--lime); }
.visit p { opacity: .92; margin-top: 18px; font-size: 18px; }
.visit .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.visit .btn-ghost { color: #fff; }

/* ── FOOTER ────────────────────────── */
.foot { padding: 80px 0 40px; margin-top: clamp(80px, 9vw, 120px); }
.foot-grid { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }
.foot img { height: 84px; width: auto; }
.foot nav { display: flex; gap: 26px; flex-wrap: wrap; font-weight: 600; color: #e6efe9; }
.foot nav a:hover { color: var(--lime); }
.foot .huge { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -.04em; line-height: .85; color: var(--lime); font-size: clamp(56px, 11vw, 180px); margin-bottom: 60px; }
.foot small { display: block; margin-top: 40px; color: #b9cdc3; font-size: 13px; }

/* ── PÁGINA CASAS ──────────────────── */
.cr-hero { padding: 150px 0 70px; }
.cr-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.cr-hero h1 { max-width: 10ch; }
.cr-hero h1 em { font-style: normal; color: #fff; }
.cr-hero .house { width: clamp(150px, 16vw, 220px); color: var(--lime); }
.cr-hero .sub { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.app { display: grid; grid-template-columns: minmax(0, 1fr) 430px; height: calc(100svh - 110px); min-height: 560px; margin: clamp(-40px, -3vw, -24px) clamp(8px, 1.4vw, 20px) 0; border-radius: clamp(24px, 3vw, 36px); overflow: hidden; background: var(--paper); box-shadow: 0 30px 80px -40px rgba(0,0,0,.4); isolation: isolate; position: relative; z-index: 1; }
#mapCasas { height: 100%; min-height: 380px; background: #e9e5de; position: relative; z-index: 0; }
.tiles-soft { filter: saturate(.55) sepia(.12) brightness(1.02); }
.panel { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--line); }
.panel-head { padding: 22px 22px 14px; }
.panel-head h2 { font-size: 30px; margin-bottom: 14px; color: var(--forest); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; box-shadow: inset 0 0 0 1px var(--line); transition: background .25s, color .25s, box-shadow .25s; }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--forest); }
.chip[aria-pressed="true"] { background: var(--forest); color: var(--lime); box-shadow: none; }
.chip .n { opacity: .6; margin-left: 4px; font-weight: 500; }
.near { margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--forest-2); display: inline-flex; align-items: center; gap: 8px; }
.near svg { width: 16px; height: 16px; }
.list { flex: 1; overflow-y: auto; padding: 6px 14px 20px; scrollbar-width: thin; }
.casa { border-radius: 16px; padding: 16px; display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; cursor: pointer; transition: background .25s; }
.casa:hover { background: var(--cream); }
.casa.active { background: #eef6e4; }
.casa h4 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 20px; letter-spacing: -.02em; line-height: 1; }
.casa .t { font-size: 14px; font-weight: 700; color: var(--forest-2); white-space: nowrap; }
.casa .m { grid-column: 1 / -1; justify-self: start; background: var(--lime); color: var(--forest); border-radius: 8px; padding: 3px 10px; font-size: 14px; font-weight: 600; }
.casa .acts { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 8px; }
.casa .acts a, .casa .acts button { font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 999px; background: var(--forest); color: var(--lime); }
.casa .acts button { background: transparent; color: var(--forest); box-shadow: inset 0 0 0 1px var(--line); }
.casa .acts button:hover { box-shadow: inset 0 0 0 1.5px var(--forest); }
.empty { padding: 30px 16px; color: var(--ink-2); }
.cr-info { padding: clamp(100px, 11vw, 150px) 0 0; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 50px; }
.steps3 li { border-radius: 18px; padding: 32px; min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; color: var(--lime); }
.steps3 b { font-family: var(--display); font-size: 64px; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.steps3 p { font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; color: #fff; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); background: var(--forest); color: var(--lime); padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease); z-index: 200; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Pines */
.pin { width: 40px !important; height: 40px !important; }
.pin-in { width: 40px; height: 40px; border-radius: 50% 50% 50% 6px; transform: rotate(-45deg); background: var(--forest); color: var(--lime); display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0,0,0,.25); transition: transform .35s var(--ease), background .3s, color .3s; }
.pin-in svg { width: 18px; height: 18px; transform: rotate(45deg); }
.pin.today .pin-in { background: var(--lime); color: var(--forest); box-shadow: 0 0 0 3px var(--forest), 0 6px 16px rgba(0,0,0,.25); }
.pin.active .pin-in { transform: rotate(-45deg) scale(1.25); background: var(--forest-3); color: #fff; }
.pin-templo .pin-in { background: var(--forest-3); color: var(--lime); border-radius: 12px; transform: none; }
.pin-templo .pin-in svg { transform: none; }
.leaflet-container { font-family: var(--font); }
.leaflet-popup-content-wrapper { border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.18); }
.leaflet-popup-content { margin: 16px 18px; font-size: 14px; line-height: 1.45; color: var(--forest); }
.leaflet-popup-content strong { display: block; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 18px; letter-spacing: -.02em; }
.leaflet-popup-content a { display: inline-block; margin-top: 10px; background: var(--forest); color: var(--lime) !important; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.leaflet-control-zoom { border: 0 !important; box-shadow: 0 4px 16px rgba(0,0,0,.12) !important; border-radius: 14px !important; overflow: hidden; }
.me-dot { width: 16px; height: 16px; border-radius: 50%; background: #2f6fd6; border: 3px solid #fff; box-shadow: 0 0 0 7px rgba(47,111,214,.22); }

/* ── Responsive ────────────────────── */
@media (max-width: 920px) {
  .nav-links, .nav .btn { display: none; }
  .burger { display: block; }
  .nav { padding: 8px 8px 8px 18px; }
  .hero { height: 100svh; min-height: 520px; padding: 84px 0 24px; align-items: flex-start; }
  .hero .wrap { position: static; }
  .hero h1.big { font-size: clamp(40px, min(14vw, 7.6svh), 72px); }
  .hero-strip { left: auto; top: auto; right: 0; bottom: 0; transform: none; width: 66%; height: 40svh; }
  .hero-strip::after { background: linear-gradient(180deg, rgba(23,61,51,.55), rgba(23,61,51,.15) 40%, rgba(23,61,51,.35)); }
  .hero .strong-lead { font-size: 18px; }
  .hero-logo { left: var(--pad); right: auto; bottom: 22px; width: 92px; }
  .hero-foot { display: none; }
  .casas-grid, .reu-grid, .cr-hero-grid { grid-template-columns: 1fr; }
  .hug { height: 92vw; max-height: 520px; }
  .hug .a, .hug .c { width: 40%; height: 62%; }
  .hug .b { width: 54%; height: 88%; }
  .stories-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 10px; scrollbar-width: none; }
  .stories-row::-webkit-scrollbar { display: none; }
  .story { flex: 0 0 76%; scroll-snap-align: start; }
  .story p { font-size: 48px; }
  .casas-photos { height: 92vw; max-height: 480px; }
  .days li { grid-template-columns: 1fr; gap: 2px; }
  .reu-photo { aspect-ratio: 1; order: -1; }
  .cr-hero .house { display: none; }
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: 46svh auto; height: auto; margin-top: 0; }
  .panel { border-left: 0; border-top: 1px solid var(--line); }
  .list { overflow: visible; }
  .steps3 { grid-template-columns: 1fr; }
  .steps3 li { min-height: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .words .w > span { transform: none; }
  body { opacity: 1; }
}

/* ── PÁGINAS NOSOTROS / MINISTERIOS ── */
.sec { padding: clamp(100px, 11vw, 160px) 0; }
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.prose p + p { margin-top: 18px; }
.prose p:not(.lead):not(.namebox) { color: var(--ink-2); max-width: 46ch; }
.namebox { display: inline-block; background: var(--cream); color: var(--forest); border-radius: 12px; padding: 10px 20px; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(20px, 2vw, 30px); letter-spacing: -.02em; line-height: 1.1; margin-top: 26px; box-shadow: 0 0 0 1px var(--line); }
.dark .namebox { box-shadow: none; }
.big-note { display: block; max-width: 30ch; margin-top: 50px; font-size: clamp(22px, 2.6vw, 38px); }

.verse { padding: clamp(110px, 12vw, 180px) 0; overflow: hidden; }
.verse-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; z-index: -2; }
.verse blockquote { max-width: 18ch; margin-bottom: 36px; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -.035em; line-height: .9; color: var(--lime); font-size: clamp(38px, 5.2vw, 84px); }

.values { margin-top: 50px; }
.values .story p { margin-top: 0; }
.values .story span { color: #fff; font-size: 17px; font-weight: 600; line-height: 1.35; max-width: 26ch; }

.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mv > div { background: var(--paper); border-radius: 18px; padding: clamp(28px, 3.5vw, 48px); box-shadow: 0 0 0 1px var(--line); }
.mv-text { font-size: clamp(20px, 1.9vw, 26px); letter-spacing: -.02em; line-height: 1.3; }
.mv-text b { color: var(--forest-2); }

.pastores { border-radius: clamp(28px, 4vw, 48px); margin: 0 clamp(8px, 1.4vw, 20px); }
.pastores .lead + .lead { margin-top: 16px; }
.pastores .btn { margin-top: 30px; }
.pastor-photo { position: relative; }
.pastor-photo img { width: 100%; aspect-ratio: 447 / 520; object-fit: cover; border-radius: var(--r); filter: saturate(.9); }
.pastor-photo .namebox { position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%) rotate(-2deg); white-space: nowrap; font-size: clamp(26px, 3vw, 44px); box-shadow: 0 16px 40px rgba(0,0,0,.3); }

.valientes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 50px; }
.valientes li { background: var(--forest); color: var(--lime); border-radius: 18px; padding: 26px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; isolation: isolate; transition: transform .4s var(--ease); }
.valientes li::before { content: ""; position: absolute; inset: 0; background: var(--noise); background-size: 200px; opacity: .5; mix-blend-mode: overlay; z-index: -1; }
.valientes li:hover { transform: translateY(-6px); }
.valientes b { font-family: var(--display); font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -.05em; }
.valientes span { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 24px; letter-spacing: -.02em; }

.min-hero .hero-copy { max-width: 760px; }
.min-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; max-width: 620px; }
.min-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: rgba(211,239,178,.12); color: var(--lime); font-weight: 600; font-size: 14px; transition: background .3s, color .3s; }
.min-nav a:hover { background: var(--lime); color: var(--forest); }
.min-nav i { width: 9px; height: 9px; border-radius: 50%; }
.min { padding: clamp(100px, 11vw, 160px) 0; scroll-margin-top: 0; overflow: hidden; }
.min-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.min:nth-child(even) .min-media { order: 2; }
.min-copy .h2 { margin-bottom: 4px; }
.min-copy .lead { margin: 26px 0 34px; max-width: 46ch; }
.min-media { position: relative; height: clamp(420px, 44vw, 620px); }
.min-media img { position: absolute; object-fit: cover; border-radius: var(--r); }
.min-media .m1 { left: 0; top: 0; width: 72%; height: 82%; }
.min-media .m2 { right: 0; bottom: 0; width: 46%; height: 52%; box-shadow: 0 24px 50px -20px rgba(0,0,0,.45); border: 6px solid var(--cream); }
.min.dark .min-media .m2 { border-color: var(--forest); }
.min-dot { position: absolute; left: 18px; top: 18px; width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 5px rgba(255,255,255,.4); }

@media (max-width: 920px) {
  .split2, .mv, .min-grid { grid-template-columns: 1fr; }
  .values.stories-row { margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); }
  .valientes { grid-template-columns: 1fr 1fr; }
  .valientes li { min-height: 160px; }
  .min:nth-child(even) .min-media { order: 0; }
  .min-media { height: 110vw; max-height: 520px; }
  .pastor-photo { margin-bottom: 30px; }
}

/* ── AGENDA SEMANAL (ministerios + reuniones) ── */
.agenda { padding: clamp(90px, 9vw, 130px) 0; }
.agenda-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: 36px; }
.agenda-head .lead { max-width: 32ch; }
.week { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 10px; align-items: start; }
.day { display: flex; flex-direction: column; gap: 10px; }
.day.multi { grid-column: span 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; }
.day.multi .day-name { grid-column: 1 / -1; }
.day-name { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(16px, 1.4vw, 22px); letter-spacing: -.02em; padding: 12px 0 10px; border-top: 2px solid var(--forest); display: flex; align-items: center; gap: 8px; }
.day-name em { font-family: var(--font); font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--lime); color: var(--forest); padding: 3px 8px; border-radius: 999px; }
.day.is-today .day-name { border-top-color: var(--lime-2); }
.ev { position: relative; display: flex; flex-direction: column; gap: 4px; background: var(--paper); border-radius: 14px; padding: 14px 12px 14px 17px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.ev::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
.ev:hover { transform: translateY(-3px); box-shadow: 0 0 0 1.5px var(--forest), 0 14px 30px -18px rgba(0,0,0,.35); }
.ev-time { font-size: 13px; font-weight: 700; color: var(--forest-2); }
.ev-name { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(14px, 1.2vw, 19px); line-height: 1; letter-spacing: -.02em; overflow-wrap: anywhere; hyphens: auto; }
.ev-for { font-size: 13px; color: var(--ink-2); }
.ev.gen { background: var(--forest); color: var(--lime); box-shadow: none; isolation: isolate; padding: 16px 14px; }
.ev.gen::before { width: auto; inset: 0; background: var(--noise); background-size: 200px; opacity: .5; mix-blend-mode: overlay; z-index: -1; }
.ev.gen .ev-time { color: var(--lime-2); }
.ev.gen .ev-name { font-size: clamp(16px, 1.45vw, 24px); }
.ev.gen .ev-for { color: #dfeadf; }
.week-casas { margin-top: 14px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 20px 24px; border-radius: 14px; background: var(--lime); color: var(--forest); transition: transform .35s var(--ease); }
.week-casas:hover { transform: translateY(-3px); }
.wc-day { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.wc-name { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.02em; flex: 1; }
.wc-go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.wc-go svg { width: 18px; height: 18px; }

@media (max-width: 1100px) {
  .week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .week { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .day, .day.multi { grid-column: auto; display: flex; flex-direction: column; gap: 8px; position: relative; padding: 14px 0 14px 98px; border-top: 2px solid var(--forest); min-height: 64px; }
  .day-name { position: absolute; left: 0; top: 14px; width: 90px; border-top: 0; padding: 0; font-size: 17px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .ev { padding: 11px 12px 11px 16px; }
  .ev.gen { padding: 13px 14px; }
  .ev-name { font-size: 17px; }
  .ev.gen .ev-name { font-size: 19px; }
  .week-casas { flex-direction: column; align-items: flex-start; gap: 6px; }
}
}

/* ── MARQUEE DE FOTOS (se mueve con el scroll) ── */
.pmarquee { margin-top: clamp(50px, 6vw, 90px); display: grid; gap: 14px; overflow: hidden; }
.prow { display: flex; gap: 14px; width: max-content; will-change: transform; }
.prow img { height: clamp(200px, 24vw, 360px); aspect-ratio: 4 / 5; flex-shrink: 0; object-fit: cover; border-radius: 18px; background: var(--line); transition: transform .6s var(--ease); }
.prow img:nth-child(3n + 2) { aspect-ratio: 5 / 4; }
.prow img:hover { transform: scale(.97); }
@media (max-width: 720px) {
  .pmarquee { gap: 10px; }
  .prow { gap: 10px; }
  .prow img { height: 190px; border-radius: 14px; }
}
.mv-title { font-size: clamp(28px, 2.6vw, 40px); margin-bottom: 18px; color: var(--forest); }

/* ── HERO CON MARQUEE LENTO ── */
.hero.hero-mq { flex-direction: column; align-items: stretch; justify-content: space-between; gap: clamp(22px, 3.5svh, 44px); padding: clamp(96px, 13svh, 120px) 0 clamp(18px, 3svh, 32px); }
.hero-mq .hero-copy { width: 100%; }
.hero-mq h1.big { max-width: 16ch; font-size: clamp(42px, min(7.6vw, calc((62svh - 260px) / 1.85)), 124px); }
.hero-sub { display: flex; justify-content: space-between; align-items: end; gap: 20px 40px; flex-wrap: wrap; margin-top: clamp(14px, 2.6svh, 28px); }
.hero-mq .strong-lead { margin: 0; max-width: 28ch; }
.hero-marquee { position: relative; overflow: hidden; flex-shrink: 0; height: clamp(170px, 36svh, 380px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.hm-track { display: flex; gap: 14px; height: 100%; width: max-content; animation: hm-drift 140s linear infinite; will-change: transform; }
.hero-marquee:hover .hm-track { animation-play-state: paused; }
.hm-track figure { position: relative; height: 100%; aspect-ratio: 4 / 5; margin: 0; overflow: hidden; border-radius: 18px; flex-shrink: 0; background: var(--forest-2); }
.hm-track figure:nth-child(3n + 2) { aspect-ratio: 3 / 2; }
.hm-track figure:nth-child(4n + 3) { aspect-ratio: 1 / 1; }
.hm-track img { width: 100%; height: 100%; object-fit: cover; animation: hm-zoom 16s ease-in-out infinite alternate; }
.hm-track figure:nth-child(even) img { animation-delay: -8s; }
.hm-track figure::after { content: ""; position: absolute; inset: 0; background: var(--noise); background-size: 200px; opacity: .35; mix-blend-mode: overlay; pointer-events: none; }
@keyframes hm-drift { to { transform: translate3d(-50%, 0, 0); } }
@keyframes hm-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@media (max-width: 920px) {
  .hero.hero-mq { padding: 92px 0 18px; align-items: stretch; }
  .hero-mq h1.big { font-size: clamp(40px, min(13vw, 7.4svh), 72px); max-width: 10ch; }
  .hero-marquee { height: clamp(150px, 30svh, 300px); }
  .hm-track { gap: 10px; animation-duration: 100s; }
  .hm-track figure { border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) { .hm-track, .hm-track img { animation: none !important; } }

/* ── GALERÍA QUE SE EXPANDE CON EL SCROLL ── */
.somos { overflow: clip; }
.burst { position: relative; height: 230svh; margin-top: clamp(30px, 4vw, 60px); }
.burst-stage { position: sticky; top: 0; height: 100svh; --p: 0; --k: 1; }
.burst-stage figure { position: absolute; left: 50%; top: 50%; margin: 0; width: calc(var(--w) * var(--k) * 1vw); aspect-ratio: 4 / 5; border-radius: clamp(12px, 1.4vw, 20px); overflow: hidden; box-shadow: 0 24px 50px -22px rgba(15,43,36,.55);
  transform: translate(-50%, -50%) translate(calc(var(--x) * var(--p) * 1vw), calc(var(--y) * var(--p) * 1svh)) scale(calc(var(--s0, .3) + (1 - var(--s0, .3)) * var(--p))) rotate(calc(var(--r) * (1 - var(--p)))); will-change: transform; }
.burst-stage figure:last-child { aspect-ratio: 5 / 4; }
.burst-stage img { width: 100%; height: 100%; object-fit: cover; }
.burst-stage figure::after { content: ""; position: absolute; inset: 0; background: var(--noise); background-size: 200px; opacity: .3; mix-blend-mode: overlay; pointer-events: none; }
@media (max-width: 720px) {
  .burst { height: 200svh; }
  .burst-stage { --k: 1.75; }
  .burst-stage figure { --x-m: 1; }
}
@media (prefers-reduced-motion: reduce) { .burst { height: auto; } .burst-stage { position: relative; height: 100svh; --p: 1 !important; } }

/* ── CASAS REFUGIO: columnas de fotos en movimiento ── */
.casas-motion { position: relative; height: clamp(440px, 46vw, 600px); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; overflow: hidden; border-radius: 22px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); }
.cm-col { overflow: hidden; }
.cm-track { display: flex; flex-direction: column; gap: 14px; animation: cm-up 46s linear infinite; will-change: transform; }
.cm-down .cm-track { animation-name: cm-down; animation-duration: 52s; }
.casas-motion:hover .cm-track { animation-play-state: paused; }
.cm-track figure { margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--forest-2); position: relative; transform: rotate(var(--rot, 0deg)); }
.cm-track figure:nth-child(3n) { aspect-ratio: 1 / 1; }
.cm-track figure:nth-child(4n + 1) { --rot: -1.5deg; }
.cm-track figure:nth-child(4n + 3) { --rot: 1.5deg; }
.cm-track img { width: 100%; height: 100%; object-fit: cover; }
.cm-track figure::after { content: ""; position: absolute; inset: 0; background: var(--noise); background-size: 200px; opacity: .3; mix-blend-mode: overlay; }
@keyframes cm-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 7px)); } }
@keyframes cm-down { from { transform: translateY(calc(-50% - 7px)); } to { transform: translateY(0); } }
.cm-tag { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-3deg); z-index: 3; white-space: nowrap; text-align: center; line-height: 1.05; font-size: clamp(22px, 2.4vw, 34px); background: var(--cream); color: var(--forest); border-radius: 12px; padding: 12px 20px; font-family: var(--display); text-transform: uppercase; letter-spacing: -.02em; box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.cm-tag.in { transform: translate(-50%, -50%) rotate(-3deg); }
@media (max-width: 920px) { .casas-motion { height: 420px; } .cm-track, .cm-track figure { border-radius: 12px; } }
@media (prefers-reduced-motion: reduce) { .cm-track { animation: none !important; } }

/* ── CASAS REFUGIO: fotos chiquitas dispersas que flotan ── */
.casas-scatter { position: relative; width: 100%; max-width: 560px; justify-self: center; aspect-ratio: 1080 / 1350; }
.casas-scatter figure { position: absolute; margin: 0; padding: 0; }
.casas-scatter figure img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 6px; box-shadow: 0 14px 30px -14px rgba(0,0,0,.6); animation: cs-float var(--dur, 10s) ease-in-out var(--dl, 0s) infinite alternate; transition: transform .5s var(--ease); }
.casas-scatter figure:hover img { transform: scale(1.08); animation-play-state: paused; }
@keyframes cs-float { from { transform: translate3d(0, -5px, 0) rotate(-.6deg); } to { transform: translate3d(0, 6px, 0) rotate(.6deg); } }
@media (max-width: 920px) { .casas-scatter { max-width: 100%; } }
@media (prefers-reduced-motion: reduce) { .casas-scatter figure img { animation: none !important; } }

/* ── CASAS: que la sección entre en el viewport ── */
.casas { padding: clamp(48px, 8svh, 100px) 0; }
.casas .h2 { font-size: clamp(36px, min(5.6vw, 8.4svh), 96px); }
.casas .lead { margin: clamp(12px, 2.2svh, 24px) 0 clamp(16px, 2.8svh, 30px); }
.casas .hoy { margin-bottom: clamp(16px, 2.8svh, 30px); }
.casas-scatter { height: min(calc(100svh - 2 * clamp(48px, 8svh, 100px)), 640px); width: auto; max-width: 100%; }
@media (max-width: 920px) {
  .casas { padding: clamp(40px, 7svh, 72px) 0; }
  .casas-grid { position: relative; }
  .casas-grid > div:first-child { position: relative; z-index: 1; }
  .casas-scatter { position: absolute; inset: calc(clamp(40px, 7svh, 72px) * -1) 0; width: 100%; height: auto; max-width: none; aspect-ratio: auto; opacity: .22; pointer-events: none; z-index: 0; }
  .casas .h2 { font-size: clamp(34px, min(10vw, 6.4svh), 60px); }
  .casas .lead { font-size: 16px; }
  .hoy-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hoy-list a { padding: 10px 12px; flex-direction: column; align-items: flex-start; gap: 2px; border-radius: 12px; }
  .hoy-list span { font-size: 13px; }
  .hoy-list b { font-size: 12px; }
}
@media (min-width: 921px) and (max-width: 1180px) {
  .casas .h2 { font-size: clamp(34px, min(4.8vw, 7.6svh), 64px); }
  .casas .lead { font-size: 16px; }
  .hoy-list a { padding: 11px 14px; }
}

/* ── PÁGINA CASAS: mapa ordenado y separado del hero ── */
.cr-hero { padding-bottom: clamp(70px, 9vw, 110px); }
.map-sec { padding: clamp(70px, 8vw, 110px) 0 0; }
.map-head { display: flex; justify-content: space-between; align-items: end; gap: 20px 40px; flex-wrap: wrap; margin-bottom: 24px; }
.map-head .lead { margin-top: 16px; }
.map-sec .near { margin: 0; padding: 12px 18px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--forest); color: var(--forest); gap: 10px; transition: background .3s, color .3s; }
.map-sec .near:hover { background: var(--forest); color: var(--lime); }
.map-sec .chips { flex-wrap: wrap; overflow: visible; margin-bottom: 18px; }
.app { margin: 0 clamp(8px, 1.4vw, 20px); height: min(calc(100svh - 120px), 720px); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(0,0,0,.35); }
.panel { background: var(--paper); }
.list { padding: 10px; }
.casa { padding: 14px 14px 16px; border-radius: 14px; gap: 6px 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
.casa:last-child { border-bottom: 0; }
.casa.active, .casa:hover { border-radius: 14px; border-bottom-color: transparent; }
.casa h4 { font-size: 16px; line-height: 1.1; }
.casa .t { font-size: 13px; }
.casa .m { background: none; padding: 0; font-weight: 500; color: var(--ink-2); font-size: 14px; }
.casa .acts { margin-top: 4px; }
.casa .acts a, .casa .acts button { padding: 7px 14px; font-size: 13px; }

/* Pines simples: círculo con casita */
.pin { width: 38px !important; height: 38px !important; }
.pin-in { width: 38px; height: 38px; border-radius: 50%; transform: none; background: var(--forest); color: var(--lime); border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.28); }
.pin-in svg { width: 17px; height: 17px; transform: none; }
.pin.today .pin-in { background: var(--lime); color: var(--forest); box-shadow: 0 0 0 4px rgba(211,239,178,.45), 0 4px 14px rgba(0,0,0,.28); }
.pin.active .pin-in { transform: scale(1.22); background: var(--forest-3); color: #fff; }
.pin-templo .pin-in { border-radius: 10px; background: var(--forest-3); }

@media (max-width: 920px) {
  .app { height: auto; margin: 0; border-radius: 0; }
  .map-head { align-items: flex-start; }
}

/* ── MAPA + LISTA: a la altura de la pantalla, tarjetas separadas ── */
.map-sec { height: 100svh; min-height: 620px; display: flex; flex-direction: column; padding: clamp(88px, 12svh, 110px) 0 clamp(16px, 3svh, 28px); }
.map-sec .h2 { font-size: clamp(32px, min(4.6vw, 7svh), 72px); }
.map-head { margin-bottom: clamp(10px, 2svh, 20px); flex-shrink: 0; }
.map-head .lead { margin-top: 8px; font-size: clamp(15px, 1.3vw, 18px); }
.map-sec .chips { margin-bottom: clamp(10px, 2svh, 16px); flex-shrink: 0; }
.map-sec .app { flex: 1; min-height: 0; height: auto; margin: 0 auto; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 16px; background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.map-card { position: relative; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 20px 50px -30px rgba(0,0,0,.35); isolation: isolate; min-height: 0; }
.map-card #mapCasas { position: absolute; inset: 0; height: auto; min-height: 0; }
.map-sec .panel { position: relative; display: flex; flex-direction: column; min-height: 0; border: 0; border-radius: 22px; background: var(--forest); padding: 14px 10px 0 14px; isolation: isolate; overflow: hidden; }
.map-sec .panel::before { content: ""; position: absolute; inset: 0; background: var(--noise); background-size: 200px; opacity: .4; mix-blend-mode: overlay; pointer-events: none; z-index: -1; }
.panel-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 2px 6px 12px 2px; color: var(--lime); font-size: 13px; }
.panel-top b { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 16px; letter-spacing: -.01em; }
.scroll-hint { opacity: 0; transition: opacity .3s; font-weight: 600; color: #cfe0d6; }
.panel.has-more .scroll-hint { opacity: 1; }
.map-sec .list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 6px 18px 0; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; scrollbar-color: var(--lime) rgba(255,255,255,.12); }
.map-sec .list::-webkit-scrollbar { width: 6px; }
.map-sec .list::-webkit-scrollbar-track { background: rgba(255,255,255,.1); border-radius: 6px; }
.map-sec .list::-webkit-scrollbar-thumb { background: var(--lime); border-radius: 6px; }
.map-sec .panel::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: linear-gradient(180deg, transparent, var(--forest)); pointer-events: none; opacity: 0; transition: opacity .3s; }
.map-sec .panel.has-more::after { opacity: 1; }
.map-sec .casa { flex-shrink: 0; background: var(--cream); border: 0; border-radius: 16px; padding: 14px 16px; box-shadow: 0 6px 16px -10px rgba(0,0,0,.5); transition: transform .3s var(--ease), background .3s, box-shadow .3s; }
.map-sec .casa:hover { transform: translateY(-2px); background: #fff; border-radius: 16px; }
.map-sec .casa.active { background: var(--lime); border-radius: 16px; box-shadow: 0 0 0 2px var(--lime-2), 0 10px 22px -12px rgba(0,0,0,.6); }
.map-sec .casa .m { color: var(--ink-2); }
.map-sec .casa.active .m { color: var(--forest); }
.map-sec .empty { color: #dfeadf; }

@media (max-width: 920px) {
  .map-sec { height: auto; min-height: 0; padding-bottom: 40px; }
  .map-sec .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: 44svh auto; padding: 0 var(--pad); }
  .map-sec .panel { padding: 14px 10px 0 14px; }
  .map-sec .list { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 0 4px 16px 0; scroll-snap-type: x mandatory; scrollbar-color: var(--lime) rgba(255,255,255,.12); }
  .map-sec .list::-webkit-scrollbar { height: 6px; }
  .map-sec .casa { flex: 0 0 82%; scroll-snap-align: start; }
  .map-sec .panel::after { top: 0; bottom: 0; left: auto; width: 48px; height: auto; background: linear-gradient(90deg, transparent, var(--forest)); }
  .scroll-hint::after { content: ""; }
}
@media (max-width: 920px) {
  .map-sec { height: 100svh; min-height: 600px; padding: 84px 0 14px; }
  .map-sec .h2 { font-size: clamp(30px, 8.4vw, 44px); }
  .map-head { gap: 10px; margin-bottom: 10px; }
  .map-head .lead { font-size: 14px; margin-top: 6px; }
  .map-sec .near { padding: 8px 14px; font-size: 13px; }
  .map-sec .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: 10px; }
  .map-sec .chip { padding: 7px 12px; font-size: 12px; }
  .map-sec .app { flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr) auto; gap: 10px; }
  .map-sec .panel { padding: 10px 8px 0 12px; border-radius: 18px; }
  .panel-top { padding-bottom: 8px; }
  .map-sec .casa { padding: 12px 14px; }
}

/* ── MINISTERIOS: hero con accesos grandes a cada grupo ── */
.hero.min-hero { height: auto; min-height: 100svh; align-items: center; padding: clamp(96px, 13svh, 130px) 0 clamp(28px, 5svh, 56px); }
.min-hero .wrap { display: flex; flex-direction: column; gap: clamp(22px, 4svh, 44px); }
.min-hero-top { display: flex; justify-content: space-between; align-items: end; gap: 16px 40px; flex-wrap: wrap; }
.min-hero h1.big { max-width: 11ch; font-size: clamp(40px, min(6.4vw, 9.5svh), 112px); }
.min-hero .strong-lead { margin: 0; max-width: 24ch; }
.min-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; max-width: none; }
.min-nav a { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; gap: 8px 16px; min-height: clamp(120px, 17svh, 170px); padding: clamp(18px, 2.4svh, 26px) 22px; border-radius: 20px; background: rgba(211,239,178,.07); box-shadow: inset 0 0 0 1.5px rgba(211,239,178,.18); color: var(--lime); font-size: inherit; font-weight: 400; overflow: hidden; isolation: isolate; transition: transform .4s var(--ease), box-shadow .3s, color .3s; }
.min-nav a::before { content: ""; position: absolute; inset: 0; background: var(--c); transform: translateY(101%); transition: transform .5s var(--ease); z-index: -1; }
.min-nav a::after { content: ""; position: absolute; left: 22px; top: 0; width: 44px; height: 5px; border-radius: 0 0 6px 6px; background: var(--c); }
.min-nav a:hover { transform: translateY(-4px); color: var(--forest); box-shadow: none; }
.min-nav a:hover::before { transform: none; }
.mn-name { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -.03em; line-height: .95; font-size: clamp(24px, 2.4vw, 38px); align-self: start; }
.mn-meta { grid-column: 1; align-self: end; font-size: 14px; line-height: 1.35; color: #cfe0d6; transition: color .3s; }
.min-nav a:hover .mn-meta { color: var(--forest); }
.mn-go { grid-column: 2; grid-row: 1 / 3; align-self: end; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--forest); transition: transform .4s var(--ease), background .3s, color .3s; }
.mn-go svg { width: 20px; height: 20px; transform: rotate(90deg); }
.min-nav a:hover .mn-go { background: var(--forest); color: var(--lime); transform: translateY(3px); }
@media (max-width: 920px) {
  .min-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .min-nav a { min-height: 128px; padding: 16px; gap: 6px 10px; border-radius: 16px; }
  .min-nav a::after { left: 16px; width: 34px; }
  .mn-name { font-size: clamp(19px, 5.4vw, 28px); }
  .mn-meta { font-size: 12px; grid-column: 1 / 3; }
  .mn-go { grid-row: 1; width: 34px; height: 34px; align-self: start; }
  .mn-go svg { width: 16px; height: 16px; }
  .min-hero h1.big { font-size: clamp(36px, min(11vw, 7svh), 64px); }
}

/* ── MINISTERIOS: cada sección entra en el viewport ── */
.min { min-height: 100svh; display: flex; align-items: center; padding: clamp(84px, 11svh, 110px) 0 clamp(24px, 4svh, 48px); }
.min .min-grid { width: 100%; }
.min-media { height: min(calc(100svh - clamp(84px, 11svh, 110px) - clamp(24px, 4svh, 48px) - 20px), 620px); }
.min-copy .h2 { font-size: clamp(36px, min(5.4vw, 9svh), 96px); }
.min-copy .namebox { margin-top: clamp(12px, 2svh, 22px); font-size: clamp(16px, min(1.6vw, 2.6svh), 26px); padding: 8px 16px; }
.min-copy .lead { margin: clamp(12px, 2.2svh, 24px) 0 clamp(16px, 2.8svh, 30px); font-size: clamp(15px, min(1.3vw, 2.3svh), 19px); line-height: 1.5; }
@media (max-width: 920px) {
  .min { padding: 80px 0 24px; align-items: flex-start; }
  .min-grid { gap: 16px; }
  .min-media { height: 30svh; max-height: none; }
  .min-media .m2 { width: 40%; height: 58%; border-width: 4px; }
  .min-copy .h2 { font-size: clamp(30px, min(9vw, 5.6svh), 48px); }
  .min-copy .namebox { font-size: 15px; margin-top: 10px; }
  .min-copy .lead { font-size: 14.5px; line-height: 1.45; margin: 12px 0 16px; }
  .min-copy .btn { padding: 12px 20px; font-size: 14px; }
}

/* Separación entre la última sección y la tarjeta final */
#minList + .visit, .min + .visit { margin-top: clamp(16px, 2.4vw, 32px); }
/* Celulares bajos: Ministerios entra en la pantalla */
@media (max-width: 920px) and (max-height: 720px) {
  .hero.min-hero { padding: 78px 0 18px; }
  .min-hero .wrap { gap: 14px; }
  .min-hero h1.big { font-size: clamp(30px, 6.2svh, 44px); }
  .min-hero .strong-lead { font-size: 16px; }
  .min-nav a { min-height: 100px; padding: 12px 14px; }
  .mn-name { font-size: 18px; }
  .min { padding: 74px 0 16px; }
  .min-media { height: 24svh; }
  .min-copy .h2 { font-size: clamp(26px, 5svh, 36px); }
  .min-copy .lead { font-size: 13.5px; line-height: 1.4; margin: 8px 0 12px; }
  .min-copy .namebox { margin-top: 6px; }
}

/* Casas: compilado de fotos (juntas, superpuestas, con giro) */
.casas-scatter { aspect-ratio: 1 / 1.1; }
.casas-scatter figure { transform: rotate(var(--rot, 0deg)); transition: transform .5s var(--ease), z-index 0s; }
.casas-scatter figure img { border: 5px solid var(--cream); border-radius: 8px; box-shadow: 0 18px 34px -14px rgba(0,0,0,.65); }
.casas-scatter figure:hover { transform: rotate(0deg) scale(1.12); z-index: 30 !important; }
.casas-scatter figure:hover img { transform: none; }
/* Escritorio bajo (≤ 760 px de alto): casas más compacto */
@media (min-width: 921px) and (max-height: 760px) {
  .casas { padding: clamp(32px, 6svh, 56px) 0; }
  .casas .h2 { font-size: clamp(32px, min(4.6vw, 7.4svh), 64px); }
  .casas .lead { font-size: 15px; line-height: 1.45; margin: 10px 0 14px; }
  .casas .hoy { margin-bottom: 14px; }
  .hoy-title { margin-bottom: 8px; }
  .hoy-list { gap: 6px; }
  .hoy-list a { padding: 9px 14px; }
  .hoy-list span { font-size: 14px; }
  .casas .btn { padding: 12px 22px; }
  .casas-scatter { height: min(calc(100svh - 2 * clamp(32px, 6svh, 56px)), 600px); }
}

/* ── NOSOTROS: video de fondo en todo el hero ── */
.hero-video { overflow: hidden; }
.hv-bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; z-index: -2; }
.hero-video::after { background: linear-gradient(90deg, rgba(15,43,36,.82) 0%, rgba(15,43,36,.45) 55%, rgba(15,43,36,.25) 100%), linear-gradient(180deg, rgba(15,43,36,.35), transparent 30%, transparent 70%, rgba(15,43,36,.55)); z-index: -1; }
.hero-video .hero-copy { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) { .hv-bg { display: none; } .hero-video { background: var(--forest) url("../assets/video/hero-arboles.jpg") center/cover; } }

/* ── VALORES: fondos sin cortes + íconos ── */
.story > img.bg { max-width: none; }
.values .story { justify-content: flex-start; gap: 0; }
.values .story .v-icon { width: clamp(46px, 4.4vw, 64px); height: auto; color: var(--lime); margin-bottom: auto; }
.values .story p { margin-top: clamp(24px, 3vw, 40px); }
.values .story span { margin-top: 14px; }

/* ══ CASAS: UI tipo Google Maps / buscador ══ */
.gm-sec { height: 100svh; min-height: 620px; display: flex; flex-direction: column; padding: clamp(86px, 12svh, 108px) 0 clamp(14px, 2.6svh, 26px); }
.gm-head { display: flex; justify-content: space-between; align-items: end; gap: 10px 40px; flex-wrap: wrap; margin-bottom: clamp(12px, 2.2svh, 22px); flex-shrink: 0; }
.gm-head .h2 { font-size: clamp(30px, min(4.2vw, 6.6svh), 64px); }
.gm-head .lead { max-width: 40ch; font-size: clamp(14px, 1.2vw, 17px); margin: 0; }
.gm { flex: 1; min-height: 0; width: 100%; display: grid; grid-template-columns: minmax(360px, 46%) minmax(0, 1fr); gap: 14px; }
.gm .map-card { border-radius: 20px; }
.gm-panel { position: relative; display: flex; flex-direction: column; min-height: 0; background: #fff; border-radius: 20px; box-shadow: 0 0 0 1px var(--line), 0 20px 50px -30px rgba(0,0,0,.3); overflow: hidden; padding: 0; isolation: auto; }
.gm-panel::before { display: none; }
.gm-top { padding: 14px 14px 0; border-bottom: 1px solid var(--line); background: #fff; }
.gm-search { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 6px 0 16px; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 4px 14px -6px rgba(0,0,0,.25); }
.gm-search:focus-within { box-shadow: 0 0 0 2px var(--forest), 0 4px 14px -6px rgba(0,0,0,.25); }
.gm-search > svg { width: 20px; height: 20px; color: var(--ink-2); flex-shrink: 0; }
.gm-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 500 16px var(--font); color: var(--ink); }
.gm-search input::placeholder { color: #8a948f; }
.gm-search .near { margin: 0; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--forest); color: var(--lime); box-shadow: none; font-size: 13px; font-weight: 700; gap: 6px; white-space: nowrap; }
.gm-search .near:hover { background: var(--forest-3); color: var(--lime); }
.gm-sec .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 6px; padding: 12px 0 10px; margin: 0; }
.gm-sec .chip { background: #fff; box-shadow: inset 0 0 0 1px var(--line); padding: 7px 14px; font-size: 13px; }
.gm-sec .chip[aria-pressed="true"] { background: #e7f4d9; color: var(--forest); box-shadow: inset 0 0 0 1.5px var(--forest); }
.gm-panel .panel-top { color: var(--ink-2); padding: 0 2px 10px; font-size: 12px; }
.gm-panel .panel-top b { color: var(--forest); font-family: var(--font); text-transform: none; font-weight: 700; font-size: 13px; letter-spacing: 0; }
.gm-panel .scroll-hint { color: var(--ink-2); }
.gm-panel .list { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 0 24px; display: block; scrollbar-width: thin; scrollbar-color: #c9d3cd transparent; }
.gm-panel .list::-webkit-scrollbar { width: 8px; }
.gm-panel .list::-webkit-scrollbar-thumb { background: #c9d3cd; border-radius: 8px; }
.gm-panel::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 48px; background: linear-gradient(180deg, rgba(255,255,255,0), #fff); pointer-events: none; opacity: 0; transition: opacity .3s; }
.gm-panel.has-more::after { opacity: 1; }
/* Resultado */
.gm-panel .res { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 0 14px; padding: 14px 18px 14px 14px; margin: 0; border-radius: 0; background: #fff; box-shadow: none; border-bottom: 1px solid #eef0ec; cursor: pointer; transform: none; transition: background .2s; }
.gm-panel .res:hover, .gm-panel .res.hover { background: #f5f8f2; transform: none; }
.gm-panel .res.active { background: #eaf5df; box-shadow: inset 4px 0 0 var(--forest); }
.res-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: var(--lime); font-weight: 800; font-size: 13px; margin-top: 2px; }
.res-n.hoy { background: var(--lime); color: var(--forest); box-shadow: inset 0 0 0 2px var(--forest); }
.res-body h4 { font-family: var(--font); text-transform: none; font-weight: 700; font-size: 16px; letter-spacing: -.01em; line-height: 1.25; color: var(--ink); }
.res-when { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.res-when b { font-weight: 700; color: var(--ink); }
.res-when b.hoy { color: #2f7d32; }
.res-host { font-size: 14px; color: var(--ink-2); }
.res-acts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.res-acts a, .res-acts button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.res-acts .ra-main { background: var(--forest); color: #fff; }
.res-acts .ra-main svg { width: 15px; height: 15px; }
.res-acts .ra-main:hover { background: var(--forest-3); }
.res-acts .share { background: #fff; color: var(--forest); box-shadow: inset 0 0 0 1px #cfd8d2; }
.res-acts .share:hover { background: #f1f5ef; }
.gm-panel .empty { padding: 24px 18px; color: var(--ink-2); }
/* Pines numerados */
.gm-sec .pin { width: 34px !important; height: 34px !important; }
.gm-sec .pin-in { width: 34px; height: 34px; border-radius: 50%; background: var(--forest); color: var(--lime); border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.3); transform: none; transition: transform .25s var(--ease), background .25s; }
.gm-sec .pin-in b { font: 800 13px var(--font); }
.gm-sec .pin.today .pin-in { background: var(--lime); color: var(--forest); box-shadow: 0 0 0 3px var(--forest), 0 3px 10px rgba(0,0,0,.3); }
.gm-sec .pin.hover .pin-in { transform: scale(1.25); }
.gm-sec .pin.active .pin-in { transform: scale(1.35); background: #e5484d; color: #fff; }
.gm-sec .pin-templo .pin-in { border-radius: 9px; background: var(--forest-3); }
@media (max-width: 920px) {
  .gm-sec { height: auto; min-height: 0; padding-bottom: 30px; }
  .gm { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "map" "list"; gap: 10px; }
  .gm-panel { display: contents; }
  .gm-top { grid-area: top; border: 0; padding: 0; background: none; }
  .gm .map-card { grid-area: map; height: 42svh; min-height: 260px; }
  .gm-panel .list { grid-area: list; background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); max-height: 60svh; }
  .gm-panel::after { display: none; }
  .gm-search .near span { display: none; }
  .gm-search .near { width: 38px; padding: 0; justify-content: center; }
}

/* ══ MINISTERIOS: cada sección con su color + hover con letra blanca ══ */
.min-nav a:hover { color: #fff; }
.min-nav a::before { background: var(--deep, var(--c)); }
.min-nav a:hover .mn-meta { color: rgba(255,255,255,.88); }
.min-nav a:hover .mn-go { background: #fff; color: var(--deep, var(--forest)); }
.min-colored { background: var(--sec); color: #fff; position: relative; isolation: isolate; }
.min-colored::before { content: ""; position: absolute; inset: 0; background: var(--noise); background-size: 200px; opacity: .45; mix-blend-mode: overlay; pointer-events: none; z-index: -1; }
.min-colored .h2 { color: #fff; }
.min-colored .lead { color: rgba(255,255,255,.9); }
.min-colored .namebox { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.min-colored .min-media .m2 { border-color: var(--sec); }
.min-colored .min-dot { background: var(--c); }
.btn-cream { background: var(--cream); color: var(--sec, var(--forest)); }
.btn-cream::before { background: #fff; }
/* Inicio: video de fondo detrás del título y del marquee */
.hero-mq.hero-video::after { background: linear-gradient(180deg, rgba(15,43,36,.55) 0%, rgba(15,43,36,.3) 45%, rgba(15,43,36,.6) 100%); }
.hero-mq.hero-video .hero-marquee { position: relative; z-index: 2; }

/* ══════════ OPTIMIZACIÓN MOBILE ══════════ */
@media (max-width: 720px) {
  /* Inicio · hero: menos hueco, fotos más protagonistas */
  .hero.hero-mq { padding: 88px 0 20px; justify-content: flex-start; gap: 22px; }
  .hero-mq .hero-sub { margin-top: 14px; gap: 14px; }
  .hero-marquee { height: clamp(220px, 40svh, 380px); margin-top: auto; }
  /* Inicio · galería que se expande: menos recorrido y arranca más grande */
  .burst { height: 165svh; margin-top: 10px; }
  .burst-stage { --s0: .5; }
  /* Nosotros · hero con video: texto abajo, sobre el video */
  .hero-video:not(.hero-mq) { align-items: flex-end; padding-bottom: 56px; }
  .hero-video:not(.hero-mq) .hero-logo { display: none; }
  .hero-video:not(.hero-mq) .strong-lead { font-size: 18px; margin: 16px 0 20px; }
  /* Tarjetas deslizables: que la primera respete el margen */
  .stories-row { scroll-padding-inline: var(--pad); }
  .values .story { flex: 0 0 80%; aspect-ratio: 4 / 4.6; }
  /* Ministerios · botones: sin cortes */
  .min-nav a { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; min-height: 136px; padding: 16px 14px 14px; }
  .mn-name { font-size: clamp(17px, 4.8vw, 22px); overflow-wrap: anywhere; hyphens: auto; }
  .mn-meta { grid-column: 1; grid-row: 2; align-self: end; margin-top: 6px; }
  .mn-go { grid-column: 1; grid-row: 3; justify-self: end; align-self: end; width: 30px; height: 30px; margin-top: 8px; }
  .mn-go svg { width: 14px; height: 14px; }
  /* General: botones cómodos para el dedo */
  .btn { min-height: 48px; }
  .chip { min-height: 36px; }
}

/* ── Inicio · "Sumate a una Casa Refugio" en celular ── */
@media (max-width: 920px) {
  .casas-grid { display: flex; flex-direction: column; gap: 26px; }
  .casas-scatter { position: relative; inset: auto; order: -1; width: 100%; max-width: 420px; height: auto; aspect-ratio: 4 / 3.2; margin: 0 auto; opacity: 1; pointer-events: auto; z-index: 0; }
  .casas-scatter figure img { border-width: 3px; border-radius: 6px; }
  .casas .lead { font-size: 16px; line-height: 1.5; margin: 12px 0 20px; }
  .hoy-list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hoy-list a { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
  .hoy-list span { font-size: 14px; line-height: 1.15; }
  .hoy-list b { font-size: 14px; flex-shrink: 0; }
  .casas .btn { width: 100%; justify-content: center; white-space: nowrap; }
}

/* Valores en celular: apilados uno debajo del otro */
@media (max-width: 720px) {
  .values.stories-row { display: flex; flex-direction: column; gap: 14px; overflow: visible; margin-left: 0; margin-right: 0; padding: 0; scroll-snap-type: none; }
  .values .story { flex: none; width: 100%; aspect-ratio: auto; min-height: 0; padding: 26px 24px 28px; }
  .values .story .v-icon { width: 44px; margin-bottom: 0; }
  .values .story p { margin-top: 26px; font-size: 44px; }
  .values .story span { max-width: none; font-size: 16px; }
}

/* Escuela de Valientes en celular: textos más chicos para que entren */
@media (max-width: 720px) {
  .valientes { gap: 10px; margin-top: 32px; }
  .valientes li { min-height: 130px; padding: 18px 16px; }
  .valientes b { font-size: 40px; }
  .valientes span { font-size: clamp(15px, 4.6vw, 19px); letter-spacing: -.01em; overflow-wrap: anywhere; }
}

/* Casas con nombre y dirección (sin números) */
.gm-sec .pin.pin-name { width: auto !important; height: auto !important; }
.gm-sec .pin-name .pin-in { width: auto; height: 26px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px 0 4px; border-radius: 999px; border: 2px solid #fff; background: var(--forest); color: #fff; white-space: nowrap; box-shadow: 0 3px 10px rgba(0,0,0,.3); }
.gm-sec .pin-name .pin-in i { width: 14px; height: 14px; border-radius: 50%; background: var(--lime); flex: none; margin-left: 1px; }
.gm-sec .pin-name .pin-in span { font: 700 12px/1 var(--font); letter-spacing: -.01em; }
.gm-sec .pin-name.today .pin-in { background: var(--lime); color: var(--forest); box-shadow: 0 0 0 2px var(--forest), 0 3px 10px rgba(0,0,0,.3); }
.gm-sec .pin-name.today .pin-in i { background: var(--forest); }
.gm-sec .pin-name.hover .pin-in { transform: scale(1.1); }
.gm-sec .pin-name.active .pin-in { transform: scale(1.15); background: #e5484d; color: #fff; }
.gm-sec .pin-name.active .pin-in i { background: #fff; }
.gm-sec .pin-name .pin-in { transform-origin: 13px 50%; }
.res-n svg { width: 15px; height: 15px; }
.res-addr { font-size: 14px; color: var(--ink); font-weight: 500; margin-top: 2px; }
.res-addr span { color: var(--ink-2); font-weight: 400; }
.res-acts .ra-main svg, .res-acts .ra-wa svg { width: 15px; height: 15px; }
.res-acts .ra-wa { background: #fff; color: var(--forest); box-shadow: inset 0 0 0 1px #cfd8d2; }
.res-acts .ra-wa:hover { background: #f1f5ef; }
.hoy-list span small { display: block; font-family: var(--font); text-transform: none; font-weight: 500; font-size: 13px; letter-spacing: 0; opacity: .75; margin-top: 3px; }
#mapCasas.names-off .pin-name:not(.hover):not(.active) .pin-in { padding: 0; width: 22px; height: 22px; justify-content: center; }
#mapCasas.names-off .pin-name:not(.hover):not(.active) .pin-in span { display: none; }
#mapCasas.names-off .pin-name:not(.hover):not(.active) .pin-in i { margin: 0; width: 10px; height: 10px; }
#mapCasas.names-off .pin-name .pin-in { transform-origin: 50% 50%; }
