/* NOPAL · Colabora — base calida: crema, beige, verde nopal suave y terracota.
   En escritorio todo se mide en rem y el rem escala con la ventana,
   para que cada pantalla quepa en una sola vista panoramica. */
:root{
  --cream:#f6f0e5; --paper:#fcf8f0; --beige:#ebdfc9; --line:#e0d2b8;
  --ink:#35200f; --text:#4a3726; --muted:#6e5a47;
  --green:#55704f; --green-dark:#40563b; --green-soft:#e3e8d8; --plate:#1f2b1d;
  --terra:#a24d2c; --terra-btn:#ae5630; --terra-dark:#8f4525;
  --danger:#9c2f1f;
  --radius:1rem; --shadow:0 .25rem 1rem rgba(76,52,28,.10);
}
*{box-sizing:border-box;margin:0;padding:0}
[hidden]{display:none!important}
html{font-size:16px}
body{background:var(--cream);color:var(--text);font-family:"Roboto Condensed","Arial Narrow",system-ui,sans-serif;line-height:1.35;min-height:100vh;display:flex;flex-direction:column}
img{display:block;max-width:100%}
a{color:inherit}
:focus-visible{outline:3px solid var(--terra);outline-offset:2px}
h1:focus,.done:focus{outline:none}
.skip{position:absolute;left:-999px}
.skip:focus{left:1rem;top:.5rem;z-index:20;background:#fff;padding:.5rem .8rem;border-radius:.5rem}
.ic{width:1.25em;height:1.25em;flex:none;vertical-align:-.25em}

/* ---------- encabezado ---------- */
.hdr{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.35rem 2.5rem;background:var(--paper);border-bottom:1px solid var(--line);box-shadow:0 .1rem .5rem rgba(76,52,28,.07)}
.logo-tile{display:block;background:var(--plate);border-radius:.8rem;padding:.35rem 1rem;flex:none}
.logo-tile img{height:4.8rem;width:auto}
.nav{display:flex;gap:2.8rem;align-items:center;flex-wrap:wrap}
.nav a{text-decoration:none;font-weight:700;font-size:1.25rem;color:var(--ink);padding:.35rem 0;border-bottom:.18rem solid transparent}
.nav a:hover{color:var(--green)}
.nav a.active{color:var(--green);border-bottom-color:var(--green)}
.theme-btn{display:flex;align-items:center;justify-content:center;flex:none;width:2.4rem;height:2.4rem;padding:0;color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:.5rem;cursor:pointer;}
.theme-btn:hover{background:var(--beige);}
.theme-btn svg{width:55%;height:55%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.theme-btn .sun,:root[data-theme="dark"] .theme-btn .moon{display:none;}
:root[data-theme="dark"] .theme-btn .sun{display:block;}
.nav .lang{border:1px solid var(--line);border-radius:.5rem;padding:.2rem .7rem;font-size:1rem}

/* ---------- comunes ---------- */
main{flex:1;display:flex;flex-direction:column}
.screen{flex:1;display:flex;flex-direction:column;gap:.8rem;padding:.8rem 2.5rem .5rem}
h1{font-size:3rem;line-height:1.05;color:var(--ink);font-weight:700}
.subtitle{font-size:1.5rem;color:var(--green);font-weight:700;margin-top:.1rem;line-height:1.2}
.backlink{display:inline-block;font-size:1rem;font-weight:600;color:var(--muted);text-decoration:none}
.backlink:hover{color:var(--terra)}
.sec-title{font-size:1.65rem;color:var(--green);line-height:1.1}
.sec-title.terra{color:var(--terra)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;font:inherit;font-weight:700;font-size:1.2rem;line-height:1.15;padding:.7rem 1.5rem;border-radius:.55rem;border:2px solid transparent;cursor:pointer;text-decoration:none;text-align:center}
.btn-green{background:var(--green);color:#fffaf0}
.btn-green:hover{background:var(--green-dark)}
.btn-terra{background:var(--terra-btn);color:#fffaf0}
.btn-terra:hover{background:var(--terra-dark)}
.btn-line{border-color:var(--green);color:var(--green-dark)}
.btn[disabled]{opacity:.6;cursor:progress}
.btn.block{width:100%}
.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:1rem 1.4rem;display:flex;flex-direction:column;min-width:0}
.photo{overflow:hidden;border-radius:var(--radius);background:var(--beige);position:relative;min-height:0}
.photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:sepia(.14) saturate(.95)}

/* ---------- tarjetas de opciones ---------- */
.opt{position:relative;display:flex;background:var(--paper);border:2px solid var(--line);border-radius:var(--radius);cursor:pointer;transition:border-color .15s,background-color .15s}
.opt:hover{border-color:#b9a782}
.opt input{position:absolute;opacity:0;width:1px;height:1px}
.opt-ic{display:grid;place-items:center;width:3.1rem;height:3.1rem;border-radius:50%;background:var(--green-soft);color:var(--green-dark);font-size:1.45rem;flex:none}
.opt-txt{display:flex;flex-direction:column;gap:.25rem;min-width:0}
.opt-txt b{font-size:1.28rem;color:var(--ink);line-height:1.15}
.opt-txt>span{font-size:1.08rem;color:var(--muted);line-height:1.28}
.opt-check{position:absolute;top:.8rem;right:.8rem;width:1.45rem;height:1.45rem;border:2px solid #b7a583;border-radius:.35rem;background:#fff}
.opt:has(input:checked){border-color:var(--green);background:#eef1e4}
.opt input:checked~.opt-check{background:var(--green);border-color:var(--green)}
.opt input:checked~.opt-check::after{content:"";position:absolute;left:.38rem;top:.14rem;width:.38rem;height:.72rem;border:solid #fff;border-width:0 .18rem .18rem 0;transform:rotate(45deg)}
.opt:has(input:focus-visible){outline:3px solid var(--terra);outline-offset:2px}

/* ---------- pantalla 1 ---------- */
.home-head{display:grid;grid-template-columns:minmax(0,34fr) minmax(0,66fr);gap:1.5rem;align-items:stretch}
.home-head .titles{align-self:center}
.home-head .subtitle{font-size:1.3rem;max-width:34ch;margin-top:.4rem}
.photo-band{display:grid;grid-template-columns:repeat(4,1fr);gap:.7rem;height:9rem}
.maker-jump{display:none}
.home-grid{flex:1;display:grid;grid-template-columns:minmax(0,66fr) minmax(0,34fr);gap:1.5rem}
.people{display:flex;flex-direction:column;gap:.7rem;min-width:0}
.opt-grid{flex:1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:1fr;gap:.8rem}
.opt-grid .opt{flex-direction:column;gap:.7rem;padding:1rem}
.people-bar{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}
.count{font-size:1.1rem;color:var(--muted)}
.brands{background:var(--beige);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:.9rem 1.4rem;display:flex;flex-direction:column;gap:.45rem}
.brands h3{font-size:1.25rem;color:var(--ink)}
.brands h4{font-size:1.15rem;color:var(--terra);margin-top:.1rem}
.asks{padding-left:1.15rem;font-size:1.08rem;display:flex;flex-direction:column;gap:.2rem}
.asks li::marker{color:var(--terra)}
.round{display:grid;place-items:center;width:2.3rem;height:2.3rem;flex:none;border-radius:50%;background:var(--paper);color:var(--green);font-size:1.15rem;box-shadow:var(--shadow)}
.benefit{font-size:1.22rem;line-height:1.4;color:var(--ink)}
.brands .btn{margin-top:auto}
.strip{display:flex;align-items:center;gap:2rem;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:.55rem 1.4rem}
.strip h2{font-size:1.25rem;color:var(--green);white-space:nowrap}
.strip ul{list-style:none;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1rem;flex:1}
.strip li{display:flex;align-items:center;gap:.55rem;font-size:1.02rem;font-weight:600;line-height:1.2}
.strip li .ic{font-size:1.5rem;color:var(--terra)}

/* ---------- formularios ---------- */
.card form{flex:1;display:flex;flex-direction:column;gap:.55rem}
.row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}
.field{display:flex;flex-direction:column;gap:.18rem;min-width:0}
.field label{font-size:1.04rem;font-weight:700;color:var(--ink);line-height:1.2}
.row>.field{justify-content:flex-end}
.row.grow>.field{justify-content:flex-start}
.row.grow label{min-height:2.45em}
.grow{flex:1}
.hint{font-weight:400;color:var(--muted);font-size:.9em}
.req{color:var(--terra)}
input[type=text],input[type=email],textarea{width:100%;font:inherit;font-size:1.05rem;color:var(--ink);background:#fff;border:1.5px solid #d3c2a1;border-radius:.5rem;padding:.42rem .7rem}
textarea{resize:vertical;min-height:2.9rem}
.field.grow textarea,.row.grow textarea{flex:1}
input[type=text]:focus,input[type=email]:focus,textarea:focus{outline:none;border-color:var(--green);box-shadow:0 0 0 .18rem rgba(85,112,79,.22)}
[aria-invalid=true]{border-color:var(--danger)!important}
input[type=checkbox]{accent-color:var(--green);width:1.15rem;height:1.15rem;flex:none}
.lend{border:1.5px solid #d3c2a1;border-radius:.5rem;padding:.2rem .8rem .45rem;background:#fff;min-width:0}
.lend legend{font-size:1.04rem;font-weight:700;color:var(--ink);padding:0 .3rem}
.lend label,.consent{display:flex;gap:.6rem;align-items:flex-start;font-size:1.05rem;cursor:pointer}
.lend input,.consent input{margin-top:.1rem}
.loan{font-size:.95rem;color:var(--muted);line-height:1.25;margin-top:.25rem}
.consent.bad{color:var(--danger)}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.form-error{background:#f8e0d8;border:1px solid #d99a87;color:var(--danger);border-radius:.5rem;padding:.45rem .8rem;font-weight:600;font-size:1.02rem}
.form-error a{text-decoration:underline}
.send-row{display:flex;align-items:center;gap:1rem}
.send-row .btn{flex:none}
.dest{font-size:.95rem;color:var(--muted);line-height:1.25}
.done{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:.9rem;padding:2rem 1rem}
.done h2{font-size:1.8rem;color:var(--green-dark)}
.done p{font-size:1.2rem}
.round.big{width:4.5rem;height:4.5rem;font-size:2.2rem}

/* ---------- pantalla 2 ---------- */
.maker-grid{flex:1;display:grid;grid-template-columns:minmax(0,43fr) minmax(0,57fr);gap:2.5rem}
.offer-panel{background:var(--beige);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);display:grid;grid-template-columns:minmax(0,46fr) minmax(0,54fr);overflow:hidden}
.offer-copy{padding:1.5rem 1.8rem;display:flex;flex-direction:column;justify-content:center;gap:1.2rem}
.offer-copy h2{font-size:2.2rem;line-height:1.08;color:var(--terra)}
.offer-copy .benefit{font-size:1.5rem}
.offer-photos{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:3fr 2fr;gap:.45rem;padding:.45rem .45rem .45rem 0}
.offer-photos .photo{border-radius:.7rem}
.offer-photos .photo:first-child{grid-column:1/-1}

/* ---------- pantalla 3 ---------- */
.people-grid{flex:1;display:grid;grid-template-columns:minmax(0,43fr) minmax(0,40fr) minmax(0,17fr);gap:1.5rem}
.pick{border:0;min-width:0;display:flex;flex-direction:column}
.pick legend{font-size:1.2rem;font-weight:700;color:var(--ink);margin-bottom:.5rem}
.pick.bad legend{color:var(--danger)}
.pick.bad .opt{border-color:#d99a87}
.opt-list{flex:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr;gap:.7rem}
.opt-list .opt{align-items:center;gap:.75rem;padding:.6rem 2.7rem .6rem .8rem}
.opt-list .opt-check{top:50%;margin-top:-.72rem}
.opt-list .opt-ic{width:2.8rem;height:2.8rem;font-size:1.3rem}
.opt-list .opt-txt b{font-size:1.17rem}
.opt-list .opt-txt>span{font-size:1rem}
.side-photos{display:grid;grid-template-rows:repeat(3,1fr);gap:.7rem}

/* ---------- pie ---------- */
.foot{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;flex-wrap:wrap;padding:.1rem 2.5rem .4rem;font-size:.86rem;color:var(--muted)}
.foot details{max-width:55rem}
.foot details:last-child{text-align:right}
.foot summary{cursor:pointer}
.foot p{margin-top:.3rem}

/* ---------- escritorio panoramico: una pantalla = una vista ---------- */
@media (min-width:1200px) and (min-height:640px){
  html{font-size:clamp(11.5px,min(.84vw,1.68vh),24px)}
}

/* ---------- portatiles pequenas y tabletas ---------- */
@media (max-width:1199px){
  .home-head,.home-grid,.maker-grid,.people-grid{grid-template-columns:minmax(0,1fr)}
  .opt-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .side-photos{grid-template-rows:none;grid-template-columns:repeat(3,1fr);height:9rem}
  .strip{flex-direction:column;align-items:flex-start;gap:.8rem}
  .strip ul{grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .offer-panel{grid-template-columns:minmax(0,1fr)}
  .offer-photos{height:22rem;padding:.45rem}
}

/* ---------- movil ---------- */
@media (max-width:700px){
  .hdr{flex-direction:column;padding:.6rem 1rem;gap:.4rem}
  .logo-tile img{height:5.5rem}
  .nav{gap:.3rem 1.2rem;justify-content:center}
  .nav a{font-size:1.08rem}
  .screen{padding:1rem 1rem .8rem;gap:1rem}
  h1{font-size:2.3rem}
  .subtitle{font-size:1.25rem}
  .maker-jump{display:flex;justify-content:center;align-items:center;gap:.5rem;margin-top:.8rem;padding:.7rem 1rem;border-radius:.55rem;background:var(--terra-btn);color:#fffaf0;font-weight:700;font-size:1.15rem;text-decoration:none}
  .photo-band{grid-template-columns:repeat(2,1fr);grid-auto-rows:6.5rem;height:auto}
  .opt-grid,.opt-list,.row,.strip ul{grid-template-columns:minmax(0,1fr)}
  .opt-grid,.opt-list{grid-auto-rows:auto}
  .opt-grid .opt{flex-direction:row;align-items:flex-start;padding:.85rem 2.8rem .85rem .85rem}
  .row.grow label{min-height:0}
  .people-bar .btn{width:100%}
  .card{padding:1rem}
  input[type=text],input[type=email],textarea{font-size:16px}
  textarea{min-height:5rem}
  .send-row{flex-direction:column;align-items:stretch}
  .offer-photos{height:16rem}
  .side-photos{height:6rem}
  .foot{padding:.5rem 1rem 1rem;flex-direction:column}
  .foot details:last-child{text-align:left}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}

/* ---------- tema oscuro calido ---------- */
:root[data-theme="dark"]{color-scheme:dark;--cream:#1d1712;--paper:#29211a;--beige:#352a1f;--line:#4b3d2f;--ink:#f4ead9;--text:#ddcfb9;--muted:#bba992;--green:#9dbd8d;--green-dark:#b7d2a8;--green-soft:#303b29;--terra:#e49069;--danger:#ff9c86;--shadow:0 .25rem 1rem rgba(0,0,0,.45)}
:root[data-theme="dark"] .skip:focus{background:var(--paper)}
:root[data-theme="dark"] .btn-green{background:#55704f}
:root[data-theme="dark"] .btn-green:hover{background:#40563b}
:root[data-theme="dark"] .opt:hover{border-color:#75614a}
:root[data-theme="dark"] .opt:has(input:checked){border-color:var(--green);background:#2f3828}
:root[data-theme="dark"] .opt-check{background:#1d1712;border-color:#75614a}
:root[data-theme="dark"] .opt input:checked~.opt-check{background:#6d8d60;border-color:#6d8d60}
:root[data-theme="dark"] :is(input[type=text],input[type=email],textarea,.lend){background:#1f1913;border-color:#5a4a38}
:root[data-theme="dark"] input[type=checkbox]{accent-color:#6d8d60}
:root[data-theme="dark"] :is(input[type=text],input[type=email],textarea):focus{border-color:var(--green)}
:root[data-theme="dark"] .form-error{background:#44231b;border-color:#8a4a38}
:root[data-theme="dark"] .pick.bad .opt{border-color:#8a4a38}
