/* Manual vivo de huerta comunitaria · componentes propios (se apoyan en las variables y el estilo de /css/styles.css) */
.huerta-pagina { --h-ok: #2f8f5b; --h-ok-bg: #e7f5ec; --h-no: #b5453b; --h-no-bg: #fbeceb; --h-aviso: #8a5a00; --h-aviso-bg: #fff3d6; --h-nota-bg: #e6f3f5; --h-max: 860px; }
.huerta-hero { padding: 120px 0 56px; }
.huerta-hero h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); max-width: 18em; }
.huerta-hero .lead { margin-bottom: 0; max-width: 46em; }
.huerta-migas .container a, .huerta-migas .container span { font-size: .85rem; }

/* menú del espacio */
.huerta-menu { background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 64px; z-index: 50; }
.huerta-menu ul { display: flex; gap: 8px; list-style: none; margin: 0; padding: 10px 24px; overflow-x: auto; max-width: var(--max-width); margin-inline: auto; scrollbar-width: thin; }
.huerta-menu a { display: inline-block; white-space: nowrap; padding: 7px 14px; border-radius: 100px; font-size: .88rem; font-weight: 600; color: var(--text-soft); background: var(--cream); border: 1px solid var(--border); }
.huerta-menu a:hover { color: var(--teal-dark); border-color: var(--teal); }
.huerta-menu a[aria-current="page"] { background: var(--teal); color: #fff; border-color: var(--teal); }
.huerta-menu a.pronto { opacity: .65; border-style: dashed; }

/* texto */
.huerta-sec { padding: clamp(36px, 7vw, 64px) 0; }
.huerta-sec:nth-of-type(even) { background: var(--cream); }
.huerta-sec .container { max-width: var(--max-width); }
.huerta-sec h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin-bottom: 18px; scroll-margin-top: 120px; }
.huerta-sec h3 { margin: 28px 0 10px; font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
.huerta-sec p, .huerta-sec li { font-size: 1.05rem; line-height: 1.75; color: var(--text); }
.huerta-sec p { margin: 0 0 14px; }
.huerta-sec ul, .huerta-sec ol { margin: 0 0 16px 1.2em; padding: 0; }
.huerta-sec li { margin-bottom: 6px; }
.huerta-sec a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }
.huerta-sec img { border-radius: var(--radius-sm); }
.huerta-sec blockquote { margin: 16px 0; padding: 4px 18px; border-left: 4px solid var(--green-light); color: var(--text-soft); }
.huerta-sec code { background: #eef1f0; padding: 1px 6px; border-radius: 5px; font-size: .92em; }
.huerta-sec hr { border: 0; border-top: 1px solid var(--border); margin: 28px 0; }

/* cuadros */
.hcall { margin: 20px 0; padding: 16px 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); }
.hcall-t { font-weight: 800; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.hcall-c > :last-child { margin-bottom: 0; }
.hcall-regla { background: var(--h-aviso-bg); border-color: #f0cf7d; }
.hcall-regla .hcall-t { color: var(--h-aviso); }
.hcall-regla p { font-size: 1.15rem; font-weight: 600; }
.hcall-aviso { background: var(--h-aviso-bg); border-color: #f0cf7d; } .hcall-aviso .hcall-t { color: var(--h-aviso); }
.hcall-consejo { background: var(--h-ok-bg); border-color: #b5dfc4; } .hcall-consejo .hcall-t { color: var(--h-ok); }
.hcall-nota { background: var(--h-nota-bg); border-color: #b9dde1; } .hcall-nota .hcall-t { color: var(--teal-dark); }
.hcall-si { background: var(--h-ok-bg); border-color: #b5dfc4; } .hcall-si .hcall-t { color: var(--h-ok); }
.hcall-no { background: var(--h-no-bg); border-color: #efbdb8; } .hcall-no .hcall-t { color: var(--h-no); }
.hcall-pendiente { background: repeating-linear-gradient(45deg, #fffaf0, #fffaf0 10px, #fff6e0 10px, #fff6e0 20px); border: 2px dashed #d9a93a; }
.hcall-pendiente .hcall-t { color: var(--h-aviso); }
.hcall-pendiente .hcall-t::before { content: "⏳ "; }
.hpar { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin: 20px 0; }
.hpar .hcall { margin: 0; }
@media (max-width: 700px) { .hpar { grid-template-columns: 1fr; } }

/* pasos numerados */
.hpasos ol { list-style: none; counter-reset: paso; margin: 18px 0; padding: 0; }
.hpasos li { counter-increment: paso; position: relative; margin: 0 0 12px; padding: 14px 16px 14px 62px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.hpasos li::before { content: counter(paso); position: absolute; left: 14px; top: 12px; width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* acordeón nativo */
.hdet { border-bottom: 1px solid var(--border); }
.hdet:first-of-type { border-top: 1px solid var(--border); }
.hdet summary { cursor: pointer; font-weight: 700; padding: 16px 28px 16px 0; list-style: none; position: relative; font-size: 1.05rem; }
.hdet summary::-webkit-details-marker { display: none; }
.hdet summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; color: var(--teal); transition: transform .2s; }
.hdet[open] summary::after { transform: rotate(45deg); }
.hdet-c { padding: 0 0 12px; }

/* tablas */
.htabla { overflow-x: auto; margin: 18px 0; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); }
.htabla table { border-collapse: collapse; width: 100%; min-width: 0; }
.huerta-sec a, .huerta-sec li { overflow-wrap: anywhere; }
.htabla th { background: var(--cream); text-align: left; font-size: .85rem; letter-spacing: .03em; }
.htabla th, .htabla td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; font-size: .98rem; }
.htabla tr:last-child td { border-bottom: 0; }
.htabla td.vacia { height: 40px; }

/* 3D */
.h3d { margin: 24px 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-soft); overflow: hidden; }
.h3d-cab { padding: 16px 18px 6px; }
.h3d-cab h3 { margin: 0 0 4px; font-size: 1.15rem; }
.h3d-cab p { margin: 0; font-size: .95rem; color: var(--muted); }
.h3d-vistas { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 18px; }
.h3d-vistas button { padding: 8px 14px; border-radius: 100px; border: 1px solid var(--border); background: var(--cream); font: 600 .88rem 'Montserrat', sans-serif; color: var(--text-soft); cursor: pointer; }
.h3d-vistas button[aria-pressed="true"] { background: var(--teal); color: #fff; border-color: var(--teal); }
.h3d-marco { position: relative; min-height: 220px; background: linear-gradient(180deg, #eaf3ef, #f6f3e9); display: flex; align-items: center; justify-content: center; }
.h3d-marco img.h3d-poster { width: 100%; display: block; border-radius: 0; }
.h3d-abrir { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); box-shadow: var(--shadow-medium); }
.h3d-marco iframe { width: 100%; height: min(78vh, 680px); min-height: 460px; border: 0; display: block; background: #fff; }
.h3d-pie { margin: 0; padding: 10px 18px 14px; font-size: .88rem; color: var(--muted); }
.huerta-sec .h3d-pie a { white-space: nowrap; }

/* fotos y descargas */
.hfotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 20px 0; }
.hfotos figure { margin: 0; }
.hfotos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; }
.hfotos figcaption, .hfoto figcaption { font-size: .85rem; color: var(--muted); padding-top: 6px; }
.hcomp { display: grid; grid-template-columns: 5fr 7fr; gap: 22px; align-items: start; margin: 18px 0 28px; }
.hcomp h4 { margin: 0 0 10px; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); }
.hcomp-despues h4 { color: var(--teal-dark); }
.hcomp-fotos { display: flex; flex-direction: column; gap: 14px; }
.hcomp-resto { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.hcomp figure { margin: 0; } .hcomp img { width: 100%; height: auto; display: block; border-radius: 12px; cursor: zoom-in; }
.hcomp figcaption { font-size: .85rem; color: var(--text-soft); margin-top: 5px; line-height: 1.35; }
.hcomp-despues img { box-shadow: 0 3px 14px rgba(27, 67, 50, .14); } .hcomp-antes img { filter: saturate(.8); }
@media (max-width: 700px) { .hcomp { grid-template-columns: 1fr; } .hcomp-despues { order: -1; } }
.hfotos.natural { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; align-items: start; }
.hfotos.natural img { aspect-ratio: auto; height: auto; object-fit: contain; }
.hfotos.completa.vertical { max-width: 520px; }
.hfotos.completa { display: block; max-width: 920px; margin: 18px auto; text-align: center; }
.hfotos.completa figure { margin: 0; } .hfotos.completa img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; background: #fff; border-radius: 14px; box-shadow: 0 3px 14px rgba(27, 67, 50, .12); }
.hfotos.completa figcaption { margin-top: 8px; font-size: .9rem; color: var(--text-soft); }
.hfoto { margin: 22px 0; } .hfoto img { width: 100%; max-height: 520px; object-fit: cover; }
.hdesc { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.hdesc .btn { white-space: normal; text-align: center; }
.huerta-sec a.btn { text-decoration: none; }
.huerta-sec a.btn-primary { color: #fff; }

/* ciclo (inicio) */
.hciclo { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 22px 0; }
.hciclo > div { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; text-align: center; font-weight: 600; font-size: .95rem; box-shadow: var(--shadow-soft); }
.hciclo > div span { display: block; font-size: 1.7rem; }

/* tarjetas de páginas (inicio) */
.hpaginas { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 22px 0; }
.hpagina { display: block; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-decoration: none !important; color: var(--text) !important; box-shadow: var(--shadow-soft); transition: var(--transition); }
.hpagina:hover { transform: translateY(-3px); box-shadow: var(--shadow-medium); }
.hpagina strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.hpagina span { font-size: .92rem; color: var(--muted); }
.hpagina.pronto { border-style: dashed; opacity: .75; }

/* páginas para imprimir: cartel y turnos */
.huerta-imprimir .huerta-sec { background: #fff !important; }
.cartel { border: 6px solid var(--teal); border-radius: 24px; padding: clamp(18px, 4vw, 36px); background: #fff; }
.cartel h2 { font-size: clamp(1.8rem, 5vw, 3rem); text-align: center; margin-bottom: 4px; }
.cartel .sub { text-align: center; font-size: 1.2rem; margin-bottom: 18px; }
.cartel > p { font-size: 1.3rem; line-height: 1.6; margin: 14px 0; }
.cartel > p:first-of-type { text-align: center; font-size: 1.45rem; }
.cartel .hcall p, .cartel .hcall li { font-size: 1.2rem; }
@media print {
  @page { size: A4; margin: 12mm; }
  .navbar, .huerta-migas, .huerta-hero, .huerta-menu, .huerta-footer, .no-imprimir, .h3d-pie { display: none !important; }
  body.huerta-imprimir { background: #fff; }
  .huerta-imprimir .huerta-sec { padding: 0; }
  .huerta-imprimir .container { max-width: none; padding: 0; }
  .huerta-imprimir .huerta-sec > .container > h2 { display: none; }
  .cartel { border-width: 5px; padding: 14px 22px; page-break-inside: avoid; }
  .cartel h2 { font-size: 2.2rem; }
  .cartel > p { font-size: 1.15rem; margin: 10px 0; }
  .cartel .hcall { margin: 10px 0; padding: 10px 16px; }
  .cartel .hcall p, .cartel .hcall li { font-size: 1.05rem; line-height: 1.5; margin-bottom: 2px; }
  .htabla { break-inside: avoid; margin: 8px 0; }
  .htabla th, .htabla td { padding: 6px 10px; font-size: .9rem; }
  .htabla td.vacia { height: 28px; }
  .huerta-imprimir h3 { margin: 14px 0 6px; break-after: avoid; }
  a { text-decoration: none !important; }
}

/* bitácora */
.hbitacora { border-left: 3px solid var(--green-light); margin: 20px 0 20px 8px; padding-left: 22px; }
.hbit { position: relative; margin-bottom: 32px; }
.hbit::before { content: ""; position: absolute; left: -31px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--teal); border: 3px solid var(--bg); }
.hbit time { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-dark); }
.hbit h3 { margin: 4px 0 8px; }
.huerta-sec pre { background: #eef1f0; padding: 14px 16px; border-radius: 10px; overflow-x: auto; font-size: .9rem; }
.huerta-sec pre code { background: none; padding: 0; }

/* modelos 3D ilustrativos dentro de las páginas (sin botones) */
.h3d-ilus { margin: 20px 0; }
.h3d-ilus h3 { margin: 0 0 12px; }
.h3d-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.h3d-pie { font-size: .9rem; color: var(--text-soft); margin: 10px 0 0; line-height: 1.5; }
.huerta-sec .i3d, .i3d { margin: 0; position: relative; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 3px 14px rgba(27, 67, 50, .10); aspect-ratio: 3 / 2; }
.i3d img, .i3d iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; border-radius: 0; }
.i3d iframe { background: transparent; opacity: 0; transition: opacity .35s; } .i3d iframe.listo { opacity: 1; }
.i3d figcaption { position: absolute; left: 10px; bottom: 8px; font-size: .8rem; font-weight: 700; color: #1B4332; background: rgba(255, 255, 255, .88); padding: 3px 10px; border-radius: 8px; }
.info-sec .container { max-width: 1180px; }

/* hoja de infografías */
.huerta-hero.con-banner { background: linear-gradient(rgba(14, 38, 27, .66), rgba(14, 38, 27, .42)), var(--banner) center 40% / cover no-repeat; }
.huerta-hero.con-banner h1, .huerta-hero.con-banner .lead, .huerta-hero.con-banner .eyebrow { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.grafico { background: #fff; border-radius: 16px; padding: 10px; box-shadow: 0 3px 14px rgba(27, 67, 50, .08); margin: 12px 0; } .grafico svg { width: 100%; height: auto; display: block; } .grafico.rosa { max-width: 420px; }
.hmapa { margin: 16px 0; } .hmapa iframe { width: 100%; height: 420px; border: 0; border-radius: 14px; box-shadow: 0 3px 14px rgba(27, 67, 50, .12); }
.hvideo-cifras { display: grid; grid-template-columns: minmax(300px, 420px) 1fr; gap: 28px; align-items: center; margin: 16px 0 24px; }
.hvideo-cifras .hinsta { margin: 0; max-width: none; } .hvideo-cifras .g2 { grid-template-columns: 1fr !important; }
@media (max-width: 760px) { .hvideo-cifras { grid-template-columns: 1fr; } }
.hinsta.destacado { max-width: 480px; } .hinsta.destacado iframe { box-shadow: 0 6px 28px rgba(27, 67, 50, .22); }
.hinsta { margin: 18px auto; max-width: 380px; text-align: center; } .hinsta iframe { width: 100%; aspect-ratio: 9 / 14; height: auto; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 3px 14px rgba(27, 67, 50, .12); }
.hproposito { display: grid; grid-template-columns: 6fr 5fr; gap: 28px; align-items: center; margin: 16px 0 24px; }
.hproposito figure { margin: 0; order: 2; } .hproposito img { width: 100%; height: auto; display: block; border-radius: 14px; box-shadow: 0 3px 14px rgba(27, 67, 50, .14); cursor: zoom-in; }
.hproposito figcaption { font-size: .85rem; color: var(--text-soft); margin-top: 6px; } .hproposito p { margin-top: 0; } .hproposito ul { margin-bottom: 0; }
@media (max-width: 760px) { .hproposito { grid-template-columns: 1fr; } .hproposito figure { order: -1; } }
.hobj img { aspect-ratio: 4 / 3; }
.hpats { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin: 14px 0; }
.hpat { display: block; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 16px 16px 14px; text-decoration: none !important; color: var(--text) !important; box-shadow: 0 3px 14px rgba(27, 67, 50, .08); }
.hpat:hover { border-color: var(--teal); } .hpat-fig { margin: 0 0 12px; position: relative; } .hpat-fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: 12px; display: block; }
.hpat-fig figcaption { font-size: .78rem; color: var(--text-soft); margin-top: 4px; }
.hpat-tipo { position: absolute; left: 8px; top: 8px; z-index: 1; background: var(--teal-dark); color: #fff; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 100px; }
.hpat-fig img[src*="despues_"] { object-fit: cover; } .hpat > strong { display: block; font-size: 1.1rem; margin-bottom: 6px; }
.hpat p { margin: 0 0 10px; font-size: .93rem; line-height: 1.45; color: var(--text-soft); } .hpat em { display: block; font-style: normal; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-dark); font-weight: 700; margin-bottom: 2px; }
.hpat-mas { font-size: .9rem; color: var(--teal-dark); font-weight: 600; }
.hdrs { display: grid; gap: 22px; margin: 14px 0 22px; }
.hdr { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 14px; box-shadow: 0 3px 14px rgba(27, 67, 50, .08); }
.hdr-cab { display: block; text-decoration: none !important; color: var(--text) !important; } .hdr-cab strong { display: block; font-size: 1.15rem; margin-bottom: 4px; } .hdr-cab span { display: block; color: var(--text-soft); font-size: .95rem; } .hdr-cab em { display: inline-block; margin-top: 8px; font-style: normal; font-weight: 600; color: var(--teal-dark); font-size: .9rem; }
a.hdr-cab:hover strong { color: var(--teal-dark); }
.hdr-par { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .hdr-par figure { margin: 0; position: relative; }
.hdr-par img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 12px; } .hdr-d img { object-fit: contain; background: #fff; border: 1px dashed var(--border); }
.hdr-et { position: absolute; left: 8px; top: 8px; z-index: 1; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.92); color: var(--text); border-radius: 100px; padding: 3px 9px; box-shadow: 0 1px 6px rgba(0,0,0,.15); }
.hdr-par figcaption { font-size: .8rem; color: var(--text-soft); margin-top: 4px; }
.hdr-r .hdr-et { background: var(--teal-dark); color: #fff; }
@media (max-width: 760px) { .hdr { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .hdr-par { grid-template-columns: 1fr; } }
.huerta-sec .hdinfo { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; }
.hdinfo li { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; justify-content: space-between; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; }
.hdinfo span { color: var(--text-soft); font-size: .85rem; margin-right: auto; } .hdinfo div { font-size: .92rem; display: flex; gap: 10px; }
.hsis { list-style: none; margin: 18px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 34px; counter-reset: x; }
.hsis-paso { position: relative; text-align: center; margin: 0; }
.hsis-paso figure { margin: 0 0 10px; position: relative; }
.hsis-paso img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; border-radius: 16px; box-shadow: 0 6px 20px rgba(27, 67, 50, .18); }
.hsis-n { position: absolute; left: 10px; top: 10px; width: 32px; height: 32px; border-radius: 50%; background: var(--teal-dark); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.hsis-paso strong { display: block; font-size: 1.02rem; line-height: 1.3; }
.hsis-paso:not(:nth-child(3n))::after { content: ""; position: absolute; right: -27px; top: 38%; width: 20px; height: 20px; border-top: 4px solid var(--teal); border-right: 4px solid var(--teal); transform: rotate(45deg); border-radius: 2px; }
.hsis-vuelta { text-align: center; color: var(--teal-dark); font-weight: 700; margin: 12px 0 4px; } .hsis-vuelta svg { vertical-align: -3px; }
@media (max-width: 820px) { .hsis { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; } .hsis-paso::after { display: none !important; } }
.hobjs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin: 14px 0; }
.hobj { display: block; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 10px 10px 14px; text-decoration: none !important; color: var(--text) !important; box-shadow: 0 3px 14px rgba(27, 67, 50, .08); }
.hobj:hover { border-color: var(--teal); } .hobj img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; display: block; margin-bottom: 8px; }
.hobj strong { display: block; font-size: 1.1rem; } .hobj span { color: var(--text-soft); font-size: .95rem; }
.hinfos { display: grid; gap: 22px; }
.hinfo { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: 22px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; align-items: center; }
.hinfo-img img { width: 100%; height: auto; display: block; border-radius: 12px; }
.hinfo h3 { margin: 0 0 6px; } .hinfo h3 a { text-decoration: none; }
.hinfo-n { font-size: .9rem; color: var(--text-soft); }
.hinfo .btn { margin: 4px 8px 4px 0; }
@media (max-width: 640px) { .hinfo { grid-template-columns: 1fr; } }

/* Infografías del manual: cada «hoja» es una lámina vertical (proporción A3/A4) pensada para verse en la web, descargarse en PDF y pegarse en la pared.
   Se usa igual en las páginas del sitio y en el HTML editable que se descarga. Todo está bajo `.info`. */
.info { --v1: #1B4332; --v2: #2D6A4F; --v3: #52B788; --v4: #B7E4C7; --v5: #E8F1DC; --crema: #F6F1E4; --tierra: #B5533C; --madera: #C9A06E; --tinta: #1B2B22; --suave: #4D6355;
        font-family: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif; color: var(--tinta); }
.info *, .info *::before, .info *::after { box-sizing: border-box; }
.info-hojas { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.info section.hoja { padding: 0; margin: 0; }
.hoja { width: 1100px; height: 1556px; position: absolute; left: 0; top: 0; transform-origin: 0 0; background: #fff; border-radius: 14px; box-shadow: 0 6px 28px rgba(27, 67, 50, .16); overflow: hidden; display: flex; flex-direction: column; }
.hoja-cab { background: linear-gradient(135deg, var(--v1), var(--v2)); color: #fff; padding: 24px 44px 20px; position: relative; }
.hoja-cab .logo { position: absolute; right: 44px; top: 20px; height: 62px; width: auto; background: #fff; border-radius: 12px; padding: 6px 12px; }
.hoja-cab .eb { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--v4); font-weight: 700; }
.hoja-cab h2 { padding-right: 200px; font-size: 42px; line-height: 1.06; margin: 8px 0 6px; font-weight: 800; letter-spacing: -.5px; color: #fff; }
.hoja-cab .sb { font-size: 21px; color: #E3F4E8; font-weight: 500; margin: 0; }
.hoja-cuerpo { flex: 1; padding: 20px 44px 16px; display: flex; flex-direction: column; gap: 14px; background: radial-gradient(900px 500px at 100% 0, var(--v5) 0, rgba(232, 241, 220, 0) 60%), var(--crema); min-height: 0; }
.hoja-pie { background: var(--v1); color: #fff; padding: 16px 48px; display: flex; align-items: center; gap: 24px; font-size: 15px; line-height: 1.5; }
.hoja-pie .qr { width: 96px; height: 96px; background: #fff; border-radius: 8px; padding: 5px; flex: none; }
.hoja-pie .qr svg { width: 100%; height: 100%; display: block; }
.hoja-pie .qrt { font-size: 13px; max-width: 150px; color: var(--v4); line-height: 1.35; }
.hoja-pie .ct { flex: 1; }
.hoja-pie .ct b { font-size: 18px; color: #fff; }
.hoja-pie .ct span { display: block; color: #DDEFE3; }
.hoja-pie .pg { text-align: right; font-weight: 700; color: var(--v4); white-space: nowrap; }
.hoja-pie .pg small { display: block; font-weight: 500; font-size: 12px; color: #B6D3C1; }

/* piezas */
.info h3 { font-size: 23px; line-height: 1.15; margin: 0 0 8px; color: var(--v1); font-weight: 800; }
.info h3.sec { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--v2); margin: 0 0 8px; }
.info p { margin: 0 0 6px; font-size: 18.5px; line-height: 1.4; color: var(--tinta); }
.info ul, .info ol { margin: 0; padding-left: 1.15em; font-size: 18px; line-height: 1.35; }
.info li { margin-bottom: 3px; }
.info .g2, .info .g3, .info .g4 { display: grid; gap: 16px; }
.info .g2 { grid-template-columns: 1fr 1fr; } .info .g3 { grid-template-columns: repeat(3, 1fr); } .info .g4 { grid-template-columns: repeat(4, 1fr); }
.info .g21 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; } .info .g12 { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; }
.info .tarj { background: #fff; border-radius: 18px; padding: 12px 16px; box-shadow: 0 2px 10px rgba(27, 67, 50, .08); min-width: 0; }
.info .tarj.sin-borde { padding: 10px; }
.info .tarj.tierra { background: #FBEEE8; } .info .tarj.madera { background: #F7EEDC; }
.info .num { font-size: 44px; font-weight: 800; color: var(--v1); line-height: 1; letter-spacing: -1px; }
.info .num small { font-size: 24px; font-weight: 700; letter-spacing: 0; }
.info .tit { font-size: 18px; font-weight: 700; color: var(--v2); margin-top: 4px; line-height: 1.2; }
.info .sub { font-size: 16px; color: var(--suave); margin-top: 4px; line-height: 1.35; }
.info .lema { font-size: 30px; line-height: 1.2; font-weight: 800; color: var(--v1); margin: 0; }
.info .cita { background: var(--v1); color: #fff; border-radius: 18px; padding: 18px 24px; }
.info .cita p { color: #fff; font-size: 19px; margin: 0 0 6px; }
.info .cita p:first-child { font-size: 27px; font-weight: 800; line-height: 1.2; color: #fff; }
.info .cita p:last-child { margin: 0; }
.info .regla { background: #FFF3D6; border: 2px solid #F0CF7D; border-radius: 16px; padding: 14px 20px; }
.info .regla b { color: #8A5A00; letter-spacing: .1em; text-transform: uppercase; font-size: 14px; }
.info .regla p { font-size: 22px; font-weight: 700; margin: 4px 0 0; color: #5B3D00; }
.info .si, .info .no { border-radius: 16px; padding: 14px 18px; }
.info .si { background: #E7F5EC; border: 2px solid #B5DFC4; } .info .no { background: #FBECEB; border: 2px solid #E8B8B3; }
.info .si h3, .info .no h3 { font-size: 22px; margin-bottom: 6px; } .info .si h3 { color: #1E6B42; } .info .no h3 { color: #A03A31; }
.info .si li, .info .no li { font-size: 17.5px; }
.info .pasos { counter-reset: p; display: grid; gap: 8px; }
.info .paso { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: center; background: #fff; border-radius: 16px; padding: 8px 14px; box-shadow: 0 3px 12px rgba(27, 67, 50, .09); }
.info .paso::before { counter-increment: p; content: counter(p); width: 46px; height: 46px; border-radius: 50%; background: var(--v2); color: #fff; font-size: 24px; font-weight: 800; display: grid; place-items: center; }
.info .paso p { margin: 0; font-size: 18px; } .info .paso b { color: var(--v1); }
.info .flujo { display: grid; grid-template-columns: 1fr 34px 1fr 34px 1fr; align-items: stretch; gap: 0; }
.info .flujo .fl { display: grid; place-items: center; font-size: 30px; color: var(--v3); font-weight: 800; }
.info .caj { background: #fff; border-radius: 18px; padding: 14px 16px; text-align: center; box-shadow: 0 2px 10px rgba(27, 67, 50, .08); }
.info .caj.c2 { background: #F7EEDC; } .info .caj.c3 { background: #FBEEE8; }
.info .caj .n { font-size: 40px; font-weight: 800; color: var(--v1); line-height: 1; }
.info .caj .t { font-size: 18px; font-weight: 800; color: var(--v2); margin: 4px 0; } .info .caj p { font-size: 16.5px; margin: 0; color: var(--suave); line-height: 1.35; }
.info .ciclo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.info .ciclo div { background: #fff; border-radius: 16px; padding: 12px 14px; text-align: center; font-size: 16px; font-weight: 600; color: var(--v1); box-shadow: 0 3px 12px rgba(27, 67, 50, .09); line-height: 1.25; }
.info .ciclo div span { display: block; font-size: 34px; margin-bottom: 4px; }
.info .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.info .chip { display: inline-block; padding: 5px 13px; border-radius: 100px; background: var(--v5); color: var(--v1); font-size: 15px; font-weight: 700; border: 1px solid var(--v4); }
.info .chip.t { background: #FBE9E3; border-color: #EBC1B4; color: #7C2F1D; } .info .chip.m { background: #F6EBD7; border-color: #E5CFA4; color: #5C4311; }
.info table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; font-size: 16.5px; }
.info th { background: var(--v2); color: #fff; text-align: left; padding: 8px 12px; font-size: 14px; letter-spacing: .04em; }
.info td { padding: 5px 12px; border-top: 1px solid #E4EBDF; vertical-align: top; line-height: 1.3; } .info tr:nth-child(even) td { background: #F8FBF5; }
.info td b { color: var(--v1); }
.info .aviso { background: #FFF3D6; border: 2px dashed #E0B94E; border-radius: 14px; padding: 10px 16px; font-size: 15.5px; color: #5B3D00; line-height: 1.4; }
.info .aviso b { color: #8A5A00; }
.info .pie-nota.fuentes { border-top: 1px solid #CFE3D3; padding-top: 6px; font-size: 13px; }
.info .pie-nota.fuentes span { display: inline-block; margin-right: 12px; }
.info .pie-nota { font-size: 14.5px; color: var(--suave); line-height: 1.35; margin: 0; }
.info .barra { display: grid; grid-template-columns: 150px 1fr 40px; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.info .barra i { display: block; height: 20px; border-radius: 10px; background: var(--v3); } .info .barra i.t { background: var(--tierra); }
.info .barra span { text-align: right; font-weight: 800; color: var(--v1); }

/* si la hoja no tiene bloque que crezca, el espacio sobrante se reparte entre los bloques */
.hoja-cuerpo.reparte { justify-content: space-between; }
.info .grp { display: flex; flex-direction: column; }

/* planos compactos (hojas resumen): sin leyenda ni nota */
.info .compacto .plano .chips, .info .compacto .plano .ps { display: none; }

/* bloques que ocupan el espacio que sobra en la hoja */
.info .crece { flex: 0 0 auto; }
.info .crece .i3d { aspect-ratio: 3 / 2; height: auto; }
.info .crece .i3d.ancho { aspect-ratio: 16 / 9; }

/* modelos 3D ilustrativos: sin botones; se ven girando solos (en el PDF, la foto fija) */
.info .i3d { margin: 0; position: relative; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 3px 14px rgba(27, 67, 50, .10); aspect-ratio: 3 / 2; }
.info .i3d.ancho { aspect-ratio: 16 / 9; } .info .i3d.alto { aspect-ratio: 4 / 3; }
.info .i3d img, .info .i3d iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; }
.info .i3d iframe { background: transparent; opacity: 0; transition: opacity .35s; } .info .i3d iframe.listo { opacity: 1; }
.info .i3d figcaption { position: absolute; left: 10px; bottom: 8px; right: 10px; font-size: 13.5px; font-weight: 700; color: var(--v1); background: rgba(255, 255, 255, .86); padding: 3px 10px; border-radius: 8px; width: fit-content; max-width: 100%; }
.info .plano { background: #fff; border-radius: 18px; padding: 10px 12px 8px; box-shadow: 0 3px 14px rgba(27, 67, 50, .10); } .info .plano svg { width: 100%; height: auto; display: block; }
.info .plano .pt { font-size: 15px; font-weight: 800; color: var(--v1); margin: 0 0 2px; } .info .plano .ps { font-size: 13px; color: var(--suave); margin: 0; line-height: 1.3; }
.info svg text { font-family: inherit; }

/* en pantallas angostas: las hojas se acomodan al alto de su contenido */


/* acciones y modo edición (no se imprimen) */
.info-acciones { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 0 0 22px; }
.info-acciones a, .info-acciones button { font: 700 17px "Montserrat", "Segoe UI", Arial, sans-serif; padding: 13px 24px; border-radius: 100px; border: 0; cursor: pointer; text-decoration: none; background: #1B4332; color: #fff; display: inline-block; }
.info-acciones .sec { background: #fff; color: #1B4332; border: 2px solid #1B4332; }
.info [contenteditable="true"] { outline: 2px dashed #E0B94E; outline-offset: 2px; }
.info [contenteditable="true"]:focus { outline-color: #B5533C; }

@media print {
  @page { size: 1100px 1556px; margin: 0; }
  html, body { background: #fff !important; padding: 0 !important; margin: 0 !important; }
  .info-acciones, .no-imprimir, header.navbar, .navbar, .breadcrumb, .huerta-menu, .huerta-hero, .huerta-footer, footer { display: none !important; }
  .huerta-sec, .huerta-sec .container { padding: 0 !important; margin: 0 !important; max-width: none !important; background: none !important; }
  .info-hojas { display: block; gap: 0; }
  .info { margin: 0; padding: 0; }
  .hoja-caja { width: 1100px !important; height: 1554px !important; margin: 0 !important; page-break-after: always; break-after: page; position: relative; }
  .hoja { transform: none !important; border-radius: 0; box-shadow: none; height: 1554px; }
  .hoja-caja:last-child { page-break-after: auto; break-after: auto; }
  .info .i3d iframe { display: none; }
  .hoja, .hoja * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Todas las infografías van sobre fondo blanco (así se ahorra tinta al imprimir); el color queda solo en líneas, números y textos */
  .hoja-cuerpo, .hoja-cuerpo.reparte { background: #fff !important; }
  .hoja-cab { background: #fff !important; color: var(--v1) !important; border-bottom: 5px solid var(--v2); }
  .hoja-cab h2 { color: var(--v1) !important; } .hoja-cab .eb { color: var(--v2) !important; } .hoja-cab .sb { color: var(--suave) !important; }
  .hoja-pie { background: #fff !important; color: var(--tinta) !important; border-top: 4px solid var(--v2); }
  .hoja-pie .ct b { color: var(--v1) !important; } .hoja-pie .ct span, .hoja-pie .qrt, .hoja-pie .pg small { color: var(--suave) !important; } .hoja-pie .pg { color: var(--v2) !important; }
  .hoja-pie .qr { border: 1px solid #B9C9BE; }
  .info .tarj, .info .tarj.tierra, .info .tarj.madera, .info .caj, .info .caj.c2, .info .caj.c3, .info .paso, .info .plano, .info .i3d, .info .ciclo div { background: #fff !important; box-shadow: none !important; border: 1.5px solid #B9D3C0 !important; }
  .info .tarj.tierra, .info .caj.c3 { border-color: #E3B7A8 !important; } .info .tarj.madera, .info .caj.c2 { border-color: #E0C892 !important; }
  .info .cita { background: #fff !important; border: 2.5px solid var(--v2); } .info .cita p, .info .cita p:first-child { color: var(--v1) !important; }
  .info .regla { background: #fff !important; border: 2.5px solid #E0B94E; } .info .si { background: #fff !important; border-color: #8FCBA6; } .info .no { background: #fff !important; border-color: #E0A39C; }
  .info .aviso { background: #fff !important; }
  .info .paso::before { background: #fff !important; color: var(--v2) !important; border: 3px solid var(--v2); }
  .info th { background: #fff !important; color: var(--v1) !important; border-bottom: 3px solid var(--v2); }
  .info tr:nth-child(even) td { background: #fff !important; } .info table { background: #fff !important; border: 1.5px solid #B9D3C0; }
  .info .chip, .info .chip.t, .info .chip.m { background: #fff !important; }
  .info .barra i { background: var(--v2) !important; }
/* un paso con su imagen 3D */
.paso3d { display: grid; grid-template-columns: minmax(180px, 330px) 1fr; gap: 16px; align-items: center; background: #fff; border-radius: 16px; padding: 10px; margin: 0 0 12px; box-shadow: 0 2px 10px rgba(27, 67, 50, .08); }
.paso3d-i .i3d { aspect-ratio: 3 / 2; box-shadow: none; border: 1px solid #DDE8DF; }
.paso3d-t { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: center; }
.paso3d-n { width: 46px; height: 46px; border-radius: 50%; background: #2D6A4F; color: #fff; font-size: 24px; font-weight: 800; display: grid; place-items: center; }
.paso3d-t p { margin: 0; font-size: 1.05rem; line-height: 1.4; }
@media (max-width: 640px) { .paso3d { grid-template-columns: 1fr; } }
@media print { .paso3d { box-shadow: none; border: 1.5px solid #B9D3C0; } .paso3d-n { background: #fff; color: #2D6A4F; border: 3px solid #2D6A4F; } }

.hoja { background: #fff; }
.info .qr-grande { width: 225px; height: 225px; background: #fff; border: 3px solid var(--v2); border-radius: 18px; padding: 14px; margin: 0 auto; }
.info .qr-grande svg { width: 100%; height: 100%; display: block; }

.leyenda-sol { font-size: 15px; line-height: 1.5; color: var(--suave); background: #fff; border: 1.5px solid #B9D3C0; border-radius: 12px; padding: 8px 14px; margin: 8px 0; }
.leyenda-sol .ls { display: inline-block; margin-right: 10px; white-space: nowrap; font-weight: 600; color: var(--tinta); }
.leyenda-sol .ls::before { content: ""; display: inline-block; width: 26px; height: 6px; background: var(--c); border-radius: 3px; margin-right: 6px; vertical-align: middle; }

.info .crece .i3d.pano, .info .i3d.pano { aspect-ratio: 2 / 1; } .info .crece .i3d.pano2, .info .i3d.pano2 { aspect-ratio: 5 / 2; }

/* la lámina entra siempre entera en la pantalla (celular o computador): se reduce como una hoja impresa; con dos dedos se amplía */
.hoja-caja { position: relative; width: 1100px; height: 1556px; max-width: 100%; margin: 0 auto; }
.info-hojas { width: 100%; }

/* fotos del proyecto terminado, enteras */
.info .foto-i { margin: 0; background: #fff; border: 1.5px solid #B9D3C0; border-radius: 14px; overflow: hidden; }
.info .foto-i img { display: block; width: 100%; height: auto; }
.info .foto-i figcaption { font-size: 14px; line-height: 1.3; padding: 6px 10px 8px; color: var(--suave); }
.info .col { display: grid; gap: 12px; align-content: start; min-width: 0; }

/* antes → hoy, diseño → construido, ciclo con imágenes y patrones del lugar */
.info .ah { background: #fff; border: 1.5px solid #B9D3C0; border-radius: 16px; padding: 10px 12px 12px; min-width: 0; }
.info .ah-t { font-size: 17px; font-weight: 800; color: var(--v1); margin: 0 0 8px; }
.info .ah-par { display: grid; align-items: center; gap: 10px; }
.info .ah-par figure, .info .ah-v figure { margin: 0; position: relative; }
.info .ah-par img, .info .ah-v img { display: block; width: 100%; height: auto; border-radius: 10px; }
.info .ah-a img { filter: grayscale(.45); opacity: .93; }
.info .ah-v figure + figure { margin-top: 8px; }
.info .ah-v .ah-a img { background: #fff; border: 1px dashed #B9D3C0; }
.info .ah-flecha { font-size: 28px; font-weight: 800; color: #2D9C6B; line-height: 1; }
.info .ah-tag { position: absolute; left: 6px; top: 6px; z-index: 1; background: rgba(27, 67, 50, .82); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 100px; }
.info .ah-tag.ah-hoy { background: #2D9C6B; }
.info .sis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.info .sis-p { text-align: center; } .info .sis-p b { display: block; margin-top: 6px; font-size: 16px; line-height: 1.25; color: var(--v1); }
.info .sis-i { position: relative; } .info .sis-i img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.info .sis-i span { position: absolute; left: 8px; top: 8px; width: 28px; height: 28px; border-radius: 50%; background: #1B4332; color: #fff; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.info .sis-vuelta { text-align: center; font-weight: 800; color: #2D9C6B; font-size: 15px; margin-top: 6px; }
.info .pats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.info .pat { margin: 0; } .info .pat-i { background: #fff; border: 1.5px solid #B9D3C0; border-radius: 12px; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.info .pat-i img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; object-fit: contain; }
.info .pat figcaption { font-size: 14px; line-height: 1.3; margin-top: 5px; color: var(--suave); } .info .pat figcaption b { color: var(--v1); }
