:root {
  --tinta: #14213d;
  --tinta-suave: #4a5568;
  --fondo: #f7f8fb;
  --tarjeta: #ffffff;
  --borde: #e2e6ee;
  --acento: #0f766e;
  --acento-oscuro: #0b5c56;
  --ambar: #d97706;
  --rojo: #b91c1c;
  --verde: #15803d;
  --radio: 14px;
  --sombra: 0 6px 24px rgba(20, 33, 61, 0.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: "Manrope", system-ui, sans-serif; color: var(--tinta); background: var(--fondo); line-height: 1.55; }
a { color: var(--acento); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }

.barra { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 5vw; background: var(--tarjeta); border-bottom: 1px solid var(--borde); position: sticky; top: 0; z-index: 10; }
.marca { font-weight: 800; font-size: 1.2rem; color: var(--tinta); display: flex; align-items: center; gap: .5rem; }
.marca-icono { background: var(--acento); color: #fff; border-radius: 8px; padding: .1rem .45rem; font-size: .95rem; }
.nav { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--tinta-suave); font-weight: 600; font-size: .95rem; }

.contenido { max-width: 1080px; margin: 0 auto; padding: 2rem 5vw 4rem; }
.pie { border-top: 1px solid var(--borde); padding: 1.5rem 5vw 2.5rem; color: var(--tinta-suave); font-size: .88rem; text-align: center; }
.pie-aviso { margin-top: .8rem; font-size: .82rem; }

.boton { display: inline-block; background: var(--acento); color: #fff !important; padding: .65rem 1.2rem; border-radius: 10px; font-weight: 700; border: 0; cursor: pointer; font-family: inherit; font-size: .95rem; }
.boton:hover { background: var(--acento-oscuro); text-decoration: none; }
.boton-suave { background: #e6f2f1; color: var(--acento-oscuro) !important; }
.boton-suave:hover { background: #d3e8e6; }
.boton-peligro { background: #fee2e2; color: var(--rojo) !important; }
.boton-pequeno { padding: .35rem .7rem; font-size: .85rem; border-radius: 8px; }

.mensaje { padding: .8rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-weight: 600; border: 1px solid; }
.mensaje-exito { background: #ecfdf3; border-color: #bbf7d0; color: var(--verde); }
.mensaje-error { background: #fef2f2; border-color: #fecaca; color: var(--rojo); }
.mensaje-aviso { background: #fffbeb; border-color: #fde68a; color: #92400e; }

.tarjeta { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--radio); padding: 1.4rem; box-shadow: var(--sombra); }
.rejilla { display: grid; gap: 1.2rem; }
.rejilla-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.rejilla-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.apilado > * + * { margin-top: 1.2rem; }
.fila { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.espaciado { justify-content: space-between; }
.silencioso { color: var(--tinta-suave); font-size: .92rem; }
.etiqueta { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #eef2f7; color: var(--tinta-suave); }
.etiqueta-ok { background: #dcfce7; color: var(--verde); }
.etiqueta-alerta { background: #fef3c7; color: #92400e; }
.etiqueta-mal { background: #fee2e2; color: var(--rojo); }

form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
form .campo { margin-bottom: 1rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=url], select, textarea {
  width: 100%; padding: .65rem .8rem; border: 1px solid var(--borde); border-radius: 10px; font: inherit; background: #fff; color: var(--tinta);
}
input:focus, select:focus, textarea:focus { outline: 2px solid #99d3ce; border-color: var(--acento); }
textarea { min-height: 110px; resize: vertical; }
.ayuda { font-size: .82rem; color: var(--tinta-suave); margin-top: .25rem; }
.opciones label { font-weight: 500; display: flex; gap: .5rem; align-items: flex-start; margin-bottom: .5rem; }
.opciones input { margin-top: .3rem; }
.formulario-angosto { max-width: 480px; margin: 0 auto; }

table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--borde); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--tinta-suave); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tabla-scroll { overflow-x: auto; }

.progreso { height: 10px; background: #e6e9f0; border-radius: 999px; overflow: hidden; }
.progreso > span { display: block; height: 100%; background: linear-gradient(90deg, var(--acento), #34d399); }

.pasos { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.pasos li { display: flex; gap: .6rem; align-items: center; padding: .45rem .6rem; border-radius: 8px; font-size: .92rem; }
.pasos li.hecho { color: var(--verde); }
.pasos li.actual { background: #e6f2f1; font-weight: 700; }
.pasos li.pendiente { color: var(--tinta-suave); }
.punto { width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

/* Portada */
.heroe { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; padding: 2rem 0 3rem; }
.heroe p.lead { font-size: 1.15rem; color: var(--tinta-suave); max-width: 46ch; }
.heroe-panel { background: var(--tinta); color: #fff; border-radius: 20px; padding: 1.6rem; }
.heroe-panel h3 { color: #a7f3d0; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.heroe-panel ol { margin: 0; padding-left: 1.2rem; }
.heroe-panel li { margin-bottom: .6rem; }
.planes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.plan { position: relative; display: flex; flex-direction: column; }
.plan.destacado { border-color: var(--acento); box-shadow: 0 10px 30px rgba(15, 118, 110, .15); }
.plan .precio { font-size: 2rem; font-weight: 800; margin: .3rem 0 .8rem; }
.plan ul { padding-left: 1.1rem; margin: 0 0 1.2rem; color: var(--tinta-suave); flex: 1; }
.plan .cinta { position: absolute; top: -12px; right: 16px; background: var(--ambar); color: #fff; font-size: .75rem; font-weight: 800; padding: .2rem .6rem; border-radius: 999px; }
.seccion { padding: 2.5rem 0; }
.faq details { border-bottom: 1px solid var(--borde); padding: .8rem 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.aviso-legal { background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radio); padding: 1rem 1.2rem; color: #78350f; font-size: .92rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; }
.kpi { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 12px; padding: .9rem 1rem; }
.kpi strong { display: block; font-size: 1.7rem; font-weight: 800; }
.kpi span { font-size: .82rem; color: var(--tinta-suave); }
.control-lista { list-style: none; padding: 0; margin: 0; }
.control-lista li { display: flex; align-items: center; gap: .7rem; padding: .5rem 0; border-bottom: 1px dashed var(--borde); }
.control-lista form { margin-left: auto; }
.mensajes-ticket { display: grid; gap: .6rem; }
.burbuja { background: #f1f4f9; border-radius: 10px; padding: .6rem .9rem; font-size: .92rem; }
.burbuja small { display: block; color: var(--tinta-suave); margin-top: .2rem; }

@media (max-width: 760px) {
  .heroe { grid-template-columns: 1fr; }
  .barra { flex-direction: column; align-items: flex-start; }
  .nav { gap: .7rem; }
}
