/* Presupuestador Ajax · Córdoba Seguridad
   Identidad: azul marino, azul y verde agua del logo. Tienda clara, tarjetas con fotos de producto. */
:root{
  --navy:#1d3f8c; --blue:#1784c7; --teal:#1fae93; --ink:#1e2328; --grey:#4d4f52; --muted:#6b7178;
  --line:#dde3ea; --soft:#f2f6fa; --paper:#fff; --bg:#eef2f6; --warn:#b26a00; --warn-bg:#fff6e0; --bad:#c0392b;
  --f-head:"Montserrat","Segoe UI",Arial,sans-serif; --f-body:"Inter","Segoe UI",Arial,sans-serif;
  --r:12px; --shadow:0 2px 14px rgba(20,40,80,.08);
  color-scheme:light;
}
*{box-sizing:border-box}
html,body{margin:0}
body{font-family:var(--f-body);font-size:15px;line-height:1.5;color:var(--ink);background:var(--bg);min-height:100vh;display:flex;flex-direction:column}
.wrap{width:100%;max-width:1180px;margin:0 auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
h1,h2,h3{font-family:var(--f-head);margin:0;text-wrap:balance;color:var(--navy)}
p{margin:0}
button{font:inherit}
.muted{color:var(--muted)}
.tiny{font-size:12px;color:var(--muted)}
[hidden]{display:none!important}

/* Encabezado */
.top{background:#fff;border-bottom:4px solid transparent;border-image:linear-gradient(90deg,var(--navy),var(--blue),var(--teal)) 1;position:sticky;top:0;z-index:20}
.top-in{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-block:10px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--grey)}
.brand img{display:block;height:46px;width:auto}
.brand span{display:flex;flex-direction:column;line-height:1.2}
.brand strong{font-family:var(--f-head);font-style:italic;font-weight:800;font-size:15px}
.brand small{font-size:12px;color:var(--muted)}
.chip-wa{background:#e8f7f2;color:#11785f;font-weight:600;font-size:13px;padding:8px 12px;border-radius:999px;text-decoration:none;white-space:nowrap}
.chip-wa:hover{background:#d6f1e8}

main{flex:1;padding-block:28px 48px}
.loading{padding:80px 0;text-align:center;color:var(--muted)}

/* Progreso */
.steps{display:flex;gap:6px;margin-bottom:22px;flex-wrap:wrap}
.steps span{flex:1 1 0;min-width:90px;font-size:12px;font-weight:600;color:var(--muted);padding-top:8px;border-top:4px solid var(--line)}
.steps span.st-on{color:var(--navy);border-top-color:var(--blue)}
.steps span.st-done{color:var(--teal);border-top-color:var(--teal)}

.head{display:flex;flex-direction:column;gap:6px;margin-bottom:22px}
.head h1{font-size:clamp(24px,3.4vw,34px);line-height:1.15}
.head p{color:var(--grey);max-width:70ch}
.back{background:none;border:0;color:var(--blue);font-weight:600;cursor:pointer;padding:0;margin-bottom:10px;align-self:flex-start}
.back:hover{text-decoration:underline}

/* Portada */
.hero{display:grid;grid-template-columns:1.05fr .95fr;gap:28px;align-items:center;background:linear-gradient(135deg,#fff 0%,#f1f7fc 55%,#ecf8f4 100%);border-radius:18px;padding:36px;box-shadow:var(--shadow);margin-bottom:26px}
.hero h1{font-size:clamp(28px,4vw,44px);line-height:1.1}
.hero .eyebrow{font-size:12px;letter-spacing:.1em;text-transform:uppercase;font-weight:700;color:var(--blue);margin-bottom:10px}
.hero p{color:var(--grey);margin-top:14px;font-size:16px;max-width:52ch}
.hero-pics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.hero-pics img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:12px;background:#fff;box-shadow:0 1px 6px rgba(20,40,80,.08)}
.hero-pics img:nth-child(2){transform:translateY(-14px)}
.hero-pics img:nth-child(5){transform:translateY(-14px)}
.badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}
.badges span{font-size:12.5px;background:#fff;border:1px solid var(--line);padding:5px 10px;border-radius:999px;color:var(--grey)}

.paths{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.path{all:unset;cursor:pointer;background:#fff;border-radius:var(--r);box-shadow:var(--shadow);padding:26px;display:flex;flex-direction:column;gap:10px;border:2px solid transparent;transition:border-color .15s, transform .15s}
.path:hover,.path:focus-visible{border-color:var(--blue);transform:translateY(-2px)}
.path:focus-visible{outline:3px solid var(--teal);outline-offset:2px}
.path .ico{width:52px;height:52px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--navy),var(--blue));color:#fff}
.path h2{font-size:21px}
.path p{color:var(--grey)}
.path .go{margin-top:auto;font-family:var(--f-head);font-weight:700;color:var(--blue)}

/* Tarjetas de selección */
.choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.choice{all:unset;cursor:pointer;background:#fff;border-radius:var(--r);box-shadow:var(--shadow);padding:22px;display:flex;flex-direction:column;gap:8px;border:2px solid transparent;transition:border-color .15s, transform .15s}
.choice:hover,.choice:focus-visible{border-color:var(--blue);transform:translateY(-2px)}
.choice:focus-visible{outline:3px solid var(--teal);outline-offset:2px}
.choice .ico{width:46px;height:46px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:var(--soft);color:var(--navy)}
.choice h3{font-size:18px}
.choice p{font-size:13.5px;color:var(--grey)}
.choice .from{font-size:13px;color:var(--muted)}
.choice .from b{color:var(--navy);font-family:var(--f-head)}

/* Kits */
.kits{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;align-items:stretch}
.kit{background:#fff;border-radius:var(--r);box-shadow:var(--shadow);display:flex;flex-direction:column;overflow:hidden;border:2px solid transparent}
.kit.rec{border-color:var(--blue)}
.kit-top{padding:18px 20px 14px;display:flex;flex-direction:column;gap:6px}
.kit.rec .kit-top{background:linear-gradient(135deg,var(--navy),var(--blue))}
.kit.rec .kit-top h3,.kit.rec .kit-top p{color:#fff}
.lvl{align-self:flex-start;font-family:var(--f-head);font-weight:700;font-size:11px;letter-spacing:.06em;text-transform:uppercase;padding:3px 9px;border-radius:4px;background:var(--soft);color:var(--navy)}
.kit.rec .lvl{background:var(--teal);color:#fff}
.kit-top h3{font-size:19px}
.kit-top p{font-size:13.5px;color:var(--grey)}
.thumbs{display:flex;gap:6px;padding:12px 20px;flex-wrap:wrap;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--soft)}
.thumb{position:relative;width:52px;height:52px;border-radius:8px;overflow:hidden;background:#fff;border:1px solid var(--line)}
.thumb img{width:100%;height:100%;object-fit:cover}
.thumb b{position:absolute;right:2px;bottom:2px;background:var(--navy);color:#fff;font-size:10px;font-weight:700;border-radius:4px;padding:0 4px;line-height:15px}
.kit-list{list-style:none;margin:0;padding:14px 20px;display:flex;flex-direction:column;gap:5px;font-size:13.5px;color:var(--grey)}
.kit-list li{display:flex;gap:8px}
.kit-list li b{color:var(--navy);min-width:22px}
.kit-ideal{margin:0 20px;font-size:13px;background:var(--soft);border-radius:8px;padding:9px 11px;color:var(--grey)}
.kit-price{padding:16px 20px 0;display:flex;flex-direction:column;gap:3px;margin-top:auto}
.kit-price .total{font-family:var(--f-head);font-weight:800;font-size:26px;color:var(--navy)}
.kit-price small{color:var(--muted);font-size:12.5px}
.kit-cta{padding:16px 20px 20px}

/* Botones */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-family:var(--f-head);font-weight:700;font-size:14.5px;border-radius:8px;padding:12px 18px;border:1px solid var(--navy);background:var(--navy);color:#fff;cursor:pointer;text-decoration:none}
.btn:hover{background:var(--blue);border-color:var(--blue)}
.btn:focus-visible{outline:3px solid var(--teal);outline-offset:2px}
.btn.ghost{background:#fff;color:var(--navy)}
.btn.ghost:hover{background:var(--soft)}
.btn.block{width:100%}
.btn-big{width:100%;padding:15px 18px;font-size:16px}
.btn[disabled]{opacity:.55;cursor:not-allowed}
.icon-btn{border:0;background:var(--soft);width:36px;height:36px;border-radius:50%;cursor:pointer;font-size:16px;color:var(--grey)}
.icon-btn:hover{background:var(--line)}

/* Ambientes */
.amb-layout{display:grid;grid-template-columns:1fr 340px;gap:22px;align-items:start}
.amb-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}
.amb{background:#fff;border-radius:var(--r);box-shadow:var(--shadow);padding:14px 16px;display:flex;flex-direction:column;gap:8px;border:2px solid transparent}
.amb-h{display:flex;align-items:center;gap:12px}
.amb .stepper{margin-top:auto;align-self:flex-end}
.amb.on{border-color:var(--teal)}
.amb .ico{width:44px;height:44px;border-radius:10px;background:var(--soft);color:var(--navy);display:flex;align-items:center;justify-content:center}
.amb.on .ico{background:#e3f6f1;color:#11785f}
.amb h3{font-size:14.5px;color:var(--ink)}
.amb p{font-size:12px;color:var(--muted);line-height:1.35}
.stepper{display:flex;align-items:center;gap:6px}
.stepper button{width:32px;height:32px;border-radius:8px;border:1px solid var(--line);background:#fff;font-size:18px;font-weight:700;color:var(--navy);cursor:pointer;line-height:1}
.stepper button:hover{background:var(--soft)}
.stepper output{min-width:22px;text-align:center;font-family:var(--f-head);font-weight:800;font-size:16px;font-variant-numeric:tabular-nums}
.panel{background:#fff;border-radius:var(--r);box-shadow:var(--shadow);padding:18px;display:flex;flex-direction:column;gap:14px}
.panel h3{font-size:16px}
.q{display:flex;flex-direction:column;gap:6px}
.q > span{font-weight:600;font-size:14px}
.toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px;cursor:pointer}
.toggle input{width:44px;height:24px;appearance:none;background:var(--line);border-radius:999px;position:relative;cursor:pointer;flex:none;transition:background .15s}
.toggle input::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;transition:left .15s}
.toggle input:checked{background:var(--teal)}
.toggle input:checked::after{left:23px}
.toggle input:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.toggle small{display:block;color:var(--muted);font-size:12px}
.seg{display:flex;flex-direction:column;gap:6px}
.seg label{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--line);border-radius:8px;padding:9px 11px;cursor:pointer;font-size:13.5px}
.seg label:has(input:checked){border-color:var(--blue);background:#f1f7fc}
.seg input{margin-top:3px;accent-color:var(--blue)}
.seg small{display:block;color:var(--muted);font-size:12px}
.users{display:flex;align-items:center;justify-content:space-between;font-size:14px}

/* Carrito */
.cart-layout{display:grid;grid-template-columns:1fr 360px;gap:22px;align-items:start}
.cart-list{background:#fff;border-radius:var(--r);box-shadow:var(--shadow);overflow:hidden}
.cart-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.cart-head h2{font-size:17px}
.line{display:grid;grid-template-columns:84px 1fr auto auto;gap:14px;align-items:center;padding:12px 18px;border-bottom:1px solid var(--line)}
.line:last-child{border-bottom:0}
.line img{width:84px;height:60px;object-fit:cover;border-radius:8px;border:1px solid var(--line);background:#fff}
.line h3{font-family:var(--f-body);font-weight:600;font-size:14.5px;color:var(--ink)}
.line p{font-size:12.5px;color:var(--muted);line-height:1.35}
.line .unit{font-size:12px;color:var(--muted)}
.line .sub{font-family:var(--f-head);font-weight:700;color:var(--navy);min-width:96px;text-align:right;font-variant-numeric:tabular-nums}
.line .rm{border:0;background:none;color:var(--muted);font-size:12px;cursor:pointer;padding:0;text-decoration:underline}
.line .rm:hover{color:var(--bad)}
.empty{padding:40px 18px;text-align:center;color:var(--muted)}
.summary{position:sticky;top:96px}
.sum-row{display:flex;justify-content:space-between;gap:12px;font-size:14px;font-variant-numeric:tabular-nums}
.sum-row.total{font-family:var(--f-head);font-weight:800;font-size:22px;color:var(--navy);border-top:2px solid var(--line);padding-top:12px}
.sum-ars{font-size:13px;color:var(--muted);text-align:right}
.alerts{display:flex;flex-direction:column;gap:8px}
.alert{background:var(--warn-bg);color:var(--warn);font-size:13px;border-radius:8px;padding:9px 11px}
.note{font-size:12px;color:var(--muted)}

/* Catálogo lateral */
.drawer{position:fixed;inset:0;background:rgba(15,25,45,.45);z-index:50;display:flex;justify-content:flex-end}
.drawer-panel{background:var(--bg);width:min(760px,100%);height:100%;display:flex;flex-direction:column;box-shadow:-6px 0 24px rgba(0,0,0,.15)}
.drawer-head{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;background:#fff;border-bottom:1px solid var(--line)}
.drawer-head h2{font-size:18px}
.drawer-tools{padding:12px 18px;background:#fff;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:10px}
.drawer-tools input{padding:10px 12px;border:1px solid var(--line);border-radius:8px;font-size:15px}
.chips{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px}
.chips button{flex:none;border:1px solid var(--line);background:#fff;border-radius:999px;padding:6px 12px;font-size:13px;cursor:pointer;color:var(--grey)}
.chips button.on{background:var(--navy);border-color:var(--navy);color:#fff}
.cat-grid{flex:1;overflow-y:auto;padding:16px 18px;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px;align-content:start}
.prod{background:#fff;border-radius:10px;box-shadow:0 1px 6px rgba(20,40,80,.07);overflow:hidden;display:flex;flex-direction:column}
.prod img{width:100%;aspect-ratio:16/10;object-fit:cover;background:#fff}
.prod-b{padding:10px 12px 12px;display:flex;flex-direction:column;gap:6px;flex:1}
.prod-b h3{font-family:var(--f-body);font-weight:600;font-size:14px;color:var(--ink)}
.prod-b p{font-size:12.5px;color:var(--muted);line-height:1.35}
.prod-b .price{font-family:var(--f-head);font-weight:800;color:var(--navy);margin-top:auto}
.prod-b .in{font-size:12px;color:#11785f;font-weight:600}

/* Modal */
.modal{position:fixed;inset:0;background:rgba(15,25,45,.5);z-index:60;display:flex;align-items:center;justify-content:center;padding:16px}
.modal-panel{background:#fff;border-radius:16px;padding:26px;width:min(480px,100%);position:relative;display:flex;flex-direction:column;gap:12px;max-height:100%;overflow-y:auto}
.modal-x{position:absolute;top:14px;right:14px}
.modal-panel h2{font-size:21px;padding-right:40px}
#lead-form{display:flex;flex-direction:column;gap:10px}
#lead-form label{display:flex;flex-direction:column;gap:4px;font-size:13px;font-weight:600;color:var(--grey)}
#lead-form input{padding:11px 12px;border:1px solid var(--line);border-radius:8px;font-size:15px;font-family:inherit}
#lead-form input:focus{outline:2px solid var(--blue);border-color:var(--blue)}
#lead-form input.bad{border-color:var(--bad);background:#fff7f6}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.form-error{background:#fdecea;color:var(--bad);font-size:13px;border-radius:8px;padding:9px 11px}

/* Listo */
.done{background:#fff;border-radius:18px;box-shadow:var(--shadow);padding:36px;max-width:640px;margin:0 auto;text-align:center;display:flex;flex-direction:column;gap:14px;align-items:center}
.done .ok{width:64px;height:64px;border-radius:50%;background:#e3f6f1;color:#11785f;display:flex;align-items:center;justify-content:center;font-size:30px}
.done .actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}

.foot{background:var(--navy);color:#fff;font-size:13px}
.foot-in{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;padding-block:16px}

@media (max-width:900px){
  .hero{grid-template-columns:1fr;padding:24px}
  .kits{grid-template-columns:1fr}
  .amb-layout,.cart-layout{grid-template-columns:1fr}
  .summary{position:static}
}
@media (max-width:640px){
  .paths{grid-template-columns:1fr}
  .brand small{display:none}
  .chip-wa{font-size:12px;padding:7px 10px}
  .line{grid-template-columns:64px 1fr;grid-template-areas:"img info" "qty sub"}
  .line img{width:64px;height:48px;grid-area:img}
  .line .info{grid-area:info}
  .line .stepper{grid-area:qty}
  .line .sub{grid-area:sub}
  .grid2{grid-template-columns:1fr}
  .cat-grid{grid-template-columns:1fr 1fr;gap:10px;padding:12px}
  .hero-pics img:nth-child(2),.hero-pics img:nth-child(5){transform:none}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}

/* Precio final sin desglose (público) / modo interno con costos (panel) */
.line .sub:empty{display:none}
.sum-row small{color:var(--muted);font-size:12px;font-weight:400}
.chip-int{background:#fff3d6;color:#8a5a00;font-weight:700;font-size:13px;padding:8px 12px;border-radius:999px;text-decoration:none;white-space:nowrap}
.int-box{margin-top:6px;padding:10px 12px;border-radius:8px;background:#fff8e6;border:1px dashed #e8c66a;display:flex;flex-direction:column;gap:6px}
.int-box .sum-row{font-size:13px;color:#7a5200}
.kit-price small.int{color:#8a5a00}
.sum-row span:last-child{white-space:nowrap}

/* Datos antes de cotizar */
.modal-panel{overflow-x:hidden}
.modal-panel .grid2>*{min-width:0}
.modal-panel input{width:100%;min-width:0;box-sizing:border-box}
.modal-panel .opt{font-weight:400;color:var(--muted);font-size:11.5px}
.why{background:var(--soft,#f2f6fa);border-radius:10px;padding:12px 14px;font-size:13.5px;line-height:1.45}
.why p{margin:0 0 6px}
.why ul{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:4px;color:var(--ink)}
.hola{display:inline-block;margin-top:10px;font-size:13.5px;color:var(--muted)}
.hola b{color:var(--navy)}
