/* SumaOS · web pública (inicio, seguimiento, legales). Sin compilación.
 * Estilo ecoamigable, corporativo y minimalista: verdes bosque y esmeralda,
 * acentos oscuros, mucho espacio en blanco. Tokens en :root. */
:root {
  --w-fondo: #ffffff;
  --w-fondo-2: #f3f8f5;
  --w-menta: #e6f4ec;
  --w-borde: #dfe9e3;
  --w-texto: #0d1f17;
  --w-tenue: #4b5f55;
  --w-suave: #6b7d74;
  --w-bosque: #064e3b;
  --w-esmeralda: #047857;
  --w-esmeralda-hover: #065f46;
  --w-brote: #10b981;
  --w-oscuro: #0b1a14;
  --w-peligro: #b91c1c;
  --w-aviso: #92400e;
  --w-aviso-fondo: #fffbeb;
  --w-radio: 14px;
  --w-sombra: 0 1px 2px rgba(6, 78, 59, .05), 0 8px 24px rgba(6, 78, 59, .07);
  --w-ancho: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
.web [hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body.web { margin: 0; font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--w-texto); background: var(--w-fondo); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
.web a { color: var(--w-esmeralda); }
.web img { max-width: 100%; }
.web h1, .web h2, .web h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .6rem; }
.web p { margin: 0 0 1rem; }
.envoltura { max-width: var(--w-ancho); margin: 0 auto; padding: 0 16px; }
.saltar { position: absolute; left: -999px; top: 8px; background: var(--w-oscuro); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.saltar:focus { left: 8px; }
.web :focus-visible { outline: 3px solid var(--w-brote); outline-offset: 2px; }

/* Cabecera */
.w-cabecera { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--w-borde); }
.w-cabecera .envoltura { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.w-marca { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--w-bosque) !important; text-decoration: none; }
.w-marca svg { flex: none; }
.w-nav { display: flex; gap: 22px; margin-left: auto; }
.w-nav a { color: var(--w-tenue); text-decoration: none; font-weight: 600; font-size: .95rem; }
.w-nav a:hover { color: var(--w-bosque); }
@media (max-width: 760px) { .w-nav { display: none; } .w-cabecera .acciones { margin-left: auto; } }

/* Botones */
.w-boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; background: var(--w-esmeralda); color: #fff !important; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background 150ms ease-out, transform 150ms ease-out; }
.w-boton:hover { background: var(--w-esmeralda-hover); }
.w-boton:active { transform: translateY(1px); }
.w-boton.claro { background: transparent; color: var(--w-bosque) !important; border-color: var(--w-borde); }
.w-boton.claro:hover { background: var(--w-fondo-2); }
.w-boton.chico { min-height: 38px; padding: 0 16px; font-size: .92rem; }
.w-boton.ancho { width: 100%; }
.w-boton[disabled] { opacity: .6; cursor: wait; }

/* Hero */
.w-hero { padding: 88px 0 72px; background: radial-gradient(900px 420px at 85% 0%, var(--w-menta), transparent 70%), var(--w-fondo); }
.w-hero .envoltura { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.w-sello { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--w-menta); color: var(--w-bosque); font-weight: 700; font-size: .85rem; margin-bottom: 20px; }
.w-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; color: var(--w-oscuro); }
.w-hero h1 em { font-style: normal; color: var(--w-esmeralda); }
.w-hero .bajada { font-size: 1.15rem; color: var(--w-tenue); max-width: 34rem; margin: 18px 0 30px; }
.w-hero .botones { display: flex; flex-wrap: wrap; gap: 12px; }
.w-hero .notas { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: var(--w-suave); font-size: .92rem; }
.w-hero .notas span::before { content: "✓"; color: var(--w-brote); font-weight: 800; margin-right: 6px; }
@media (max-width: 900px) { .w-hero { padding: 56px 0 48px; } .w-hero .envoltura { grid-template-columns: 1fr; gap: 40px; } }

/* Vista previa del producto, solo con CSS */
.w-vista { background: var(--w-fondo); border: 1px solid var(--w-borde); border-radius: 20px; box-shadow: var(--w-sombra); padding: 22px; }
.w-vista .fila { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--w-borde); font-size: .92rem; }
.w-vista .fila:last-child { border-bottom: 0; }
.w-vista .titulo { font-weight: 800; color: var(--w-oscuro); }
.w-vista .chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--w-menta); color: var(--w-bosque); }
.w-vista .chip.oscuro { background: var(--w-oscuro); color: #d1fae5; }
.w-vista .monto { font-variant-numeric: tabular-nums; font-weight: 700; }
.w-vista .tenue { color: var(--w-suave); font-size: .82rem; }

/* Secciones */
.w-seccion { padding: 88px 0; }
.w-seccion.verde { background: var(--w-fondo-2); }
.w-seccion .cabeza { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.w-seccion .cabeza h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; color: var(--w-oscuro); }
.w-seccion .cabeza p { color: var(--w-tenue); font-size: 1.08rem; }
.w-antetitulo { display: block; color: var(--w-esmeralda); font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
@media (max-width: 760px) { .w-seccion { padding: 60px 0; } }

.w-franja { border-top: 1px solid var(--w-borde); border-bottom: 1px solid var(--w-borde); padding: 22px 0; color: var(--w-tenue); font-weight: 600; }
.w-franja .envoltura { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 16px 32px; }

.w-rejilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .w-rejilla { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .w-rejilla { grid-template-columns: 1fr; } }
.w-modulo { background: var(--w-fondo); border: 1px solid var(--w-borde); border-radius: var(--w-radio); padding: 26px; transition: box-shadow 150ms ease-out, border-color 150ms ease-out; }
.w-modulo:hover { border-color: #b7dcc8; box-shadow: var(--w-sombra); }
.w-modulo .icono { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--w-menta); color: var(--w-bosque); margin-bottom: 16px; }
.w-modulo h3 { font-size: 1.1rem; font-weight: 800; }
.w-modulo p { color: var(--w-tenue); margin: 0; font-size: .96rem; }

.w-pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: paso; }
@media (max-width: 760px) { .w-pasos { grid-template-columns: 1fr; } }
.w-paso { counter-increment: paso; }
.w-paso::before { content: counter(paso); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--w-bosque); color: #fff; font-weight: 800; margin-bottom: 14px; }
.w-paso h3 { font-size: 1.08rem; font-weight: 800; }
.w-paso p { color: var(--w-tenue); }

/* Planes */
.w-planes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; align-items: stretch; }
.w-plan { position: relative; display: flex; flex-direction: column; background: var(--w-fondo); border: 1px solid var(--w-borde); border-radius: 18px; padding: 30px 26px; }
.w-plan.destacado { border: 2px solid var(--w-esmeralda); box-shadow: var(--w-sombra); }
.w-plan .insignia { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--w-esmeralda); color: #fff; font-size: .78rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.w-plan h3 { font-size: 1.25rem; font-weight: 800; color: var(--w-oscuro); margin-bottom: 4px; }
.w-plan .descripcion { color: var(--w-tenue); font-size: .95rem; min-height: 3em; }
.w-plan .precio { font-size: 2.5rem; font-weight: 800; color: var(--w-oscuro); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.w-plan .precio small { font-size: 1rem; font-weight: 600; color: var(--w-suave); letter-spacing: 0; }
.w-plan .igv { color: var(--w-suave); font-size: .85rem; margin-bottom: 20px; }
.w-plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; flex: 1; }
.w-plan li { display: flex; gap: 10px; color: var(--w-texto); font-size: .95rem; }
.w-plan li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--w-menta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23047857'%3E%3Cpath d='M8.1 13.3 4.8 10l-1.1 1.1 4.4 4.4 9-9-1.1-1.1z'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* Preguntas */
.w-preguntas { max-width: 760px; margin: 0 auto; }
.w-preguntas details { border-bottom: 1px solid var(--w-borde); padding: 18px 0; }
.w-preguntas summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.w-preguntas summary::-webkit-details-marker { display: none; }
.w-preguntas summary::after { content: "+"; color: var(--w-esmeralda); font-weight: 800; font-size: 1.3rem; line-height: 1; }
.w-preguntas details[open] summary::after { content: "–"; }
.w-preguntas details p { color: var(--w-tenue); margin: 12px 0 0; }

/* Cierre y pie */
.w-cierre { background: var(--w-bosque); color: #ecfdf5; border-radius: 22px; padding: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.w-cierre h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; margin: 0; }
.w-cierre p { margin: 6px 0 0; color: #a7f3d0; }
.w-cierre .w-boton { background: #fff; color: var(--w-bosque) !important; }
.w-cierre .w-boton:hover { background: var(--w-menta); }
.w-pie { background: var(--w-oscuro); color: #9fb5aa; padding: 44px 0; font-size: .92rem; margin-top: 88px; }
.w-pie .envoltura { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.w-pie a { color: #d1fae5; text-decoration: none; margin-right: 18px; }
.w-pie a:hover { text-decoration: underline; }
.w-whatsapp { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 56px; height: 56px; border-radius: 50%; background: #16a34a; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }

/* Checkout */
.w-checkout { width: min(980px, calc(100% - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 20px; box-shadow: 0 30px 80px rgba(11, 26, 20, .35); color: var(--w-texto); }
.w-checkout::backdrop { background: rgba(11, 26, 20, .55); }
.w-checkout .cuerpo { display: grid; grid-template-columns: 340px 1fr; min-height: 100%; }
.w-checkout .resumen { background: var(--w-fondo-2); padding: 30px 26px; border-right: 1px solid var(--w-borde); }
.w-checkout .datos { padding: 30px 30px 26px; }
.w-checkout h2 { font-size: 1.35rem; font-weight: 800; }
.w-checkout .cerrar { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--w-fondo-2); font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--w-tenue); }
.w-checkout .total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; margin: 12px 0 18px; border-top: 1px solid var(--w-borde); border-bottom: 1px solid var(--w-borde); }
.w-checkout .total strong { font-size: 1.7rem; font-variant-numeric: tabular-nums; color: var(--w-oscuro); }
.w-pago { background: var(--w-fondo); border: 1px solid #b7dcc8; border-left: 4px solid var(--w-esmeralda); border-radius: 12px; padding: 16px; font-size: .92rem; }
.w-pago h3 { font-size: .95rem; font-weight: 800; margin-bottom: 8px; }
.w-pago dl { margin: 0; }
.w-pago .cuenta { padding: 10px 0; border-top: 1px dashed var(--w-borde); }
.w-pago .cuenta:first-of-type { border-top: 0; padding-top: 0; }
.w-pago .numero { font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-weight: 700; letter-spacing: .02em; }
.w-pago .titular { margin-top: 10px; font-weight: 700; color: var(--w-bosque); }
@media (max-width: 820px) {
  .w-checkout .cuerpo { grid-template-columns: 1fr; }
  .w-checkout .resumen { border-right: 0; border-bottom: 1px solid var(--w-borde); }
  .w-checkout .datos, .w-checkout .resumen { padding: 24px 18px; }
}

/* Formularios */
.w-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.w-campos .ancho { grid-column: 1 / -1; }
@media (max-width: 600px) { .w-campos { grid-template-columns: 1fr; } }
.w-campo label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; }
.w-campo input, .w-campo select, .w-campo textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #cfdcd5; border-radius: 10px; font: inherit; font-size: 1rem; background: #fff; color: var(--w-texto); }
.w-campo textarea { min-height: 88px; resize: vertical; }
.w-campo input:focus, .w-campo select:focus, .w-campo textarea:focus { outline: none; border-color: var(--w-esmeralda); box-shadow: 0 0 0 3px rgba(16, 185, 129, .2); }
.w-campo .ayuda { color: var(--w-suave); font-size: .82rem; margin-top: 4px; }
.w-campo .error, .w-error { color: var(--w-peligro); font-size: .85rem; margin-top: 4px; }
.w-campo [aria-invalid="true"] { border-color: var(--w-peligro); }
.w-check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--w-tenue); }
.w-check input, .w-campo .w-check input { flex: none; width: 18px; height: 18px; min-height: 0; padding: 0; margin: 3px 0 0; accent-color: var(--w-esmeralda); }
.w-campo label.w-check { display: flex; font-weight: 500; font-size: .92rem; }
.w-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.w-exito { text-align: center; padding: 56px 28px; }
.w-exito .icono { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: var(--w-menta); color: var(--w-esmeralda); font-size: 2rem; font-weight: 800; }

/* Seguimiento y legales */
.w-pagina { padding: 48px 0 0; }
.w-pagina .envoltura { max-width: 860px; }
.w-tarjeta { background: var(--w-fondo); border: 1px solid var(--w-borde); border-radius: var(--w-radio); padding: 26px; margin-bottom: 20px; }
.w-estado { display: inline-block; padding: 5px 14px; border-radius: 999px; font-weight: 800; font-size: .85rem; }
.w-estado.pendiente { background: #eef2ff; color: #3730a3; }
.w-estado.observada { background: var(--w-aviso-fondo); color: var(--w-aviso); }
.w-estado.confirmada { background: var(--w-menta); color: var(--w-bosque); }
.w-estado.anulada { background: #fef2f2; color: var(--w-peligro); }
.w-linea { display: flex; gap: 0; margin: 22px 0 6px; }
.w-linea li { flex: 1; list-style: none; position: relative; padding-top: 26px; font-size: .85rem; color: var(--w-suave); text-align: center; }
.w-linea li::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 3px; background: var(--w-borde); }
.w-linea li::after { content: ""; position: absolute; top: 0; left: calc(50% - 8px); width: 16px; height: 16px; border-radius: 50%; background: var(--w-borde); }
.w-linea li.hecho { color: var(--w-bosque); font-weight: 700; }
.w-linea li.hecho::before, .w-linea li.hecho::after { background: var(--w-esmeralda); }
.w-linea { padding: 0; }
.w-datos { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
.w-datos dt { color: var(--w-suave); }
.w-datos dd { margin: 0; font-weight: 600; }
.w-hilo { display: grid; gap: 12px; margin-bottom: 18px; }
.w-mensaje { padding: 12px 14px; border-radius: 12px; background: var(--w-fondo-2); max-width: 85%; }
.w-mensaje.cliente { justify-self: end; background: var(--w-menta); }
.w-mensaje .meta { font-size: .78rem; color: var(--w-suave); margin-bottom: 4px; }
.w-aviso { background: var(--w-menta); color: var(--w-bosque); border-radius: 12px; padding: 14px 16px; margin-bottom: 20px; font-weight: 600; }
.w-aviso.error { background: #fef2f2; color: var(--w-peligro); }
.w-legal h2 { font-size: 1.2rem; margin-top: 28px; }
.w-legal p, .w-legal li { color: var(--w-tenue); }
