/* G2 Seguros — landings de cotización. Misma marca que g2seguros.com. */
:root {
  --ink: #1C1D1F;
  --ink-2: #3A3C40;
  --muted: #6E7076;
  --brand: #0D4B63;
  --brand-2: #1A6E8C;
  --brand-deep: #083244;
  --aqua: #5CC6DA;
  --brand-soft: #E8F2F5;
  --line: #E6E6E3;
  --soft: #F4F4F1;
  --paper: #FBFBF9;
  --white: #FFFFFF;
  --ok: #1F8A4C;
  --error: #B93226;
  --max: 1180px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif; color: var(--ink); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip;
  background: radial-gradient(60vw 50vh at 10% 0%, rgba(92,198,218,.16), transparent 70%), radial-gradient(50vw 50vh at 100% 100%, rgba(13,75,99,.07), transparent 70%), var(--paper);
  background-attachment: fixed;
}
a { color: var(--brand-2); }
[hidden] { display: none !important; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Encabezado */
header { position: sticky; top: 0; z-index: 10; background: rgba(251,251,249,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.1rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.brand svg { width: 36px; height: 36px; }
.brand small { display: block; font-size: .66rem; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font: inherit; font-weight: 700; font-size: .95rem; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s, background .15s; }
.btn-dark { background: var(--brand); color: #fff; }
.btn-dark:hover { background: var(--brand-deep); transform: translateY(-1px); }
.btn-dark:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-ghost { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn.chico { padding: 9px 16px; font-size: .85rem; }

/* Diseño principal */
.principal { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; padding-top: 48px; padding-bottom: 72px; position: relative; isolation: isolate; }

.texto { position: sticky; top: 110px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-2); }
.eyebrow::before { content: ""; width: 22px; height: 3px; background: linear-gradient(90deg, var(--brand), var(--aqua)); border-radius: 3px; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.08; letter-spacing: -.025em; font-weight: 800; margin: 16px 0 18px; }
.lead { color: var(--muted); font-size: 1.08rem; }
.beneficios { list-style: none; margin-top: 30px; display: grid; gap: 16px; }
.beneficios li { padding-left: 32px; position: relative; color: var(--ink-2); font-size: .95rem; }
.beneficios li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: .8rem; display: grid; place-items: center; }
.beneficios b { display: block; color: var(--ink); }

/* Tarjeta del formulario */
.tarjeta { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 30px; box-shadow: 0 30px 60px -40px rgba(8,50,68,.45); }
#progreso p { font-size: .86rem; color: var(--muted); margin: 10px 0 22px; }
#progreso p b { color: var(--ink); }
.barra { height: 6px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.barra i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--aqua)); border-radius: 999px; transition: width .3s; }
.intro { color: var(--muted); margin-bottom: 18px; font-size: .95rem; }
.nota { background: var(--brand-soft); color: var(--brand-deep); border-radius: 12px; padding: 12px 14px; font-size: .86rem; margin-bottom: 18px; }
.nota.sensible { background: #FCF3E1; color: #7A4C08; }

.rejilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; }
.ancho, .campo.ancho, .campo.opciones { grid-column: 1 / -1; }
.campo label, .campo legend { font-size: .86rem; font-weight: 700; color: var(--ink-2); }
.campo legend { margin-bottom: 8px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .15s;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(26,110,140,.12); }
input[type=file] { font: inherit; font-size: .9rem; }
.dinero { position: relative; }
.dinero span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.dinero input { padding-left: 30px; }
.ayuda { font-size: .8rem; color: var(--muted); }

.opciones { display: flex; flex-wrap: wrap; gap: 8px; flex-direction: row; }
.opciones legend { width: 100%; }
.opciones .ayuda, .opciones .error-campo { width: 100%; }
.opcion { position: relative; cursor: pointer; }
.opcion input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opcion span { display: inline-block; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--ink-2); background: var(--white); transition: all .15s; }
.opcion:hover span { border-color: var(--brand-2); }
.opcion input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.opcion input:focus-visible + span { box-shadow: 0 0 0 4px rgba(26,110,140,.2); }

.bloque { border: 1.5px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 14px; background: var(--paper); }
.bloque-cabeza { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.quitar { background: none; border: 0; color: var(--error); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.archivos { list-style: none; font-size: .86rem; display: grid; gap: 4px; }
.archivos small { color: var(--muted); }

.con-error input, .con-error select, .con-error textarea, .con-error .opcion span { border-color: var(--error); }
.error-campo { color: var(--error); font-size: .8rem; font-weight: 600; }
.error-envio { color: var(--error); background: #FBEAE8; border-radius: 12px; padding: 12px 14px; font-size: .9rem; margin-top: 18px; }
.acciones { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.acciones #siguiente { margin-left: auto; min-width: 180px; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Confirmación */
.resumen details { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; padding: 10px 14px; }
.resumen summary { font-weight: 700; cursor: pointer; }
.resumen dl { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 6px 14px; margin-top: 10px; font-size: .86rem; }
.resumen dt { color: var(--muted); }
.resumen dd { overflow-wrap: anywhere; }
.autorizaciones { display: grid; gap: 12px; margin-top: 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--brand); }
.politica { margin-top: 14px; background: var(--soft); border-radius: 12px; padding: 14px; font-size: .82rem; color: var(--ink-2); display: grid; gap: 8px; }

/* Gracias */
.gracias { text-align: center; padding: 24px 6px; }
.gracias .ok { width: 64px; height: 64px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 2rem; font-weight: 800; display: grid; place-items: center; margin: 0 auto 16px; }
.gracias h2 { font-size: 1.7rem; letter-spacing: -.02em; margin-bottom: 10px; }
.gracias p { color: var(--muted); margin-bottom: 12px; }
.gracias .folio { font-size: .95rem; color: var(--ink-2); margin-bottom: 22px; }

footer { border-top: 1px solid var(--line); padding: 22px 0; font-size: .8rem; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer a { color: inherit; }

/* Selector de ramos (página raíz) */
.ramos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ramo { display: block; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.ramo:hover { border-color: var(--brand-2); transform: translateY(-2px); }
.ramo b { display: block; font-size: 1.1rem; margin-bottom: 6px; }
.ramo span { color: var(--muted); font-size: .9rem; }

@media (max-width: 900px) {
  .principal { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .texto { position: static; }
  .beneficios { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .tarjeta { padding: 20px 16px; border-radius: 18px; }
  .rejilla, .ramos { grid-template-columns: 1fr; }
  .nav .btn { display: none; }
  .acciones .btn { flex: 1; min-width: 0; }
  .acciones #siguiente { min-width: 0; }
  .resumen dl { grid-template-columns: 1fr; }
  .resumen dd { margin-bottom: 6px; }
}
