:root {
  --azul: #2064B6; --azul-hondo: #174A8A; --navy: #0F2540; --menta: #6DCCC3; --cian: #39ADD1;
  --gris: #DAE1E7; --bruma: #F3F6F9; --pizarra: #5B6B7C; --blanco: #fff; --wa: #1FA855; --rojo: #C2352B;
  --radio: 18px; --sombra: 0 18px 40px -22px rgba(15,37,64,.45);
  --ancho: 1180px; --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; -webkit-text-size-adjust: 100%; }
html.bloqueo { overflow: hidden; }
body { font-family: 'Montserrat', system-ui, sans-serif; color: var(--navy); background: var(--blanco); line-height: 1.5; }
body.con-barra { padding-bottom: 96px; }
b { font-weight: 700; }
a { color: var(--azul); }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
svg { display: block; }
:focus-visible { outline: 3px solid var(--cian); outline-offset: 2px; }
.saltar { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 10px; }
.saltar:focus { left: 8px; }
.simbolo { fill: currentColor; }

/* ───── cabecera ───── */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px var(--gutter); background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--gris); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.logo .sim { width: 28px; color: var(--azul); }
.logo b { font-weight: 800; }
.btn-carrito { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 99px; border: 1.5px solid var(--gris); font-size: 14px; font-weight: 600; }
.btn-carrito svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-carrito .badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--azul); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.btn-carrito:hover { border-color: var(--azul); }

/* ───── hero ───── */
.hero { color: #fff; padding: clamp(48px, 9vw, 96px) var(--gutter) clamp(44px, 7vw, 80px);
  background: radial-gradient(700px 520px at 95% 0%, rgba(109,204,195,.35), transparent 70%),
              radial-gradient(800px 600px at 0% 100%, rgba(57,173,209,.28), transparent 70%),
              linear-gradient(160deg, var(--azul) 0%, var(--azul-hondo) 70%, var(--navy) 100%); }
.hero > * { max-width: var(--ancho); margin-inline: auto; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--menta); }
.hero h1 { margin-top: 14px; font-size: clamp(38px, 7vw, 76px); line-height: 1.02; font-weight: 400; letter-spacing: -.035em; }
.hero h1 b { font-weight: 800; font-style: italic; }
.lead { margin-top: 18px; max-width: 620px; font-size: clamp(16px, 2.2vw, 19px); color: rgba(255,255,255,.88); }
.hero .lead, .pasos, .hero .desde { margin-left: max(0px, calc((100% - var(--ancho)) / 2)); }
.pasos { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-size: 15px; font-weight: 600; }
.pasos li { display: flex; align-items: center; gap: 10px; }
.pasos span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); font-size: 13px; }
.hero .desde { display: inline-block; margin-top: 30px; padding: 10px 20px; border-radius: 99px; background: #fff; color: var(--navy); font-size: 14px; font-weight: 600; }
.hero .desde b { color: var(--azul); font-size: 20px; font-weight: 800; }
.hero .desde small { color: var(--pizarra); font-weight: 700; font-size: 11px; letter-spacing: .06em; }

/* ───── barra de categorías ───── */
.cats { position: sticky; top: 61px; z-index: 15; display: flex; gap: 8px; overflow-x: auto; padding: 12px var(--gutter); background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--gris); scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats a { flex: none; padding: 8px 16px; border-radius: 99px; background: var(--bruma); color: var(--navy); text-decoration: none; font-size: 14px; font-weight: 600; border: 1.5px solid transparent; }
.cats a.activo { background: var(--azul); color: #fff; }
@media (min-width: 1100px) { .cats { justify-content: center; } }

/* ───── categorías ───── */
#catalogo { max-width: calc(var(--ancho) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.cat { padding-top: clamp(48px, 7vw, 80px); }
.etq { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--azul); }
.etq span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--azul); color: #fff; font-size: 12px; letter-spacing: 0; }
.cat h2, .como h2 { margin-top: 12px; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.08; font-weight: 400; letter-spacing: -.025em; }
.cat h2 b, .como h2 b { font-weight: 800; font-style: italic; color: var(--azul); }
.intro { margin-top: 12px; max-width: 680px; font-size: 16px; color: var(--pizarra); }
.etq2 { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--azul); }

.planes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; align-items: stretch; }
.planes.tres { grid-template-columns: repeat(3, 1fr); }
.plan { position: relative; display: flex; flex-direction: column; padding: 26px 20px 20px; border-radius: var(--radio); background: var(--bruma); border: 2px solid var(--gris); transition: border-color .2s, box-shadow .2s, transform .2s; }
.plan h3 { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.plan .para { margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--pizarra); min-height: 36px; }
.precio { margin-top: 14px; font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--azul); white-space: nowrap; }
.precio small { font-size: 14px; letter-spacing: 0; margin-right: 3px; vertical-align: 14px; }
.precio em { font-size: 14px; font-style: normal; font-weight: 600; letter-spacing: 0; color: var(--pizarra); margin-left: 2px; }
.precio .desde-t { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-right: 8px; vertical-align: 8px; }
.itbis { margin-top: 5px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--pizarra); }
.chip { align-self: flex-start; margin-top: 12px; padding: 5px 11px; border-radius: 99px; background: #fff; border: 1px solid var(--gris); font-size: 12px; font-weight: 600; }
.plan ul { list-style: none; margin-top: 14px; flex: 1; }
.plan li { position: relative; padding: 7px 0 7px 18px; font-size: 14px; line-height: 1.4; border-top: 1px solid var(--gris); }
.plan li:first-child { border-top: 0; }
.plan li::before, .especial li::before { content: ''; position: absolute; left: 1px; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--menta); }
.pie-plan { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--gris); font-size: 12px; font-weight: 600; color: var(--pizarra); }
.tag { position: absolute; top: -12px; left: 18px; padding: 4px 11px; border-radius: 99px; background: var(--menta); color: var(--navy); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ahorro { margin-top: 10px; font-size: 13px; color: var(--pizarra); }
.ahorro b { color: var(--azul); }

.plan.dest { background: linear-gradient(160deg, var(--azul), var(--azul-hondo)); border-color: transparent; color: #fff; box-shadow: 0 20px 44px -22px rgba(32,100,182,.75); }
.plan.dest .para, .plan.dest .pie-plan, .plan.dest .precio em, .plan.dest .itbis, .plan.dest .ahorro { color: rgba(255,255,255,.8); }
.plan.dest .precio { color: #fff; }
.plan.dest .chip { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: #fff; }
.plan.dest li { border-color: rgba(255,255,255,.18); }
.plan.dest .pie-plan { border-color: rgba(255,255,255,.3); }
.plan.dest .ahorro b { color: var(--menta); }

/* seleccionado */
.check { position: absolute; top: 14px; right: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--menta); display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: .2s; }
.check svg { width: 16px; height: 16px; fill: none; stroke: var(--navy); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sel > .check { opacity: 1; transform: none; }
.plan.sel { border-color: var(--menta); box-shadow: 0 0 0 4px rgba(109,204,195,.35), var(--sombra); }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 99px; font-size: 15px; font-weight: 700; transition: background .2s, color .2s, border-color .2s; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primario { background: var(--azul); color: #fff; }
.btn.primario:hover:not(:disabled) { background: var(--azul-hondo); }
.btn.secundario { border: 1.5px solid var(--gris); color: var(--navy); background: #fff; }
.btn.claro { background: #fff; color: var(--azul); border: 1.5px solid var(--gris); }
.btn.wa { background: var(--wa); }
.btn.wa:hover { background: #178a45 !important; }
.btn.wa svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.agregar { margin-top: 16px; width: 100%; background: var(--azul); color: #fff; }
.agregar:hover { background: var(--azul-hondo); }
.plan.dest .agregar { background: #fff; color: var(--azul); }
.agregar .t-on, .agregar[aria-pressed="true"] .t-off { display: none; }
.agregar[aria-pressed="true"] .t-on { display: inline; }
.agregar[aria-pressed="true"] { background: var(--menta) !important; color: var(--navy) !important; }
.link { color: var(--azul); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; font-size: inherit; }

/* Shopify */
.especial { position: relative; display: grid; grid-template-columns: 300px 1fr; gap: 28px; margin-top: 16px; padding: 26px 28px; border-radius: var(--radio); color: #fff; border: 2px solid transparent;
  background: radial-gradient(420px 220px at 100% 0%, rgba(109,204,195,.28), transparent 70%), var(--navy); }
.especial .etq2 { color: var(--menta); }
.especial h3 { margin-top: 4px; font-size: 24px; font-weight: 800; }
.especial .precio { color: #fff; }
.especial .itbis, .especial .para { color: rgba(255,255,255,.75); }
.especial .para { margin-top: 10px; font-size: 13px; }
.especial ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; }
.especial li { position: relative; padding: 7px 0 7px 18px; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,.12); }
.esp-acc { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; font-size: 13px; color: rgba(255,255,255,.7); font-weight: 600; }
.esp-acc .agregar { width: auto; margin: 0; padding: 0 22px; }
.especial.sel { border-color: var(--menta); box-shadow: 0 0 0 4px rgba(109,204,195,.35); }

/* extras */
.extras { margin-top: 18px; padding: 18px 20px; border: 1.5px solid var(--gris); border-radius: var(--radio); }
.extras-lista { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.extra { display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; border-radius: 99px; background: var(--bruma); border: 1.5px solid var(--gris); font-size: 14px; text-align: left; }
.extra b { color: var(--azul); white-space: nowrap; }
.extra .mas { position: relative; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1.5px solid var(--gris); flex: none; }
.extra .mas::before, .extra .mas::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; background: var(--azul); transform: translate(-50%, -50%); }
.extra .mas::after { transform: translate(-50%, -50%) rotate(90deg); }
.extra:hover { border-color: var(--azul); }
.extra.sel { background: #E8F7F5; border-color: var(--menta); }
.extra.sel .mas { background: var(--menta); border-color: var(--menta); }
.extra.sel .mas::before { width: 6px; transform: translate(-80%, 0) rotate(45deg); background: var(--navy); }
.extra.sel .mas::after { width: 11px; transform: translate(-30%, -40%) rotate(-50deg); background: var(--navy); }
.nota { margin-top: 10px; font-size: 13px; color: var(--pizarra); }

/* cómo trabajamos */
.como { max-width: calc(var(--ancho) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--gutter) 24px; }
.como-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.como article { padding: 20px; border-radius: var(--radio); background: var(--bruma); }
.como h3 { font-size: 16px; font-weight: 800; }
.como p { margin-top: 6px; font-size: 14px; color: var(--pizarra); }

.pie { margin-top: 40px; padding: 32px var(--gutter) 40px; background: var(--navy); color: rgba(255,255,255,.85); text-align: center; font-size: 14px; display: grid; gap: 6px; }
.pie a { color: var(--menta); }
.pie .nota { color: rgba(255,255,255,.6); margin: 0; }
.noscript { margin-top: 40px; padding: 20px; border-radius: 14px; background: var(--bruma); }

/* ───── barra inferior ───── */
.barra { position: fixed; left: 50%; bottom: 16px; z-index: 25; transform: translateX(-50%); width: min(720px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 10px 10px 22px; border-radius: 99px;
  background: var(--navy); color: #fff; box-shadow: 0 20px 40px -12px rgba(15,37,64,.55); padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.barra[hidden] { display: none; }
.barra-txt { display: grid; line-height: 1.25; min-width: 0; }
.barra-txt b { font-size: 15px; }
.barra-txt span { font-size: 13px; color: rgba(255,255,255,.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barra .btn { flex: none; background: var(--menta); color: var(--navy); }
.barra .btn:hover { background: #fff !important; }

/* ───── panel de solicitud ───── */
.carrito { position: fixed; inset: 0 0 0 auto; margin: 0 0 0 auto; width: min(460px, 100vw); height: 100dvh; max-height: 100dvh; max-width: 100vw; border: 0; padding: 0;
  display: flex; flex-direction: column; background: #fff; color: var(--navy); box-shadow: -20px 0 60px -20px rgba(15,37,64,.45); }
.carrito:not([open]) { display: none; }
.carrito::backdrop { background: rgba(15,37,64,.5); backdrop-filter: blur(2px); }
.c-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 22px 16px; border-bottom: 1px solid var(--gris); }
.c-paso { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--azul); }
.c-cab h2 { margin-top: 4px; font-size: 22px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.cerrar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bruma); flex: none; }
.cerrar svg { width: 20px; height: 20px; fill: none; stroke: var(--navy); stroke-width: 2.2; stroke-linecap: round; }
.c-cuerpo { flex: 1; overflow-y: auto; padding: 18px 22px 24px; overscroll-behavior: contain; }
.c-pie { display: flex; gap: 10px; padding: 14px 22px; padding-bottom: max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--gris); background: #fff; }
.c-pie .btn { flex: 1; padding: 0 16px; white-space: nowrap; }
.c-pie .btn.secundario { flex: none; }

.vacio { padding: 26px 18px; border-radius: 14px; background: var(--bruma); text-align: center; font-size: 14px; color: var(--pizarra); display: grid; gap: 6px; }
.vacio b { color: var(--navy); }
.lista { list-style: none; }
.lista li { display: flex; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--gris); }
.l-cat { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--azul); }
.l-nom { font-size: 16px; font-weight: 700; }
.l-desc { font-size: 13px; color: var(--pizarra); }
.l-der { text-align: right; flex: none; display: grid; align-content: start; gap: 4px; }
.l-precio { font-size: 15px; font-weight: 800; white-space: nowrap; }
.quitar { font-size: 13px; color: var(--pizarra); }
.upsell { margin-top: 16px; padding: 16px; border-radius: 14px; background: #E8F7F5; border: 1.5px solid var(--menta); font-size: 14px; display: grid; gap: 12px; }
.upsell .btn { min-height: 40px; justify-self: start; }
.totales { margin-top: 18px; display: grid; gap: 12px; }
.t-bloque { padding: 16px; border-radius: 14px; background: var(--bruma); }
.t-tit { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--azul); }
.t-bloque dl { margin-top: 8px; display: grid; gap: 4px; }
.t-bloque dl div { display: flex; justify-content: space-between; font-size: 14px; color: var(--pizarra); }
.t-bloque dd { font-weight: 600; color: var(--navy); }
.t-total { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--gris); }
.t-total dt { color: var(--navy); font-weight: 700; }
.t-total dd { font-size: 18px; font-weight: 800 !important; color: var(--azul) !important; }
.t-nota { font-size: 13px; color: var(--pizarra); }

/* formulario */
.f-intro { font-size: 14px; color: var(--pizarra); margin-bottom: 16px; }
.campo { display: grid; gap: 6px; margin-bottom: 14px; border: 0; min-width: 0; }
.campo label, .campo legend { font-size: 14px; font-weight: 700; }
.campo legend { margin-bottom: 6px; }
.campo i { color: var(--rojo); font-style: normal; }
.opc { font-weight: 500; color: var(--pizarra); font-size: 12px; }
input:not([type=radio]), select, textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--gris); background: #fff; font: inherit; font-size: 16px; color: var(--navy); }
textarea { resize: vertical; min-height: 84px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(32,100,182,.15); }
.opciones { display: flex; flex-wrap: wrap; gap: 8px; }
.opciones label { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 99px; border: 1.5px solid var(--gris); font-weight: 600; font-size: 14px; cursor: pointer; }
.opciones label:has(input:checked) { border-color: var(--azul); background: #EAF1FA; color: var(--azul); }
.opciones input { accent-color: var(--azul); width: 16px; height: 16px; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.err { color: var(--rojo); font-size: 13px; font-weight: 600; min-height: 0; }
.err:empty { display: none; }
.campo.error input, .campo.error .opciones label { border-color: var(--rojo); }

.enviado { text-align: center; padding: 30px 6px; display: grid; gap: 12px; justify-items: center; }
.enviado .ok { width: 64px; height: 64px; border-radius: 50%; background: var(--menta); display: grid; place-items: center; }
.enviado .ok svg { width: 34px; height: 34px; fill: none; stroke: var(--navy); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.enviado h3 { font-size: 22px; font-weight: 800; }
.enviado p { font-size: 15px; color: var(--pizarra); }
.enviado .peq { font-size: 13px; }

/* aviso */
.toast { position: fixed; left: 50%; bottom: 100px; z-index: 60; transform: translate(-50%, 20px); width: max-content; max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: 14px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: .25s; box-shadow: var(--sombra); }
.toast.ver { opacity: 1; transform: translate(-50%, 0); }

/* ───── responsive ───── */
@media (max-width: 1080px) {
  .planes { grid-template-columns: repeat(2, 1fr); }
  .como-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .planes, .planes.tres { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 84%; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 16px var(--gutter) 10px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .planes::-webkit-scrollbar { display: none; }
  .plan { scroll-snap-align: start; }
  .especial { grid-template-columns: 1fr; gap: 14px; padding: 22px 20px; }
  .especial ul { grid-template-columns: 1fr; }
  .esp-acc { flex-direction: column; align-items: stretch; }
  .como-grid { grid-template-columns: 1fr; }
  .btn-carrito .txt { display: none; }
  .barra { bottom: 10px; padding-left: 18px; }
}
@media (max-width: 640px) {
  .carrito { inset: auto 0 0 0; margin: auto 0 0 0; width: 100vw; height: 92dvh; border-radius: 22px 22px 0 0; }
  .dos { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
