/* PROSIC Recursos Web: paleta y tipografía Figtree */
:root {
  --intensa: #154046;      /* Intensa tradición: texto, fondos oscuros */
  --esmeralda: #33e989;    /* Legado esmeralda: acento / botón sobre oscuro */
  --vision: #006d77;       /* Visión estratégica: color de botón */
  --seguridad: #8cff78;    /* Seguridad máxima */
  --positivo: #d1ffcd;     /* Ambiente positivo */
  --capital: #ebeedc;      /* Capital humano */
  --bg: #f4fff3;
  --panel: #ffffff;
  --ink: #154046;
  --muted: #4d6a6e;
  --line: #d6e6dc;
  --brand: #006d77;
  --brand-2: #005a62;
  --brand-soft: #e8ffe6;
  --ok: #0f7a4a;
  --ok-soft: #e8ffe6;
  --err: #b42318;
  --err-soft: #fde8e6;
  --wa: #1f9d55;
  --radius: 12px;
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.45; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 700; }
button, input, textarea, select { font: inherit; color: inherit; }
.hidden { display: none !important; }
a { color: var(--brand); }

/* ===== Estilo de prosic.com/sanitarios-moviles ===== */
header.top { background: var(--esmeralda); position: sticky; top: 0; z-index: 20; }
.top-in { max-width: 1180px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 28px; }
.marca { display: inline-flex; align-items: center; text-decoration: none; }
.marca img { height: 36px; width: auto; display: block; }
.nav-top { display: flex; gap: 18px; font-size: 14px; }
.nav-top a { color: var(--intensa); text-decoration: none; font-weight: 400; }
.nav-top a[aria-current="page"] { font-weight: 700; }
.nav-top a:hover { text-decoration: underline; }
.contacto-top { margin-left: auto; display: flex; gap: 14px; align-items: center; font-size: 14px; }
.tel-top { color: var(--intensa); font-weight: 700; text-decoration: none; }
.btn-top { background: var(--intensa); color: var(--esmeralda); padding: 9px 16px; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; text-decoration: none; white-space: nowrap; }
.btn-top:hover { background: #0e3237; }

.hero { position: relative; color: #fff; background: #124045 url("img/hero.jpg") center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(18, 64, 69, .9); }
.hero-in { position: relative; max-width: 1000px; margin: 0 auto; padding: 64px 20px 72px; text-align: center; }
.hero-pre { margin: 0 0 10px; font-size: 18px; font-weight: 400; }
.hero h1 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 600; color: var(--esmeralda); line-height: 1.3; }
.hero-sub { color: #fff; font-size: 18px; font-weight: 300; margin: 16px auto 0; max-width: 640px; }
.hero-checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 20px 0 0; padding: 0; list-style: none; font-size: 15px; }
.hero-checks li::before { content: "✓"; color: var(--esmeralda); font-weight: 800; margin-right: 6px; }

/* Secciones a todo lo ancho con el título subrayado en verde */
.seccion { padding: 44px 0 20px; }
.seccion-in { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.titulo { font-size: 24px; font-weight: 400; color: var(--intensa); padding-bottom: 14px; margin-bottom: 26px; border-bottom: 1px solid var(--line); position: relative; display: flex; align-items: center; gap: 10px; }
.titulo::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 95px; height: 3px; background: var(--esmeralda); }
.paso-cab { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; margin: 6px 0 14px; }
.n { width: 28px; height: 28px; border-radius: 50%; background: var(--esmeralda); color: var(--intensa); font-weight: 800; display: grid; place-items: center; font-size: 14px; flex: none; }
.fechas { margin-bottom: 18px; align-items: end; }
.fechas .ayuda { align-self: center; }

.franja { background: var(--esmeralda); color: var(--intensa); text-align: center; padding: 22px 20px; font-size: 22px; font-weight: 400; margin: 20px 0 0; }
.franja a { color: var(--intensa); font-weight: 400; text-decoration: underline; }

.layout { max-width: 1180px; margin: 0 auto; padding: 36px 20px 20px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; } }

.bloque { background: var(--panel); border: 1px solid var(--line); padding: 24px; margin-bottom: 20px; }
.bloque .titulo { font-size: 21px; margin-bottom: 20px; }
.ayuda { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.centro { text-align: center; }
.opc { color: var(--muted); font-weight: 400; font-size: 13px; }

.fila { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.campo { display: block; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.campo input, .campo textarea, #dir-manual { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid #c9dccf; border-radius: 4px; background: #fff; font-weight: 400; font-size: 16px; }
.campo textarea { min-height: 70px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--positivo); border-color: var(--brand); }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Tipos de renta */
.tipos { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; max-width: 760px; }
.tipo { border: 1px solid var(--line); background: #fff; padding: 12px 16px; text-align: left; cursor: pointer; border-left: 4px solid var(--line); }
.tipo strong { display: block; font-size: 16px; }
.tipo span { color: var(--muted); font-size: 13px; }
.tipo[aria-checked="true"] { border-color: var(--esmeralda); border-left-color: var(--intensa); background: var(--brand-soft); }

.stepper { display: flex; margin-top: 6px; }
.stepper button { width: 46px; border: 1px solid #c9dccf; background: #fff; font-size: 20px; cursor: pointer; color: var(--intensa); }
.stepper button:first-child { border-radius: 4px 0 0 4px; }
.stepper button:last-child { border-radius: 0 4px 4px 0; }
.stepper button:hover:not(:disabled) { background: var(--positivo); }
.stepper input { width: 70px; text-align: center; border: 1px solid #c9dccf; border-left: 0; border-right: 0; padding: 10px 4px; font-size: 16px; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Modelos: tarjetas como en prosic.com (foto, título centrado, ficha, características) */
.modelos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.modelo { border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s; }
.modelo.activo { border-color: var(--esmeralda); box-shadow: 0 0 0 2px var(--esmeralda); }
.modelo.no-disp { opacity: .55; }
.modelo .foto { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; display: block; background: var(--bg); }
.modelo .ico { aspect-ratio: 1 / 1; display: grid; place-items: center; background: var(--positivo); }
.modelo .cuerpo { padding: 18px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.modelo h3 { font-size: 19px; font-weight: 600; text-align: center; line-height: 1.3; }
.modelo .ficha { text-align: center; font-size: 12px; margin: 8px 0 0; }
.modelo .ficha b { display: block; font-weight: 700; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--intensa); }
.modelo .ficha b:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.modelo .carac { list-style: none; padding: 12px 0 0; margin: 12px 0 0; border-top: 1px solid var(--intensa); font-size: 13px; flex: 1; }
.modelo .carac li { padding: 4px 0 4px 22px; position: relative; }
.modelo .carac li::before { content: "✓"; position: absolute; left: 2px; font-weight: 800; color: var(--intensa); }
.modelo .desc { color: var(--muted); font-size: 14px; text-align: center; flex: 1; margin-top: 8px; }
.modelo .precio { font-weight: 800; color: var(--vision); font-variant-numeric: tabular-nums; text-align: center; font-size: 20px; margin: 14px 0 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.modelo .precio small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.modelo .stepper { margin-top: 0; width: 100%; }
.modelo .stepper button { flex: none; }
.modelo .stepper input { flex: 1; width: 0; min-width: 0; }

/* Verificación por código */
.verif { margin: -6px 0 14px; font-size: 14px; }
.verif .fila-v { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.verif input { width: 120px; padding: 8px 10px; border: 1px solid #c9dccf; border-radius: 4px; font-size: 18px; letter-spacing: 4px; text-align: center; }
.verif .ok { color: var(--ok); font-weight: 700; }
.verif .btn { padding: 8px 12px; font-size: 13px; }
.aviso-ine { background: var(--brand-soft); border-left: 4px solid var(--esmeralda); padding: 10px 12px; color: var(--intensa); }

.servicios { background: #fff; margin-top: 20px; padding-bottom: 36px; }
.servicios-lista { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.servicios-lista li { padding: 26px 20px; text-align: center; font-size: 15px; border-left: 1px solid var(--line); }
.servicios-lista li:first-child { border-left: 0; }

/* Dirección y mapa */
.buscador-dir { margin-bottom: 10px; }
.buscador-dir gmp-place-autocomplete { width: 100%; }
.mapa-wrap { position: relative; }
.mapa { width: 100%; height: 360px; border-radius: 4px; border: 1px solid var(--line); background: #e9eef2; }
.mapa-sin { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; color: var(--muted); }
.cobertura { margin-top: 12px; padding: 12px 14px; border-radius: 10px; font-size: 15px; }
.cobertura.ok { background: var(--positivo); color: var(--intensa); }
.cobertura.no { background: var(--err-soft); color: var(--err); }
.cobertura a { color: inherit; font-weight: 700; }

/* Resumen */
.resumen { position: sticky; top: 76px; background: var(--panel); border: 1px solid var(--line); border-top: 5px solid var(--esmeralda); padding: 20px; box-shadow: 0 6px 20px rgba(21,64,70,.10); }
.resumen h2 { font-size: 18px; margin-bottom: 12px; }
.r-lineas { border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 10px; }
.r-linea { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 4px 0; }
.r-linea span:last-child, .r-totales dd { font-variant-numeric: tabular-nums; white-space: nowrap; }
.r-totales { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; margin: 0; }
.r-totales dt { color: var(--muted); }
.r-totales dd { margin: 0; text-align: right; }
.r-totales .total { font-size: 22px; font-weight: 800; color: var(--ink); padding-top: 8px; border-top: 1px solid var(--line); }
.pago-opciones { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px 4px; margin: 14px 0 0; display: grid; gap: 6px; }
.pago-opciones legend { font-weight: 700; padding: 0 4px; font-size: 14px; }
.opcion-pago { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); cursor: pointer; }
.opcion-pago:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.opcion-pago input { accent-color: var(--brand); margin: 0; }
.opcion-pago .op-t { font-weight: 600; }
.opcion-pago .op-m { font-weight: 700; font-variant-numeric: tabular-nums; }
.pago-opciones .ayuda { margin: 2px 0 6px; }
.pago-estado { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; margin: 12px 0 0; }
.pago-estado dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.pago-estado dt { color: var(--muted); }
.pagos-lista { font-size: 13px; color: var(--muted); margin: 8px 0 0; padding-left: 18px; }
.estado-pill.parcial, .estado-pill.pagado { background: var(--esmeralda); color: var(--intensa); }
.estado-pill.rechazado { background: var(--err-soft); color: var(--err); }
.pendientes { list-style: none; padding: 0; margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.pendientes li::before { content: "• "; }

.btn { border: 0; border-radius: 0; text-transform: uppercase; font-size: 14px; letter-spacing: .02em; padding: 11px 16px; font-weight: 700; cursor: pointer; }
.btn.grande { width: 100%; padding: 14px; font-size: 16px; margin-top: 12px; }
.btn.pri { background: var(--brand); color: #fff; }
.btn.pri:hover { background: var(--brand-2); }
.btn.sec { background: #fff; color: var(--brand); border: 2px solid var(--brand); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.alerta { padding: 10px 12px; border-radius: 10px; font-size: 14px; margin-top: 12px; }
.alerta.err { background: var(--err-soft); color: var(--err); }
.alerta:not(.err):not(.ok) { background: #fff3d6; color: #8a5a00; }
.alerta.ok { background: var(--positivo); color: var(--intensa); font-weight: 600; }

dialog { border: 0; border-radius: 14px; padding: 0; width: min(640px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(10, 20, 30, .5); }
dialog .contenido { padding: 22px; }
.terminos { white-space: pre-line; max-height: 60vh; overflow: auto; margin: 12px 0; font-size: 14px; }

.pie { color: #e9dfe6; background: #290f1f; font-size: 14px; padding: 36px 20px; }
.pie-in { max-width: 1180px; margin: 0 auto; display: grid; gap: 6px; justify-items: center; text-align: center; }
.pie-logo { height: 30px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
.pie p { margin: 0; }
.pie strong { color: var(--esmeralda); }
.pie a { color: var(--esmeralda); }

.barra-total { display: none; }
@media (max-width: 960px) {
  .resumen { position: static; scroll-margin-top: 70px; }
  .barra-total { display: flex; justify-content: space-between; align-items: center; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px; background: var(--intensa); color: #fff; text-decoration: none; font-size: 15px; box-shadow: 0 -4px 12px rgba(0,0,0,.12); }
  .barra-total strong { font-size: 18px; margin-left: 6px; color: var(--esmeralda); }
  body { padding-bottom: 56px; }
}
@media (max-width: 600px) {
  .top-in { padding: 10px 16px; gap: 12px; }
  .nav-top, .contacto-top #tel-top, .contacto-top .btn-top:last-child { display: none; }
  .marca img { height: 30px; }
  .seccion-in, .layout { padding-left: 16px; padding-right: 16px; }
  .hero-in { padding: 44px 16px 48px; }
  .titulo { font-size: 20px; }
  .franja { font-size: 17px; }
  .servicios-lista li { border-left: 0; border-top: 1px solid var(--line); padding: 16px; }
  .modelo .foto, .modelo .ico { aspect-ratio: 4 / 3; }
  .modelos { gap: 16px; }
  .bloque { padding: 16px; }
  .mapa { height: 300px; }
}

/* Página de pedido */
.pedido { max-width: 680px; margin: 24px auto; padding: 0 16px; }
.pedido .bloque h1 { font-size: 24px; margin-bottom: 6px; }
.estado-pill { display: inline-block; padding: 4px 12px; border-radius: 99px; font-weight: 700; font-size: 14px; background: var(--brand-soft); color: var(--brand); }
.estado-pill.confirmado { background: var(--ok-soft); color: var(--ok); }
.estado-pill.cancelado { background: var(--err-soft); color: var(--err); }

/* Ajustes de marca */
.modelo .ico { background: var(--positivo); }
.modelo.activo .ico { background: var(--esmeralda); }
.tipo[aria-checked="true"] { box-shadow: inset 0 0 0 1px var(--brand); }
.estado-pill.confirmado { background: var(--esmeralda); color: var(--intensa); }
@media (max-width: 600px) { .marca .sub { display: none; } .hero-in { padding: 24px 16px 56px; } }
.btn.link { background: none; color: var(--brand); text-transform: none; padding: 8px 6px; text-decoration: underline; }

/* Verificación de identidad (pedido.html) */
.ine-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 4px; }
.ine-foto { border: 2px dashed #c9dccf; background: var(--bg); padding: 8px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; text-align: center; cursor: pointer; font-size: 13px; font-weight: 600; min-width: 0; overflow: hidden; }
.ine-foto.lista { border-style: solid; border-color: var(--esmeralda); background: #fff; }
.ine-foto img { width: 100%; max-width: 100%; aspect-ratio: 1; object-fit: cover; background: #e9f2ec; }
.ine-foto .ph { width: 100%; max-width: 100%; aspect-ratio: 1; display: grid; place-items: center; font-size: 34px; background: #e9f2ec; }
.ine-foto input { display: none; }
.pasos-ver { margin: 10px 0 0; padding-left: 20px; font-size: 14px; color: var(--muted); }
.estado-pill.identidad, .estado-pill.revision_identidad { background: #fff3d6; color: #8a5a00; }
