/* Martínez Asesores — estilos complementarios a Tailwind */

/* Fuentes servidas desde el propio sitio (más rápido que Google Fonts). Mismas que el cotizador en línea. */
@font-face {
  font-family: "DM Sans"; font-style: normal; font-display: swap; font-weight: 100 1000;
  src: url(fonts/dm-sans-latin-opsz-normal.woff2) format("woff2-variations"), url(fonts/dm-sans-latin-opsz-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Serif Display"; font-style: normal; font-display: swap; font-weight: 400;
  src: url(fonts/dm-serif-display-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Paleta compartida con el cotizador en línea (maes.devsonlabs.com) */
  --navy-900: #0F2236;
  --navy-800: #16324F;
  --navy-600: #1F4468;
  --cream: #F6F3EE;
  --cream-2: #EFE9DD;
  --line: #E4DDD0;
  --gold: #C4A35A;          /* botones y acentos sobre fondo oscuro */
  --gold-hover: #B08F45;
  --gold-text: #7A5F26;     /* dorado legible sobre fondo claro */
  --ink: #12171E;
  --muted: #5C6B7A;
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

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

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Aparición al hacer scroll (la clase la agrega script.js) */
.reveal { opacity: 0; }
.reveal-in { animation: reveal-up .7s cubic-bezier(.2, .7, .2, 1) backwards; }
@keyframes reveal-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Menú */
#navbar { border-bottom: 1px solid transparent; }
#navbar.scrolled { border-color: var(--line); box-shadow: 0 8px 24px -16px rgba(22, 50, 79, .3); }

.nav-link { position: relative; color: #475569; padding: 6px 0; transition: color .2s; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-link:hover, .nav-link.active { color: var(--navy-900); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.mobile-link { display: block; padding: 12px; border-radius: 10px; color: var(--navy-900); }
.mobile-link:hover { background: var(--cream); }

/* Botones */
.btn-cta, .btn-outline-light, .btn-navy {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 10px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn-lg { padding: 14px 28px; font-size: 1rem; }

.btn-cta { background: var(--gold); color: var(--ink); box-shadow: 0 10px 24px -12px rgba(122, 95, 38, .7); }
.btn-cta:hover { background: var(--gold-hover); transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(122, 95, 38, .8); }

.btn-outline-light { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px #fff; transform: translateY(-2px); }

.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-600); transform: translateY(-2px); }

/* Etiquetas y títulos de sección */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--gold-text);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--gold); }
.eyebrow-dark { color: var(--gold); }
.section-title {
  margin-top: 14px; font-family: "DM Serif Display", Georgia, serif; font-weight: 400;
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); line-height: 1.12; letter-spacing: -.01em; color: var(--navy-900);
}

/* Inicio: azul del cotizador con el patrón de puntos de su fondo */
.hero {
  background:
    radial-gradient(circle at 1px 1px, rgba(213, 228, 242, .09) 1.2px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 100%);
}
.hero-stats > div { padding: 0 20px; border-left: 1px solid rgba(255, 255, 255, .15); }
.hero-stats > div:first-child { padding-left: 0; border-left: 0; }
.hero-stats dt { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: #9AA8B6; }
.hero-stats dd { margin-top: 6px; font-family: "DM Serif Display", Georgia, serif; font-size: 2rem; color: #fff; }

/* Tarjeta de resumen de pólizas (inicio) */
.status-card { transition: transform .4s ease; }
.status-card:hover { transform: translateY(-4px); }
.chip {
  border-radius: 999px; padding: 3px 10px; font-size: .72rem; font-weight: 600;
  background: var(--cream-2); color: var(--navy-800);
}

/* Cotizador en línea */
.quote-card {
  display: flex; flex-direction: column; padding: 32px; border-radius: 24px; background: #fff;
  box-shadow: 0 0 0 1px var(--line); transition: transform .25s ease, box-shadow .25s ease;
}
.quote-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 24px 44px -24px rgba(22, 50, 79, .45); }
.quote-icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background: var(--navy-900); color: #fff; transition: background-color .25s, color .25s;
}
.quote-card:hover .quote-icon { background: var(--gold); color: var(--ink); }
.quote-cta {
  margin-top: 28px; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 10px 22px; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 600;
  transition: background-color .2s, gap .2s;
}
.quote-card:hover .quote-cta { background: var(--gold-hover); gap: 12px; }

/* Lo que escuchamos seguido */
.pain-card {
  display: flex; flex-direction: column; padding: 24px; border-radius: 18px; background: #fff;
  box-shadow: 0 0 0 1px var(--line); transition: transform .25s ease, box-shadow .25s ease;
}
.pain-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 18px 36px -22px rgba(22, 50, 79, .4); }
.pain-icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--cream); color: var(--navy-800);
}
.pain-title { margin-top: 18px; font-weight: 700; color: var(--navy-900); }
.pain-text { margin-top: 8px; font-size: .92rem; line-height: 1.6; color: #475569; }

/* Seguros: dos bloques con filas */
.svc-block { border-radius: 24px; background: #fff; padding: 28px; box-shadow: 0 0 0 1px var(--line); }
@media (min-width: 640px) { .svc-block { padding: 36px; } }
.svc-block-title { font-family: "DM Serif Display", Georgia, serif; font-size: 1.6rem; color: var(--navy-900); }
.svc-row { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.svc-row:first-child { border-top: 0; }
.svc-icon {
  display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px;
  background: var(--cream); color: var(--navy-800); transition: background-color .25s, color .25s;
}
.svc-row:hover .svc-icon { background: var(--navy-800); color: #fff; }
.svc-title { font-weight: 700; color: var(--navy-900); }
.svc-text { margin-top: 2px; font-size: .9rem; line-height: 1.5; color: #475569; }
.svc-link {
  flex-shrink: 0; display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 999px;
  font-size: .85rem; font-weight: 600; color: var(--navy-800); box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.svc-link:hover { background: var(--navy-800); color: #fff; box-shadow: none; }
.svc-link-online { background: var(--gold); color: var(--ink); box-shadow: none; }
.svc-link-online:hover { background: var(--gold-hover); color: var(--ink); }
.online-tag {
  margin-left: 6px; padding: 2px 8px; border-radius: 999px; vertical-align: 2px;
  background: var(--cream-2); color: var(--gold-text); font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
@media (max-width: 639px) {
  .svc-block { padding: 24px 20px; }
  .svc-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: start; column-gap: 14px; row-gap: 12px; }
  .svc-row .svc-link { grid-column: 2; justify-self: start; }
}

/* Proceso */
.step-card {
  position: relative; overflow: hidden; padding: 32px; border-radius: 24px; background: #fff;
  box-shadow: 0 0 0 1px var(--line); transition: transform .25s ease, box-shadow .25s ease;
}
.step-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 22px 40px -24px rgba(22, 50, 79, .4); }
.step-big { display: block; font-family: "DM Serif Display", Georgia, serif; font-size: 4rem; line-height: 1; color: var(--gold); }
.step-title { margin-top: 18px; font-weight: 700; font-size: 1.1rem; color: var(--navy-900); }
.step-text { margin-top: 8px; line-height: 1.6; color: #475569; }

/* Nosotros */
.motto {
  padding-left: 20px; border-left: 3px solid var(--gold);
  font-family: "DM Serif Display", Georgia, serif; font-size: 1.5rem; line-height: 1.3; color: var(--navy-800);
}
.value-list { display: grid; gap: 16px; align-content: start; }
.value-row {
  display: flex; gap: 18px; padding: 24px; border-radius: 20px; background: var(--cream);
  transition: transform .25s ease, background-color .25s ease;
}
.value-row:hover { transform: translateX(4px); background: var(--cream-2); }
.value-icon {
  display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy-800); color: var(--gold);
}
.value-title { font-family: "DM Serif Display", Georgia, serif; font-size: 1.3rem; color: var(--navy-900); }
.value-text { margin-top: 4px; line-height: 1.6; color: #475569; }

/* Preguntas frecuentes */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s; }
.faq details[open] { box-shadow: 0 0 0 1px var(--gold); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 16px 20px;
  cursor: pointer; list-style: none; font-weight: 600; color: var(--navy-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--gold-text); border-bottom: 2px solid var(--gold-text);
  transform: rotate(45deg) translateY(-3px); transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq details p { padding: 0 20px 20px; line-height: 1.7; color: #475569; }
.faq-link { font-weight: 600; color: var(--navy-800); text-decoration: underline; text-underline-offset: 4px; }
.faq-link:hover { color: var(--gold-text); }

/* Contacto */
.contact-row { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 18px 0; }
.contact-row dt { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding-top: 3px; }
.contact-row dd { font-weight: 500; color: var(--navy-900); line-height: 1.6; }
.contact-row a:hover { color: var(--gold-text); }

/* Formulario */
.form-label { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 600; color: var(--navy-900); }
.form-input {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid #D3CBBD;
  background: var(--cream); color: var(--navy-900); font-size: 1rem; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.form-input::placeholder { color: #8A94A0; }
.form-input:hover { border-color: #B9AF9E; }
.form-input:focus { outline: none; background: #fff; border-color: var(--navy-800); box-shadow: 0 0 0 4px rgba(22, 50, 79, .12); }
.form-input.invalid { border-color: #DC2626; }
.form-error { display: none; margin-top: 6px; font-size: .85rem; color: #B91C1C; }
.form-error.show { display: block; }

/* Pie de página */
.footer-heading { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: #fff; }
.footer-link { transition: color .2s; }
.footer-link:hover { color: #fff; }
.social-link {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: #CBD5E1; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
  transition: background-color .2s, color .2s, transform .2s;
}
.social-link:hover { background: var(--gold); color: var(--ink); box-shadow: none; transform: translateY(-2px); }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: var(--ink);
  box-shadow: 0 12px 28px -10px rgba(122, 95, 38, .8); transition: transform .2s, background-color .2s;
}
.wa-float:hover { transform: scale(1.08); background: var(--gold-hover); }
