/* Variante 4: recortes de papel, juguetona. Verde profundo, amarillo, rosa y menta */

:root {
  --verde-hondo: #004a2f;
  --verde: #007d50;
  --amarillo: #fee202;
  --rosa: #ff3da9;
  --menta: #05fe92;
  --crema: #fff1b8;

  --sans: "Avenir Next", "Futura", "Century Gothic", "Trebuchet MS", ui-rounded, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --mano: "Bradley Hand", "Segoe Print", "Chalkboard SE", "Marker Felt", "Comic Sans MS", cursive;
  --radio: 28px;
}

.osc { --fondo: var(--verde-hondo); --texto: #fff; --suave: rgba(255, 255, 255, .85); --linea: rgba(255, 255, 255, .28); --sup: rgba(255, 255, 255, .1); --acento: var(--amarillo); --acento-texto: #1c1c00; --campo: rgba(255, 255, 255, .14); }
.cla { --fondo: #fff; --texto: #111; --suave: #454545; --linea: rgba(0, 0, 0, .16); --sup: #f6f4ec; --acento: var(--verde); --acento-texto: #fff; --acento-enlace: var(--verde); --campo: #fff; --error: #b23c00; }
.crema { --fondo: var(--crema); --texto: #111; --suave: #4a4633; --linea: rgba(0, 0, 0, .18); --sup: #fff; --acento: var(--verde); --acento-texto: #fff; --acento-enlace: #006a44; --campo: #fff; --error: #b23c00; }
.amarillo { --fondo: var(--amarillo); --texto: #111; --suave: #3b3900; --linea: rgba(0, 0, 0, .3); --sup: rgba(255, 255, 255, .5); --acento: #111; --acento-texto: var(--amarillo); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: #111; font-family: var(--sans); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0 0 .6em; font-weight: 800; text-transform: uppercase; line-height: 1.04; letter-spacing: -0.005em; }
h1 { font-size: clamp(2rem, 4.8vw, 3.5rem); }
h2 { font-size: clamp(1.9rem, 4.6vw, 3.3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); letter-spacing: .01em; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--amarillo); color: #000; padding: 8px 14px; z-index: 200; }
:focus-visible { outline: 3px solid var(--rosa); outline-offset: 3px; }

/* Cabecera compartida en versión clara */
/* Cabecera sin fondo: flota sobre la foto del hero */
.cab { position: absolute; top: 0; left: 0; right: 0; z-index: 20; background: transparent; color: #fff; --cab-linea: rgba(255, 255, 255, .28); font-weight: 600; text-shadow: 0 1px 14px rgba(0, 40, 24, .55); }
.cab-marca { font-weight: 800; text-transform: uppercase; letter-spacing: .02em; font-size: 1.05rem; }

/* Botones en píldora */
.btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--sans); font-size: .95rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px) rotate(-1deg); }
.btn-primary { background: #000; color: #fff; }
.btn-primary:hover { background: #222; }
.btn-amarillo { background: var(--amarillo); color: #000; }
.btn-rosa { background: var(--rosa); color: #000; }
.btn-outline { background: transparent; color: inherit; border-color: currentColor; }
.btn-outline:hover { background: #111; color: #fff; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.6rem; }
.center .actions { justify-content: center; }

/* Campos */
.check input, .sello-form input, .newsletter input {
  flex: 1; min-width: 0; padding: 13px 22px; border-radius: 999px; border: 2px solid #111; background: #fff; color: #111; font-family: var(--sans); font-size: 1rem;
}
.check input::placeholder, .sello-form input::placeholder, .newsletter input::placeholder { color: #767676; }
.check input:focus, .sello-form input:focus, .newsletter input:focus { outline: none; border-color: var(--verde); box-shadow: 0 0 0 4px rgba(0, 125, 80, .25); }

/* Secciones */
.sec { position: relative; background: var(--fondo); color: var(--texto); padding: clamp(64px, 9vw, 120px) 0; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--suave); max-width: 60ch; }
.center .lead, .centrado .lead { margin-inline: auto; }
.cabecera-seccion { max-width: 720px; margin-bottom: clamp(32px, 5vw, 64px); }
.cabecera-seccion.centrado { margin-inline: auto; text-align: center; }
.sec a:not(.btn) { text-underline-offset: 3px; }

/* Hero: hojas, tarjeta verde y panel crema */
.hero {
  background: linear-gradient(180deg, rgba(0, 74, 47, .66), rgba(0, 74, 47, .5)), url(/v4/fotos/hero-1600.webp) center / cover no-repeat, var(--verde-hondo);
  padding: calc(68px + clamp(40px, 6vw, 90px)) 0 clamp(64px, 8vw, 100px); overflow: hidden; }
.tarjeta-hero {
  position: relative; max-width: 780px; margin: 0 auto; text-align: center; background: var(--verde); border-radius: 56px; padding: clamp(28px, 4vw, 48px) clamp(18px, 4vw, 44px);
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .6);
}
.tarjeta-hero h1 { color: #fff; max-width: 15ch; margin-inline: auto; }
.panel-interior { margin-top: 1.6rem; background: var(--fondo); color: var(--texto); border-radius: 40px; padding: clamp(22px, 3vw, 34px); text-align: left; }
.check { max-width: 640px; margin-inline: auto; }
.check-result { margin-inline: auto; }
.panel-interior .check-result { text-align: center; max-width: none; }
.panel-interior .hint { max-width: none; text-align: center; font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: .82rem; color: #5a5640; margin-bottom: 0; }
.detalle { background: #fff; }
.tarjeta { background: #fff; }
.mascota { position: absolute; right: -28px; top: -46px; width: clamp(70px, 10vw, 118px); transform: rotate(10deg); filter: drop-shadow(0 8px 0 rgba(0, 0, 0, .12)); animation: saluda 5s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes saluda { 0%, 100% { transform: rotate(10deg); } 50% { transform: rotate(4deg) translateY(-4px); } }
.nota-mano { position: absolute; left: max(16px, calc(50% - 620px)); top: clamp(190px, 17vw, 260px); width: 200px; color: #fff; transform: rotate(-5deg); z-index: 1; }
.nota-mano svg { display: block; margin-left: 28px; }
.nota-mano p { font-family: var(--mano); font-size: 1.35rem; line-height: 1.15; margin: .5rem 0 0; }
.par-botones { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 2.4rem; flex-wrap: wrap; }
.barra-menta { width: 5px; height: 46px; border-radius: 4px; background: var(--menta); }

/* Misión y apoyos */
#mision h2 { max-width: 20ch; margin-inline: auto; }
.apoyos { margin-top: clamp(40px, 6vw, 72px); }
.etiqueta-apoyo { font-family: var(--mano); font-size: 1.4rem; margin: 0 0 1rem; }
.supporters { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.supporters li { padding: 10px 20px; border-radius: 999px; border: 2px solid #111; font-weight: 700; font-size: .95rem; }

/* Dos formas de sumarte */
.dos-modos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: stretch; padding: 10px; }
.modo {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; text-align: center; align-items: center; min-height: 300px; padding: clamp(28px, 4vw, 52px);
  border-radius: 64px; transition: transform .3s;
}
.modo p { max-width: 30ch; font-weight: 500; }
.modo { position: relative; overflow: hidden; }
.modo-claro { background: #dff5cf; --patron: url(/v4/patron-hojas-claro.svg); transform: rotate(-4deg); }
.modo-medio { background: #b9ecd2; --patron: url(/v4/patron-hojas-medio.svg); transform: rotate(3deg); }
.modo:hover { transform: rotate(0) scale(1.02); }
.modo h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.modo h3, .modo p, .modo .btn { position: relative; z-index: 1; }
/* El patrón solo se ve en los bordes, para que el texto se lea limpio */
.modo::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--patron) 0 0 / 96px 96px; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 62% 56% at 50% 50%, transparent 50%, #000 100%);
  mask-image: radial-gradient(ellipse 62% 56% at 50% 50%, transparent 50%, #000 100%);
}

/* Pegatinas de proyectos */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 32px); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(26px, 3vw, 38px); border-radius: 44px; color: #111; transition: transform .25s; }
#que-hacemos .card:nth-child(1) { background: #fee202; transform: rotate(-1.6deg); }
#que-hacemos .card:nth-child(2) { background: #ff8fcd; transform: rotate(1.2deg); }
#que-hacemos .card:nth-child(3) { background: #7dfcc0; transform: rotate(-.8deg); }
#que-hacemos .card:nth-child(4) { background: #8fd0ff; transform: rotate(1.4deg); }
#que-hacemos .card:nth-child(5) { background: #ffb066; transform: rotate(-1.2deg); }
#que-hacemos .card:nth-child(6) { background: #d5f56b; transform: rotate(.9deg); }
.card:hover { transform: rotate(0) translateY(-4px) !important; }
.card p { color: #222; flex: 1; }
.tag { display: inline-block; padding: 5px 13px; border-radius: 999px; background: #111; color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.2rem; }
.card > a:not(.btn) { font-weight: 800; text-transform: uppercase; font-size: .82rem; letter-spacing: .06em; text-decoration: none; border-bottom: 3px solid #111; padding-bottom: 2px; }
.card > a:not(.btn)::after { content: " \2192"; }
.card > a:not(.btn):hover { background: #111; color: #fff; }

/* Sello */
.sello-form { max-width: 620px; margin: 2rem auto 0; }
/* Opciones del sello: botones segmentados con estilo pastilla */
.sello-opciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 32px; margin-top: 1.4rem; }
.segmentado { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.segmentado legend { float: left; width: 100%; padding: 0; margin-bottom: 8px; text-align: center; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--suave); }
.segmentos { display: inline-flex; padding: 4px; border: 2px solid #111; border-radius: 999px; background: #fff; }
.segmentos label { position: relative; cursor: pointer; }
.segmentos input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.segmentos span { display: block; padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: .95rem; line-height: 1.2; color: #111; transition: background .15s, color .15s; white-space: nowrap; }
.segmentos label:hover span { background: rgba(0, 0, 0, .07); }
.segmentos input:checked + span { background: #111; color: #fff; }
.segmentos input:focus-visible + span { outline: 3px solid var(--verde); outline-offset: 2px; }
@media (max-width: 420px) { .segmentos span { padding: 10px 14px; font-size: .88rem; } }
.sello-salida { background: #fff; border-radius: 32px; border: 2px solid #111; }
.sello-error { color: #b23c00; }

/* Método */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin: clamp(32px, 5vw, 56px) 0 clamp(48px, 7vw, 88px); padding: 8px; }
.tesela { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 190px; padding: 26px; border-radius: 40px; color: #111; grid-column: span 2; }
.tesela strong { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; line-height: 1.05; text-transform: uppercase; }
.tesela span { font-size: 1rem; line-height: 1.4; font-weight: 500; }
.tesela.ancha { grid-column: span 3; }
.t-amarillo { background: var(--amarillo); transform: rotate(-1.5deg); }
.t-rosa { background: #ff8fcd; transform: rotate(1.2deg); }
.t-menta { background: #7dfcc0; transform: rotate(-.8deg); }
.t-cielo { background: #8fd0ff; transform: rotate(1deg); }
.t-naranja { background: #ffb066; transform: rotate(-1deg); }
.tesela:first-child, .tesela:nth-child(2) { grid-column: span 3; }
.metodo { max-width: 860px; margin-inline: auto; background: var(--sup); border-radius: 48px; padding: clamp(26px, 4vw, 56px); }
.metodo h3 { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 2px solid #111; font-size: 1.05rem; letter-spacing: .04em; }
.metodo h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.reparto .r1 { background: var(--amarillo); color: #111; }
.reparto .r2 { background: #ff8fcd; color: #111; }
.reparto .r3 { background: #7dfcc0; color: #111; }
.reparto span { font-family: var(--sans); text-transform: none; font-weight: 700; letter-spacing: 0; border-radius: 12px !important; }
.reparto { gap: 8px; }
.formula, .calc { background: #fff; }
.calc input[type="number"] { background: #fff; color: #111; font-family: var(--sans); border: 2px solid #111; }
th { font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: .82rem; font-weight: 700; color: #222; }
td:not(:first-child), .pasos li::before { font-family: var(--sans); font-weight: 600; }
.pasos li::before { color: var(--verde); font-weight: 800; }
.pasos strong { font-weight: 800; }
.impacto-titulo input { background: #111; color: var(--amarillo); }

/* Talleres */
#talleres {
  background: linear-gradient(180deg, rgba(0, 74, 47, .58), rgba(0, 74, 47, .7)), url(/v4/fotos/franja-1600.webp) center / cover no-repeat, var(--verde-hondo);
}
#talleres .grid.two { padding: 8px; }
#talleres .card:nth-child(1) { background: #8fd0ff; transform: rotate(-1.4deg); }
#talleres .card:nth-child(2) { background: #ffb066; transform: rotate(1.2deg); }
#talleres .card:nth-child(3) { background: #7dfcc0; transform: rotate(1deg); }
#talleres .card:nth-child(4) { background: #ff8fcd; transform: rotate(-1.2deg); }
.feature h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.feature .btn-outline { color: #111; }
.feature .btn-outline:hover { background: #111; color: #fff; }

/* Noticias */
.row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: clamp(28px, 4vw, 56px); }
.row-head h2 { margin: 0; }
.row-head a { font-weight: 800; text-transform: uppercase; font-size: .85rem; letter-spacing: .06em; }
#blog .card { background: #fff; border: 2px solid #111; border-radius: 36px; padding: 18px 18px 26px; transform: none; }
#blog .card:hover { transform: rotate(-.8deg) translateY(-3px) !important; }
.miniatura { display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 26px; margin-bottom: 1.2rem; background: var(--amarillo) url(/v4/patron-amarillo.svg) 0 0 / 96px 96px; }
#blog .card:nth-child(2) .miniatura { background: #ffc1e3 url(/v4/patron-rosa.svg) 0 0 / 96px 96px; }
#blog .card:nth-child(3) .miniatura { background: #7dfcc0 url(/v4/hojas.svg) 0 0 / 150px 150px; }
.post time { display: inline-block; align-self: flex-start; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; background: #111; color: #fff; margin: 0 0 .8rem 8px; }
.post h3 { margin-inline: 8px; }
.post h3 a { text-decoration: none; }
.post h3 a:hover { text-decoration: underline; }
.post p { margin-inline: 8px; color: #333; }

/* Cierre: llamada a donar a una causa */
.donar { background: var(--verde-hondo) url(/v4/hojas.svg) 0 0 / 220px 220px; text-align: center; padding: clamp(84px, 11vw, 150px) 0; overflow: visible; }
.donar-card { position: relative; max-width: 960px; margin: 0 auto; background: var(--fondo); color: var(--texto); border-radius: 56px; padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px) clamp(32px, 5vw, 56px); box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .65); }
.donar-card h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); max-width: 18ch; margin-inline: auto; }
.donar-card .lead { margin-inline: auto; color: #3e3a28; font-weight: 500; }
.mascota-donar { right: clamp(-16px, 2vw, 28px); top: clamp(-70px, -6vw, -44px); width: clamp(76px, 10vw, 120px); }
.nota-donar { font-family: var(--mano); font-size: 1.7rem; color: var(--verde); transform: rotate(-2deg); margin: 0 0 .4rem; }
.financia { list-style: none; padding: 0; margin: clamp(28px, 4vw, 44px) 0 clamp(24px, 3vw, 36px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.financia li { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: #fff; border-radius: 28px; }
.financia strong { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .02em; }
.financia li > span:last-child { color: #444; font-size: .95rem; line-height: 1.45; }
.ico-financia { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #dff5cf; color: var(--verde); margin-bottom: 4px; }
.donar .actions { justify-content: center; margin-top: 0; }
.btn-donar { background: var(--amarillo); color: #111; gap: .6em; padding: 16px 30px; font-size: 1.05rem; }
.btn-donar svg { color: #e0203a; }
.btn-donar:hover { background: #ffef55; }
.donar .btn-outline:hover { background: #111; color: #fff; }

/* Pie */
.site-footer {
  background: linear-gradient(180deg, rgba(0, 54, 34, .82), rgba(0, 54, 34, .9)), url(/v4/fotos/pie-1600.webp) center / cover no-repeat, var(--verde-hondo);
  color: #fff; padding: clamp(56px, 8vw, 100px) 0 150px; }
.site-footer h3 { font-size: .85rem; letter-spacing: .1em; color: var(--amarillo); margin-bottom: 1rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--amarillo); }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
address { font-style: normal; margin-bottom: 1.2rem; color: rgba(255, 255, 255, .85); }
address strong { color: #fff; }
.newsletter { margin-bottom: .6rem; }
.badge { display: inline-block; border-radius: 999px; padding: 7px 16px; background: var(--menta); color: #003b25; font-weight: 800; font-size: .85rem; }
.links { list-style: none; padding: 0; }
.links li { margin-bottom: .4em; }
.legal { margin-top: 56px; padding-top: 20px; border-top: 2px solid rgba(255, 255, 255, .25); font-size: .85rem; color: rgba(255, 255, 255, .8); }
.check-result.light { color: var(--amarillo); }

@media (max-width: 1100px) { .nota-mano { display: none; } }
@media (max-width: 720px) { .barra-menta { display: none; } }
@media (max-width: 900px) {
  .grid, .grid.two, .footer-grid, .dos-modos { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tesela, .tesela.ancha, .tesela:first-child, .tesela:nth-child(2) { grid-column: span 2; }
  .mascota { right: -6px; top: -54px; }
  .modo { min-height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mascota { animation: none; }
  .btn, .card, .modo { transition: none; }
}

/* Sin resultado no se reserva espacio */
.panel-interior .check-result:empty { min-height: 0; margin: 0; }
.panel-interior .hint { margin-top: 1rem; }

/* Créditos de las fotos */
.creditos { margin: 10px 0 0; }
.creditos a { text-decoration: underline; text-underline-offset: 3px; }

/* En pantallas pequeñas se cargan las fotos más ligeras */
@media (max-width: 800px) {
  .hero { background-image: linear-gradient(180deg, rgba(0, 74, 47, .66), rgba(0, 74, 47, .5)), url(/v4/fotos/hero-800.webp), none; }
  #talleres { background-image: linear-gradient(180deg, rgba(0, 74, 47, .58), rgba(0, 74, 47, .7)), url(/v4/fotos/franja-800.webp), none; }
  .site-footer { background-image: linear-gradient(180deg, rgba(0, 54, 34, .82), rgba(0, 54, 34, .9)), url(/v4/fotos/pie-800.webp), none; }
}

/* Cómo calculamos: titular y mosaico con el estilo de la variante 2 (teselas pastel planas) */
#calculo h2 {
  text-transform: none; font-family: "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, sans-serif;
  font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; font-size: clamp(2rem, 4vw, 3.3rem); margin-bottom: .5em;
}
#calculo > .wrap > .lead { font-family: "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, sans-serif; color: #555; }
#calculo .bento { grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0; margin: clamp(32px, 5vw, 56px) 0 clamp(48px, 7vw, 88px); grid-auto-rows: minmax(190px, auto); }
#calculo .tesela {
  grid-column: span 1; transform: none; min-height: 0; border-radius: 16px; padding: 26px; color: #0d1f18;
  font-family: "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, sans-serif;
}
#calculo .tesela.ancha { grid-column: span 2; }
#calculo .tesela strong { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; text-transform: none; }
#calculo .tesela span { font-size: 1rem; line-height: 1.4; font-weight: 400; }
#calculo .t-amarillo { background: #b6f7da; }
#calculo .t-rosa { background: #dbcaf7; }
#calculo .t-menta { background: #cbe8fb; }
#calculo .t-cielo { background: #fff; border: 1px solid rgba(16, 16, 16, .12); }
#calculo .t-naranja { background: #d9fbec; }
@media (max-width: 900px) {
  #calculo .bento { grid-template-columns: 1fr 1fr; }
  #calculo .tesela.ancha { grid-column: span 2; }
}
@media (max-width: 560px) {
  #calculo .bento { grid-template-columns: 1fr; }
  #calculo .tesela, #calculo .tesela.ancha { grid-column: auto; }
}

/* ---- Fotos de la tesis (vista previa por defecto). Con ?fotos=bosque se ven las de Wikimedia ---- */
.hero {
  background: linear-gradient(180deg, rgba(0, 74, 47, .55), rgba(0, 74, 47, .4)), url(/v4/fotos-tesis/hero-1600.webp) center / cover no-repeat, var(--verde-hondo);
}
#talleres {
  background: linear-gradient(180deg, rgba(0, 74, 47, .55), rgba(0, 74, 47, .68)), url(/v4/fotos-tesis/franja-1600.webp) center / cover no-repeat, var(--verde-hondo);
}
.site-footer {
  background: linear-gradient(180deg, rgba(0, 54, 34, .66), rgba(0, 54, 34, .8)), url(/v4/fotos-tesis/hero-1600.webp) center / cover no-repeat, var(--verde-hondo);
}
.creditos { display: none; }
@media (max-width: 800px) {
  .hero { background-image: linear-gradient(180deg, rgba(0, 74, 47, .55), rgba(0, 74, 47, .4)), url(/v4/fotos-tesis/hero-800.webp), none; }
  /* En móvil la sección es muy alta, así que se usa una foto más grande para que no se vea borrosa */
  #talleres { background-image: linear-gradient(180deg, rgba(0, 74, 47, .5), rgba(0, 74, 47, .66)), url(/v4/fotos-tesis/hero-1600.webp), none; }
  .site-footer { background-image: linear-gradient(180deg, rgba(0, 54, 34, .66), rgba(0, 54, 34, .8)), url(/v4/fotos-tesis/hero-800.webp), none; }
}

/* Las fotos de bosque de Wikimedia, con sus créditos */
html.fotos-bosque .hero { background: linear-gradient(180deg, rgba(0, 74, 47, .66), rgba(0, 74, 47, .5)), url(/v4/fotos/hero-1600.webp) center / cover no-repeat, var(--verde-hondo); }
html.fotos-bosque #talleres { background: linear-gradient(180deg, rgba(0, 74, 47, .58), rgba(0, 74, 47, .7)), url(/v4/fotos/franja-1600.webp) center / cover no-repeat, var(--verde-hondo); }
html.fotos-bosque .site-footer { background: linear-gradient(180deg, rgba(0, 54, 34, .82), rgba(0, 54, 34, .9)), url(/v4/fotos/pie-1600.webp) center / cover no-repeat, var(--verde-hondo); }
html.fotos-bosque .creditos { display: block; }
@media (max-width: 800px) {
  html.fotos-bosque .hero { background-image: linear-gradient(180deg, rgba(0, 74, 47, .66), rgba(0, 74, 47, .5)), url(/v4/fotos/hero-800.webp), none; }
  html.fotos-bosque #talleres { background-image: linear-gradient(180deg, rgba(0, 74, 47, .58), rgba(0, 74, 47, .7)), url(/v4/fotos/franja-800.webp), none; }
  html.fotos-bosque .site-footer { background-image: linear-gradient(180deg, rgba(0, 54, 34, .82), rgba(0, 54, 34, .9)), url(/v4/fotos/pie-800.webp), none; }
}

@media (max-width: 900px) { .financia { grid-template-columns: 1fr; } }

/* Hero compacto: los botones quedan por encima de la píldora del menú en pantallas bajas */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: calc(68px + clamp(14px, 3vh, 40px)); padding-bottom: 110px; }
.hero > .wrap { width: min(1120px, 100% - 40px); }
.tarjeta-hero { padding-block: clamp(20px, 3.4vh, 44px); }
.tarjeta-hero h1 { font-size: clamp(1.8rem, min(9vw, 7.4vh), 3.6rem); margin-bottom: .45em; }
.tarjeta-hero .panel-interior { margin-top: clamp(.8rem, 2vh, 1.4rem); padding-block: clamp(14px, 2.4vh, 28px); }
.par-botones { margin-top: clamp(1rem, 2.6vh, 2rem); }

/* Páginas interiores */
.hero-interno {
  background: linear-gradient(180deg, rgba(0, 74, 47, .5), rgba(0, 74, 47, .66)), url(/v4/fotos-tesis/franja-1600.webp) center / cover no-repeat, var(--verde-hondo);
  padding: calc(68px + clamp(48px, 8vw, 110px)) 0 clamp(48px, 7vw, 90px);
}
@media (max-width: 800px) { .hero-interno { background-image: linear-gradient(180deg, rgba(0, 74, 47, .5), rgba(0, 74, 47, .66)), url(/v4/fotos-tesis/franja-800.webp), none; } }
.hero-interno h1 { max-width: 20ch; font-size: clamp(2.2rem, 6vw, 4.4rem); color: #fff; }
.hero-interno .lead { max-width: 60ch; font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255, 255, 255, .92); margin: 0; }
.hero-interno .volver { margin: 0 0 1.4rem; font-weight: 700; font-size: .9rem; }
.hero-interno .volver a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); text-decoration: none; transition: background .2s, transform .25s cubic-bezier(.2, 1.7, .4, 1); }
.hero-interno .volver a:hover { background: rgba(255, 255, 255, .3); transform: translateX(-3px); }
#calculo { padding-top: clamp(40px, 6vw, 72px); }
