/* José Luis Martínez — Agente de seguros (intermediario de Quálitas)
   Paleta aprobada: morado Quálitas #92278F (primario), base profunda #440C45,
   acento de acción teal #009999 (solo botones de acción), neutros blanco/gris claro.
   Sin logotipo de Quálitas: la identidad se construye con el color y la foto del agente. */

:root {
  --purple: #92278F;
  --deep: #440C45;
  --deep-2: #5A1560;
  --teal: #009999;
  --teal-dark: #007A7A;
  --ink: #2B2B2B;
  --gray: #5F5A5E;
  --soft: #F6F2F6;
  --line: #E4DAE4;
  --teal-light: #7FD1D1;
  --header-h: 118px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: #fff;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: var(--purple); }

/* ---------- Encabezado fijo con banda de identificación ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #fff;
  border-bottom: 2px solid var(--purple);
}
.id-band {
  background: var(--deep); color: #EFD9EF;
  font-size: 12.5px; text-align: center;
  padding: 6px 16px; letter-spacing: 0.2px;
}
.id-band strong { color: #fff; }
.id-band a { color: var(--teal-light); text-decoration: none; }
.id-band a:hover, .id-band a:focus { text-decoration: underline; }
.header-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; gap: 22px; padding: 10px 24px;
}
.brand { text-decoration: none; line-height: 1.15; }
.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px; font-weight: bold; color: var(--deep); display: block;
}
.brand-role { font-size: 12.5px; color: var(--purple); letter-spacing: 0.6px; text-transform: uppercase; }
.main-nav { margin-left: auto; display: flex; gap: 17px; flex-wrap: wrap; }
.main-nav a { color: var(--gray); text-decoration: none; font-size: 13.5px; white-space: nowrap; }
.main-nav a:hover, .main-nav a:focus { color: var(--deep); text-decoration: underline; }
.btn-whatsapp-header {
  background: var(--teal); color: #fff; text-decoration: none;
  font-weight: bold; font-size: 13.5px; white-space: nowrap;
  padding: 9px 16px; border-radius: 999px;
}
.btn-whatsapp-header:hover, .btn-whatsapp-header:focus { background: var(--teal-dark); }

main { padding-top: var(--header-h); }

/* ---------- Botones (teal = acción, y nada más) ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: bold; font-size: 15.5px;
  padding: 14px 28px; border-radius: 999px; border: 1.5px solid var(--teal); cursor: pointer;
  font-family: inherit;
}
.btn-action { background: var(--teal); color: #fff; }
.btn-action:hover, .btn-action:focus { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost:hover, .btn-ghost:focus { background: rgba(255, 255, 255, 0.14); }
.btn-ghost-dark { background: transparent; color: var(--deep); border-color: var(--purple); }
.btn-ghost-dark:hover, .btn-ghost-dark:focus { background: var(--soft); }

/* ---------- Portada ---------- */
.hero {
  background: linear-gradient(135deg, var(--deep) 0%, var(--deep-2) 78%, var(--purple) 130%);
  color: #fff; scroll-margin-top: var(--header-h);
}
.hero-inner {
  max-width: 1120px; margin: 0 auto; padding: 64px 24px 58px;
  display: grid; grid-template-columns: 1.25fr 360px; gap: 44px; align-items: center;
}
.hero-eyebrow {
  color: var(--teal-light); font-weight: bold; font-size: 13px;
  letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 14px;
}
.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 37px; line-height: 1.22; font-weight: bold; margin-bottom: 18px;
}
.hero-sub { font-size: 16.5px; color: #EFD9EF; max-width: 560px; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-promise {
  border-left: 3px solid var(--teal); padding-left: 14px;
  font-size: 15px; color: #F4E9F4; max-width: 540px;
}
.hero-promise strong { color: #fff; }
.hero-photo { position: relative; }
.hero-photo img {
  border-radius: 12px; width: 100%; height: auto;
  border: 3px solid var(--teal);
}
.hero-photo figcaption {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(68, 12, 69, 0.88); color: #fff;
  font-size: 13px; font-weight: bold;
  padding: 7px 13px; border-radius: 999px;
}

/* ---------- Secciones ---------- */
.section { padding: 68px 24px; scroll-margin-top: var(--header-h); }
.section-alt { background: var(--soft); }
.section-inner { max-width: 1080px; margin: 0 auto; }
.eyebrow {
  color: var(--purple); font-weight: bold; font-size: 13px;
  letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 6px;
}
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px; font-weight: bold; color: var(--deep); margin-bottom: 24px;
}
h3 { font-size: 19px; color: var(--deep); }
.section-lead { max-width: 820px; margin-bottom: 26px; color: var(--ink); }
.muted { color: var(--gray); }

/* ---------- Formulario de cotización ---------- */
.quote-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 34px; align-items: start; }
.quote-form {
  background: #fff; border: 1.5px solid var(--purple); border-radius: 12px;
  padding: 26px 26px 22px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: bold; font-size: 14px; margin-bottom: 5px; color: var(--deep); }
.form-field input, .form-field select {
  width: 100%; padding: 11px 12px; font-size: 15.5px; font-family: inherit;
  border: 1.5px solid #C9BCC9; border-radius: 8px; background: #fff; color: var(--ink);
}
.form-field input:focus, .form-field select:focus { outline: 2px solid var(--purple); outline-offset: 1px; border-color: var(--purple); }
.coverage-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.coverage-chips label {
  font-weight: normal; font-size: 14px; cursor: pointer;
  border: 1.5px solid #C9BCC9; border-radius: 999px; padding: 8px 14px; margin: 0;
}
.coverage-chips input { position: absolute; opacity: 0; pointer-events: none; }
.coverage-chips label:has(input:checked) { background: var(--purple); border-color: var(--purple); color: #fff; }
.coverage-chips label:has(input:focus-visible) { outline: 2px solid var(--deep); outline-offset: 2px; }
.privacy-note {
  background: var(--soft); border-radius: 8px; padding: 13px 15px;
  font-size: 13px; color: var(--gray); margin: 4px 0 14px;
}
.privacy-note strong { color: var(--ink); }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-bottom: 12px; cursor: pointer; }
.check-line input { margin-top: 3px; width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--purple); }
.check-optional { color: var(--gray); font-size: 13.5px; }
.form-error {
  display: none; background: #FDECEC; border: 1px solid #D66; color: #7A1F1F;
  border-radius: 8px; padding: 11px 14px; font-size: 14px; margin-bottom: 14px;
}
.form-error.visible { display: block; }
.form-submit { width: 100%; text-align: center; }

/* ---------- Cotizador por pasos ---------- */
.form-progress { margin-bottom: 18px; }
.form-progress-meta { font-size: 13.5px; font-weight: bold; color: var(--purple); margin-bottom: 7px; letter-spacing: 0.3px; }
.form-progress-bar { height: 7px; background: var(--soft); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.form-progress-bar span { display: block; height: 100%; background: var(--teal); transition: width 0.3s ease; }
.form-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-step[hidden] { display: none; }
.form-step legend { font-weight: bold; color: var(--deep); font-size: 17px; margin-bottom: 14px; padding: 0; }
.form-nav { display: flex; gap: 12px; margin-top: 4px; }
.form-nav .btn { flex: 1; text-align: center; }
.form-nav .form-submit { width: auto; }
.btn-outline { background: #fff; color: var(--purple); border: 1.5px solid var(--purple); cursor: pointer; }
.btn-outline:hover, .btn-outline:focus { background: var(--soft); }

/* ---------- Enlace secundario de la portada ---------- */
.hero-link { color: #fff; font-weight: bold; align-self: center; text-decoration: underline; text-underline-offset: 3px; font-size: 15.5px; }
.hero-link:hover, .hero-link:focus { color: var(--teal-light); }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 120;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--teal); color: #fff; font-weight: bold; font-size: 15px;
  padding: 13px 20px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 6px 20px rgba(68, 12, 69, 0.35);
}
.wa-float:hover, .wa-float:focus { background: var(--teal-dark); color: #fff; }
.wa-float svg { width: 21px; height: 21px; flex: 0 0 auto; }
@media (max-width: 640px) {
  .wa-float { right: 12px; bottom: 12px; padding: 12px 17px; font-size: 14.5px; }
}
.quote-side h3 { margin-bottom: 10px; }
.quote-side p { color: var(--gray); font-size: 15px; margin-bottom: 14px; }
.quote-side .direct-box {
  background: var(--deep); color: #fff; border-radius: 10px; padding: 20px 22px; margin-top: 8px;
}
.quote-side .direct-box p { color: #EFD9EF; }
.quote-side .direct-box .btn { margin-top: 6px; }

/* ---------- Cómo funciona ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.section-alt .steps li { background: #fff; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--purple); color: #fff; font-weight: bold; font-size: 19px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.steps h3 { margin-bottom: 5px; }
.steps p { color: var(--gray); font-size: 15px; }

/* ---------- Coberturas ---------- */
.coverage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.coverage-card { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--purple); border-radius: 10px; padding: 22px; }
.coverage-card h3 { margin-bottom: 10px; }
.coverage-card ul { list-style: none; margin-bottom: 6px; }
.coverage-card li { font-size: 14.5px; margin-bottom: 7px; padding-left: 20px; position: relative; color: var(--ink); }
.coverage-card li::before { content: "—"; position: absolute; left: 0; color: var(--purple); font-weight: bold; }
.coverage-card li.no::before { content: "×"; color: #B03A3A; }
.coverage-note { margin-top: 20px; color: var(--gray); font-size: 14.5px; max-width: 860px; }

/* ---------- Sobre el agente ---------- */
.agent-grid { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start; }
.agent-photo img { border-radius: 12px; border: 2.5px solid var(--purple); width: 100%; height: auto; }
.agent-name { font-size: 22px; font-weight: bold; color: var(--deep); }
.agent-role { color: var(--purple); margin-bottom: 14px; font-size: 15px; }
.agent-text p { margin-bottom: 13px; }
.services-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 6px; }
.services-list li {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 15px; font-size: 14.5px;
}
.services-list strong { display: block; color: var(--deep); font-size: 15px; }
.id-card {
  background: var(--soft); border: 1px solid var(--purple); border-radius: 10px;
  padding: 18px 20px; margin-top: 22px; font-size: 14.5px;
}
.id-card p { margin-bottom: 6px; }
.id-card p:last-child { margin-bottom: 0; }

/* ---------- Eventos ---------- */
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.event-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.event-card img { width: 100%; height: auto; }
.event-card figcaption { padding: 12px 15px; font-size: 14px; font-weight: bold; color: var(--deep); }
.event-card--wide { grid-column: 1 / -1; }
.event-slot {
  border: 2px dashed #C9BCC9; border-radius: 10px; min-height: 220px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--gray); font-size: 14px; padding: 20px; background: #fff;
}

/* ---------- Preguntas frecuentes ---------- */
.faq-list { max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq-item summary { cursor: pointer; font-weight: bold; font-size: 16.5px; padding: 12px 4px; list-style: none; color: var(--deep); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--purple); font-size: 20px; line-height: 1; }
.faq-item[open ] summary::after { content: "–"; }
.faq-item p { padding: 0 4px 16px; color: var(--ink); max-width: 780px; }

/* ---------- Cierre ---------- */
.closing { background: var(--deep); color: #fff; text-align: center; }
.closing h2 { color: #fff; }
.closing p { color: #EFD9EF; max-width: 640px; margin: 0 auto 24px; }

/* ---------- Pie ---------- */
.site-footer { background: #2A0830; color: #E9D8E9; padding: 44px 24px; }
.footer-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.footer-name { font-weight: bold; font-size: 16.5px; color: #fff; margin-bottom: 8px; }
.footer-line { font-size: 14px; margin-bottom: 8px; }
.footer-social { display: flex; gap: 22px; justify-content: center; margin: 14px 0; }
.footer-social a { color: var(--teal-light); text-decoration: none; font-size: 14.5px; }
.footer-social a:hover, .footer-social a:focus { text-decoration: underline; }
.footer-legal { font-size: 13px; color: #C4AEC4; }
.footer-legal a { color: #C4AEC4; }

/* ---------- Aviso de privacidad ---------- */
.legal-page { max-width: 820px; margin: 0 auto; padding: 150px 24px 72px; }
.legal-page h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px; color: var(--deep); margin-bottom: 22px;
}
.legal-page h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 19px; margin: 26px 0 10px;
}
.legal-page p { margin-bottom: 13px; }
.legal-page ul { margin: 0 0 13px 22px; }
.legal-page li { margin-bottom: 6px; }
.back-link { display: inline-block; margin-top: 18px; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  :root { --header-h: 148px; }
  .header-inner { flex-wrap: wrap; row-gap: 2px; padding: 8px 16px; }
  .main-nav {
    display: flex; flex-basis: 100%; order: 3; margin-left: 0;
    flex-wrap: nowrap; overflow-x: auto; gap: 16px; padding: 4px 0 6px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { font-size: 13px; }
  .hero-inner { grid-template-columns: 1fr; padding: 46px 18px 44px; gap: 30px; }
  .hero h1 { font-size: 29px; }
  .hero-photo { max-width: 320px; }
  h2 { font-size: 26px; }
  .section { padding: 50px 18px; }
  .quote-grid, .agent-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .steps, .coverage-grid, .events-grid { grid-template-columns: 1fr; }
  .services-list { grid-template-columns: 1fr; }
  .agent-photo { max-width: 300px; }
  .legal-page { padding-top: 176px; }
}
