/* Tarjeta digital y encuesta - Aneudis Payano / Jaraba Import / Alfa Laval */
:root {
  --navy: #0B1128;
  --navy-2: #141c3d;
  --azul: #385EA6;
  --azul-claro: #e8eef9;
  --gris: #EEEEEC;
  --texto: #14182b;
  --suave: #5b6275;
  --borde: #dfe2ea;
  --ok: #1f7a4d;
  --error: #b42318;
  --wa: #1f8f4e;
  --radio: 14px;
  --sombra: 0 1px 2px rgba(11, 17, 40, .06), 0 8px 24px rgba(11, 17, 40, .07);
  --fuente: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--fuente); color: var(--texto); background: var(--gris); line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--azul); }
button, input, select, textarea { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; }

/* Patron de placas (espiga de intercambiador) */
.placas {
  background-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='24' viewBox='0 0 44 24'%3E%3Cpath d='M0 18 L11 6 L22 18 L33 6 L44 18' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1.4'/%3E%3C/svg%3E");
}

/* ---------- Tarjeta ---------- */
.tarjeta { max-width: 460px; margin: 0 auto; background: #fff; min-height: 100vh; box-shadow: var(--sombra); }
.portada { position: relative; height: 168px; overflow: hidden; }
.portada::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(56, 94, 166, .35)); }
.portada .logo-j { position: absolute; top: 18px; right: 18px; width: 112px; z-index: 1; }
.perfil { text-align: center; padding: 0 22px 8px; margin-top: -74px; position: relative; z-index: 2; }
.avatar { width: 148px; height: 148px; border-radius: 50%; margin: 0 auto; border: 5px solid #fff; box-shadow: 0 6px 22px rgba(11, 17, 40, .22); object-fit: cover; background: var(--gris); }
.perfil h1 { font-size: 1.6rem; line-height: 1.15; margin: 14px 0 4px; letter-spacing: -.01em; }
.perfil .cargo { margin: 0; font-weight: 600; color: var(--azul); }
.perfil .empresa { margin: 2px 0 0; color: var(--suave); font-size: .95rem; }
.perfil .lema { margin: 14px auto 0; max-width: 34ch; color: var(--suave); font-size: .95rem; }

.acciones-principales { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px 22px 6px; }
.acciones-principales .btn { padding: 12px 8px; font-size: .95rem; white-space: nowrap; gap: 7px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 18px; border-radius: 12px; border: 0; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s; }
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-azul { background: var(--azul); color: #fff; }
.btn-azul:hover { background: #2f5091; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #197a42; }
.btn-claro { background: #fff; color: var(--navy); border: 1.5px solid var(--borde); }
.btn-claro:hover { border-color: var(--azul); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-block { width: 100%; }

.rejilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px 22px 8px; }
.accion { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px 6px 14px; border-radius: var(--radio); background: #f6f7fa; border: 1px solid #edf0f5; color: var(--navy); text-decoration: none; font-size: .82rem; font-weight: 600; text-align: center; cursor: pointer; transition: background .15s, border-color .15s, transform .12s; }
.accion:hover { background: var(--azul-claro); border-color: #c9d6ef; }
.accion:active { transform: scale(.97); }
.accion .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; box-shadow: 0 1px 3px rgba(11, 17, 40, .1); }
.accion .ico svg { width: 22px; height: 22px; color: var(--azul); }

.bloque { padding: 22px; }
.bloque + .bloque { border-top: 1px solid #eef0f4; }
.bloque h2 { font-size: 1.2rem; margin: 0 0 4px; letter-spacing: -.01em; }
.bloque .sub { margin: 0 0 16px; color: var(--suave); font-size: .93rem; }
.sello { width: 100%; max-width: 300px; margin: 6px auto 0; border-radius: 12px; }
.pie { text-align: center; font-size: .8rem; color: var(--suave); padding: 10px 22px 28px; }
.pie a { color: var(--suave); }

/* ---------- Formularios ---------- */
.campo { margin-bottom: 14px; }
.campo > label, .campo > .etq { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.campo .ayuda { display: block; font-weight: 400; color: var(--suave); font-size: .82rem; margin-top: 2px; }
.req { color: var(--error); }
.input, select.input, textarea.input { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 10px; border: 1.5px solid var(--borde); background: #fff; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
textarea.input { min-height: 92px; resize: vertical; }
.input:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 4px rgba(56, 94, 166, .14); }
.input.invalido { border-color: var(--error); }
.error-msg { color: var(--error); font-size: .82rem; margin-top: 4px; display: none; }
.campo.con-error .error-msg { display: block; }
.campo.con-error .input { border-color: var(--error); }
.fila-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--borde); background: #fff; font-size: .9rem; font-weight: 600; cursor: pointer; user-select: none; transition: all .12s; }
.chip input:checked + span { background: var(--azul); border-color: var(--azul); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--azul); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--suave); }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--azul); }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.aviso { padding: 12px 14px; border-radius: 10px; font-size: .9rem; margin-top: 12px; display: none; }
.aviso.ok { display: block; background: #e7f5ee; color: var(--ok); }
.aviso.mal { display: block; background: #fdecea; color: var(--error); }
.cargando { opacity: .7; pointer-events: none; }

/* ---------- Ventana QR ---------- */
.modal { position: fixed; inset: 0; background: rgba(11, 17, 40, .72); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 50; }
.modal.abierto { display: flex; }
.modal-caja { background: #fff; border-radius: 18px; padding: 24px; max-width: 340px; width: 100%; text-align: center; }
.modal-caja img { width: 240px; height: 240px; margin: 8px auto 12px; image-rendering: pixelated; }
.modal-caja h3 { margin: 0; }
.modal-caja p { margin: 0 0 14px; color: var(--suave); font-size: .9rem; }

/* ---------- Paginas anchas (encuesta, productos) ---------- */
.barra { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--borde); }
.barra-in { max-width: 1080px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.barra-in .marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 700; font-size: .9rem; }
.barra-in .marca img { width: 92px; }
.barra-in .btn { min-height: 40px; padding: 8px 14px; font-size: .88rem; }
.contenedor { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.hero { color: #fff; }
.hero-in { max-width: 1080px; margin: 0 auto; padding: 64px 20px 72px; display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .hero-in { grid-template-columns: 1.2fr .8fr; padding: 96px 20px 104px; } }
.antetitulo { text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 700; color: #9fb6e6; margin: 0 0 14px; }
.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); line-height: 1.04; letter-spacing: -.025em; margin: 0 0 18px; }
.hero p.lead { font-size: 1.08rem; color: #d6deef; max-width: 52ch; margin: 0 0 22px; }
.pastilla { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: .85rem; font-weight: 600; margin-bottom: 22px; }
.pastilla svg { width: 16px; height: 16px; }
.hero-asesor { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; padding: 22px; display: flex; gap: 16px; align-items: center; }
.hero-asesor img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255, 255, 255, .25); }
.hero-asesor b { display: block; font-size: 1.05rem; }
.hero-asesor span { color: #c4cfe6; font-size: .9rem; }
.seccion { padding: 64px 0; }
.seccion h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 28px; max-width: 22ch; }
.seccion .antetitulo { color: var(--azul); }
.tarjetas-3 { display: grid; gap: 16px; }
@media (min-width: 760px) { .tarjetas-3 { grid-template-columns: repeat(3, 1fr); } }
.t3 { background: #fff; border-radius: 16px; padding: 22px; box-shadow: var(--sombra); }
.t3 .ico { width: 42px; height: 42px; border-radius: 11px; background: var(--azul); color: #fff; display: grid; place-items: center; margin-bottom: 14px; }
.t3 .ico svg { width: 21px; height: 21px; }
.t3 h3 { margin: 0 0 6px; font-size: 1.05rem; }
.t3 p { margin: 0; color: var(--suave); font-size: .95rem; }
.paso-n { font-size: .8rem; font-weight: 800; color: var(--azul); letter-spacing: .1em; }

/* ---------- Asistente de la encuesta ---------- */
.formulario { background: #fff; border-radius: 20px; box-shadow: var(--sombra); max-width: 760px; margin: 0 auto; overflow: hidden; }
.progreso { padding: 20px 24px 0; }
.progreso-txt { display: flex; justify-content: space-between; font-size: .85rem; color: var(--suave); font-weight: 600; margin-bottom: 8px; }
.progreso-barra { height: 6px; border-radius: 99px; background: #eceff5; overflow: hidden; }
.progreso-barra i { display: block; height: 100%; width: 20%; background: var(--azul); border-radius: 99px; transition: width .3s ease; }
.paso { display: none; padding: 22px 24px 8px; }
.paso.activo { display: block; animation: entra .25s ease; }
@keyframes entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.paso h3 { font-size: 1.3rem; margin: 0 0 4px; letter-spacing: -.01em; }
.paso .sub { margin: 0 0 20px; color: var(--suave); font-size: .93rem; }
.nav-pasos { display: flex; gap: 10px; justify-content: space-between; padding: 16px 24px 24px; border-top: 1px solid #eef0f4; margin-top: 8px; }
.nav-pasos .btn { min-width: 128px; }
.equipo { border: 1.5px solid var(--borde); border-radius: 14px; padding: 16px; margin-bottom: 14px; background: #fbfcfe; }
.equipo-cab { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.equipo-cab b { font-size: 1rem; }
.quitar { background: none; border: 0; color: var(--error); font-weight: 600; cursor: pointer; font-size: .88rem; padding: 6px; }
.foto-placa { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1.5px dashed #b9c6e0; border-radius: 12px; background: #fff; cursor: pointer; }
.foto-placa svg { width: 26px; height: 26px; color: var(--azul); flex: none; }
.foto-placa small { display: block; color: var(--suave); }
.foto-placa img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; margin-left: auto; }
.foto-placa input { display: none; }
.condicional { display: none; }
.condicional.visible { display: block; }
.gracias { padding: 48px 24px; text-align: center; display: none; }
.gracias.visible { display: block; }
.gracias .check { width: 64px; height: 64px; border-radius: 50%; background: #e7f5ee; color: var(--ok); display: grid; place-items: center; margin: 0 auto 16px; }
.gracias .check svg { width: 32px; height: 32px; }
.nota-privada { font-size: .85rem; color: var(--suave); text-align: center; max-width: 60ch; margin: 18px auto 0; }

/* ---------- Productos ---------- */
.productos { display: grid; gap: 16px; }
@media (min-width: 640px) { .productos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .productos { grid-template-columns: repeat(3, 1fr); } }
.producto { background: #fff; border-radius: 16px; box-shadow: var(--sombra); overflow: hidden; display: flex; flex-direction: column; }
.producto .foto { background: #fff; aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 18px; border-bottom: 1px solid #f0f2f6; }
.producto .foto img { max-height: 100%; width: auto; object-fit: contain; }
.producto .cuerpo { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.producto h3 { margin: 0; font-size: 1.08rem; }
.producto p { margin: 0; color: var(--suave); font-size: .93rem; flex: 1; }
.producto .btn { min-height: 44px; font-size: .9rem; margin-top: 6px; }
.lista-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.lista-check li { padding-left: 26px; position: relative; color: var(--suave); }
.lista-check li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2.5px solid var(--azul); border-bottom: 2.5px solid var(--azul); transform: rotate(-45deg); }
.pie-ancho { background: var(--navy); color: #aeb8d0; font-size: .85rem; }
.pie-ancho .contenedor { padding: 28px 20px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.pie-ancho a { color: #dbe3f3; }
.pie-ancho img { width: 180px; border-radius: 8px; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
