/* Forms shared styles + JS */

/* ============ FORM ============ */
.form-card {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 28px;
  padding: clamp(32px, 4vw, 56px);
  box-shadow: 0 30px 80px -40px rgba(38,70,83,0.25);
  position: relative;
  overflow: hidden;
}
.form-card::before {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  right: -160px; top: -160px;
  background: radial-gradient(circle, rgba(232,195,105,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.form-head {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 32px;
}
.form-head .badge {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid; place-items: center;
}
.form-head h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.form-head h3 em { font-style: italic; color: var(--teal); }
.form-head p {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.form-row.full { grid-template-columns: 1fr; }
.form-row.three { grid-template-columns: 0.55fr 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; position: relative; }
.field label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-transform: uppercase;
  opacity: 0.7;
}
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 15px;
  padding: 16px 18px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
  font-family: var(--sans);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink-2);
  box-shadow: 0 0 0 3px rgba(40,114,114,0.12);
}
.field input::placeholder { color: var(--muted); opacity: 0.6; }
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23264653' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 18px center; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 90px; }

.field .hint {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

.consent {
  margin-top: 22px;
  padding: 18px;
  background: var(--paper);
  border-radius: 14px;
  display: flex; gap: 14px; align-items: flex-start;
}
.consent input {
  appearance: none;
  width: 22px; height: 22px;
  min-width: 22px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  display: grid; place-items: center;
  cursor: pointer;
  margin-top: 1px;
  transition: background .15s;
  background: var(--bg);
}
.consent input:checked { background: var(--ink); }
.consent input:checked::after {
  content: "";
  width: 12px; height: 6px;
  border-left: 2px solid var(--bg);
  border-bottom: 2px solid var(--bg);
  transform: rotate(-45deg) translate(1px, -1px);
}
.consent label {
  font-size: 12.5px;
  color: var(--ink);
  line-height: 1.5;
  opacity: 0.85;
  cursor: pointer;
}
.consent a { color: var(--ink-2); text-decoration: underline; }

.form-submit {
  margin-top: 24px;
  width: 100%;
  justify-content: center;
  padding: 18px 28px;
  font-size: 15px;
}
.form-trust {
  margin-top: 18px;
  display: flex; align-items: center; gap: 14px;
  font-size: 12px;
  color: var(--muted);
}
.form-trust svg { width: 14px; height: 14px; flex-shrink: 0; }

.success {
  text-align: center;
  padding: 40px 20px;
}
.success .check {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--teal);
  display: grid; place-items: center;
  margin: 0 auto 24px;
}
.success h4 {
  font-family: var(--serif);
  font-size: 32px;
  margin-bottom: 12px;
  font-weight: 400;
}
.success p { color: var(--muted); font-size: 15.5px; max-width: 36ch; margin: 0 auto; }

@media (max-width: 700px) {
  .form-row, .form-row.three { grid-template-columns: 1fr; }
}

/* ============ LANDING LAYOUT (Autos/Salud) ============ */
.landing-hero {
  padding: clamp(50px, 6vw, 90px) 0 clamp(40px, 5vw, 70px);
  position: relative;
  overflow: hidden;
}
.landing-hero .iso-wm {
  width: 600px; height: 600px;
  right: -200px; top: -100px;
  opacity: 0.04;
}
.lh-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.lh-text .eyebrow { margin-bottom: 24px; }
.lh-text h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.lh-text h1 em { font-style: italic; color: var(--teal); }
.lh-text .lh-lead {
  font-size: 17.5px;
  font-weight: 300;
  line-height: 1.6;
  margin-top: 26px;
  color: var(--ink);
  opacity: 0.82;
  max-width: 48ch;
}
.lh-text .quick {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 32px;
}
.lh-text .quick span {
  padding: 8px 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  display: inline-flex; align-items: center; gap: 8px;
}
.lh-text .quick span::before {
  content: ""; width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--teal);
}
.lh-text .promises {
  margin-top: 38px;
  display: grid; gap: 14px;
}
.lh-text .promise {
  display: flex; gap: 16px; align-items: flex-start;
}
.lh-text .promise .ic {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--paper);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.lh-text .promise .ic svg { width: 18px; height: 18px; }
.lh-text .promise .pt strong { font-weight: 600; font-size: 15px; display: block; margin-bottom: 2px; }
.lh-text .promise .pt span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 980px) { .lh-grid { grid-template-columns: 1fr; } }

/* ============ COBERTURAS GRID ============ */
.coberturas {
  padding: clamp(80px, 9vw, 130px) 0;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
.coberturas .iso-wm {
  width: 700px; height: 700px;
  left: -240px; bottom: -250px;
  opacity: 0.05;
}
.cob-head {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  margin-bottom: 70px;
  align-items: end;
}
.cob-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.cob-head h2 em { font-style: italic; color: var(--teal); }
.cob-head p {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.8;
  max-width: 56ch;
}
.cob-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cob-card {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: 32px 28px;
  display: flex; flex-direction: column;
  gap: 16px;
  transition: transform .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.cob-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -24px rgba(38,70,83,0.2);
}
.cob-card .ic {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--bg);
}
.cob-card:nth-child(1) .ic { background: var(--ink); }
.cob-card:nth-child(2) .ic { background: var(--teal); }
.cob-card:nth-child(3) .ic { background: var(--coral); }
.cob-card:nth-child(4) .ic { background: var(--sand); color: var(--ink); }
.cob-card:nth-child(5) .ic { background: var(--ink-2); }
.cob-card:nth-child(6) .ic { background: var(--apricot); color: var(--ink); }
.cob-card h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.005em;
}
.cob-card p {
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink);
  opacity: 0.78;
}
.cob-card .pill {
  margin-top: auto;
  padding-top: 18px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
}
@media (max-width: 980px) { .cob-grid { grid-template-columns: 1fr 1fr; } .cob-head { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .cob-grid { grid-template-columns: 1fr; } }

/* ============ EDUCACIÓN BLOQUE ============ */
.educa {
  padding: clamp(80px, 9vw, 130px) 0;
}
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.edu-img {
  position: relative;
  aspect-ratio: 5 / 6;
  border-radius: 24px;
  background: radial-gradient(circle at 30% 30%, #f6efe0 0%, #efe5d1 100%);
  overflow: hidden;
  display: grid; place-items: center;
}
.edu-img .inner {
  width: 78%; height: 78%;
  border-radius: 50%;
  background: var(--ink);
  position: relative;
  overflow: hidden;
  display: grid; place-items: center;
}
.edu-img .inner svg { width: 50%; height: 50%; color: var(--sand); }
.edu-img .inner::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, transparent 0 8px, rgba(232,195,105,0.10) 8px 9px);
}
.edu-img .ring-out {
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(38,70,83,0.2);
  border-radius: 50%;
  animation: rotate 120s linear infinite;
}
.edu-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.edu-body h2 em { font-style: italic; color: var(--teal); }
.edu-body .faq {
  margin-top: 36px;
  display: grid; gap: 4px;
}
.edu-body details {
  border-top: 1px solid var(--hairline);
  padding: 24px 0;
}
.edu-body details:last-child { border-bottom: 1px solid var(--hairline); }
.edu-body summary {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  list-style: none;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.edu-body summary::-webkit-details-marker { display: none; }
.edu-body summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 22px; font-weight: 300;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  display: grid; place-items: center;
  transition: transform .25s, background .25s, color .25s;
  flex-shrink: 0;
  margin-left: 16px;
}
.edu-body details[open] summary::after { content: "−"; background: var(--ink); color: var(--bg); }
.edu-body details p {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 300;
  color: var(--ink);
  opacity: 0.8;
}
@media (max-width: 860px) { .edu-grid { grid-template-columns: 1fr; } }
