/* =========================================================
   Emilis Parra Seguros — estilos
   Paleta: azul confianza + crema cálido + acento ámbar
   ========================================================= */

:root {
  --navy:      #1B3A5C;   /* azul profundo - confianza, seriedad */
  --navy-dark: #14293F;   /* footer / contrastes */
  --blue:      #2F6FA8;   /* azul medio - acentos, links */
  --blue-soft: #EAF1F8;   /* fondo suave azulado */
  --cream:     #FBF7F0;   /* fondo cálido - calidez sin ser frío */
  --amber:     #E8A33D;   /* acento cálido - calidez, optimismo */
  --amber-dk:  #C9852A;
  --ink:       #243240;   /* texto principal */
  --gray:      #5E6B78;   /* texto secundario */
  --line:      #E3DED4;   /* bordes */
  --white:     #FFFFFF;
  --wa:        #25D366;   /* verde WhatsApp */
  --wa-dk:     #1EB456;
  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 10px 30px rgba(27, 58, 92, 0.10);
  --shadow-sm: 0 4px 14px rgba(27, 58, 92, 0.08);
  --maxw:      1100px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
  line-height: 1.25;
  color: var(--navy);
  font-weight: 700;
}

h1 { font-size: clamp(1.85rem, 6vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { color: var(--gray); }

a { color: var(--blue); text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.center { text-align: center; }
.hl { color: var(--amber-dk); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.eyebrow.center { display: block; }

/* =========================================================
   BOTONES
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-align: center;
  line-height: 1.2;
}
.btn-wa {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}
.btn-wa:hover { background: var(--wa-dk); transform: translateY(-2px); }
.btn-sm  { padding: 10px 18px; font-size: 0.92rem; }
.btn-lg  { padding: 15px 30px; font-size: 1.05rem; }
.btn-xl  { padding: 18px 38px; font-size: 1.15rem; }
.wa-icon { width: 1.15em; height: 1.15em; fill: currentColor; flex-shrink: 0; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  background: var(--navy);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 11px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.brand-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}
.brand-sub {
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}
.nav { display: none; gap: 26px; }
.nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--navy); border-color: var(--amber); }

@media (min-width: 860px) {
  .nav { display: flex; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background:
    radial-gradient(900px 400px at 80% -10%, rgba(47,111,168,0.14), transparent 60%),
    linear-gradient(180deg, var(--blue-soft), var(--cream) 75%);
  padding: 48px 0 56px;
}
.hero-grid {
  display: grid;
  gap: 36px;
}
.hero-copy .lead {
  font-size: 1.12rem;
  color: var(--ink);
  margin-top: 14px;
  max-width: 30em;
}
.hero-copy h1 { margin-top: 6px; }
.hero-cta { margin-top: 26px; }
.cta-note {
  font-size: 0.9rem;
  margin-top: 10px;
  color: var(--gray);
}
.cta-note.light { color: rgba(255,255,255,0.85); }

.hero-trust {
  list-style: none;
  margin-top: 26px;
  display: grid;
  gap: 10px;
}
.hero-trust li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.97rem;
  color: var(--ink);
  font-weight: 500;
}
.hero-trust svg {
  width: 20px; height: 20px;
  fill: var(--white);
  background: var(--blue);
  border-radius: 50%;
  padding: 3px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Hero photo */
.hero-photo { position: relative; }
.photo-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
}
.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.photo-placeholder {
  aspect-ratio: 4 / 5;
  background:
    repeating-linear-gradient(45deg, #eef3f8 0 14px, #e6eef5 14px 28px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
  gap: 12px;
}
.ph-tag {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  background: var(--white);
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px dashed var(--blue);
}
.ph-tag.inline {
  font-size: 0.85rem;
  display: inline-block;
  margin-bottom: 8px;
}
.ph-hint {
  font-size: 0.82rem;
  color: var(--gray);
  max-width: 26em;
  line-height: 1.5;
}
.photo-badge {
  position: absolute;
  left: 16px;
  bottom: -22px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
}
.photo-badge strong {
  font-family: 'Poppins', sans-serif;
  color: var(--navy);
  font-size: 1rem;
}
.photo-badge span {
  font-size: 0.82rem;
  color: var(--gray);
}

@media (min-width: 860px) {
  .hero { padding: 70px 0 80px; }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 50px;
  }
  .hero-photo { margin-bottom: 22px; }
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: 60px 0; }
.section-alt { background: var(--blue-soft); }

.section-intro {
  margin: 14px auto 0;
  max-width: 36em;
  font-size: 1.05rem;
}
.section h2 + .section-intro,
.eyebrow + h2 { margin-top: 8px; }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  border-radius: 14px;
  margin-bottom: 14px;
}
.card-icon svg { width: 28px; height: 28px; fill: var(--blue); }
.card h3 { margin-bottom: 6px; }
.card p { font-size: 0.96rem; }

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Who for ---------- */
.who-for {
  margin-top: 34px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
}
.who-for h3 { color: var(--white); margin-bottom: 8px; }
.who-for p { color: rgba(255,255,255,0.86); max-width: 44em; margin: 0 auto; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  display: grid;
  gap: 20px;
  margin-top: 36px;
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.step-num {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  background: var(--amber);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 50%;
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 6px; }
.step p { font-size: 0.97rem; }
.step-cta { margin-top: 36px; }

@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- States ---------- */
.states {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 32px auto 0;
  max-width: 760px;
}
.states li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 9px;
}
.states li::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}
.states-note {
  text-align: center;
  margin-top: 22px;
  font-size: 0.94rem;
}

@media (min-width: 560px) {
  .states { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 820px) {
  .states { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}
.testimonial {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.quote-mark {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  line-height: 0.6;
  color: var(--amber);
  margin-bottom: 10px;
}
.testimonial blockquote {
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 18px;
}
.testimonial .ph-hint { display: block; margin-top: 4px; }
.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.t-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--blue-soft);
  border: 2px dashed var(--blue);
  flex-shrink: 0;
}
.t-meta { display: flex; flex-direction: column; }
.t-meta strong {
  font-family: 'Poppins', sans-serif;
  color: var(--navy);
  font-size: 0.95rem;
}
.t-meta span { font-size: 0.82rem; color: var(--gray); }

@media (min-width: 760px) {
  .testimonials { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   CTA FINAL
   ========================================================= */
.cta-final {
  background:
    radial-gradient(700px 300px at 20% 120%, rgba(232,163,61,0.22), transparent 60%),
    linear-gradient(160deg, var(--navy), var(--navy-dark));
  padding: 64px 0;
}
.cta-box { text-align: center; max-width: 640px; }
.cta-box h2 { color: var(--white); }
.cta-box p {
  color: rgba(255,255,255,0.86);
  margin: 14px auto 26px;
  font-size: 1.08rem;
  max-width: 32em;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.72);
  padding: 44px 0 30px;
  font-size: 0.9rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand .brand-mark {
  background: var(--white);
  color: var(--navy);
}
.footer-brand strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  color: var(--white);
  font-size: 1rem;
}
.footer-brand span { font-size: 0.82rem; }

.disclaimer {
  padding: 24px 0 8px;
  display: grid;
  gap: 10px;
}
.disclaimer p {
  color: rgba(255,255,255,0.62);
  font-size: 0.82rem;
  line-height: 1.6;
}
.disclaimer p strong { color: rgba(255,255,255,0.88); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* =========================================================
   FLOATING WHATSAPP
   ========================================================= */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  width: 56px; height: 56px;
  background: var(--wa);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(37,211,102,0.45);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

@media (min-width: 860px) {
  .wa-float { width: 62px; height: 62px; right: 24px; bottom: 24px; }
  .wa-float svg { width: 33px; height: 33px; }
}

/* =========================================================
   ACCESIBILIDAD
   ========================================================= */
a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

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

/* =========================================================
   POR QUÉ YO — sección de razones
   ========================================================= */
.reasons {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}
.reason {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.reason:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.reason::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--amber), var(--amber-dk));
}
.reason-num {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--amber-dk);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  line-height: 1;
}
.reason h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}
.reason p {
  font-size: 0.97rem;
  line-height: 1.6;
}

@media (min-width: 700px) {
  .reasons { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .reasons { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   FAQ — preguntas frecuentes (acordeón nativo)
   ========================================================= */
.faq-container { max-width: 820px; }
.faq-list {
  margin-top: 36px;
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .15s ease;
}
.faq-item[open] {
  box-shadow: var(--shadow);
  border-color: var(--blue);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 22px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--navy);
  position: relative;
  transition: background .15s ease;
}
.faq-item summary:hover { background: rgba(47,111,168,0.04); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2.5px solid var(--blue);
  border-bottom: 2.5px solid var(--blue);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.faq-answer {
  padding: 0 22px 22px;
  color: var(--gray);
  font-size: 0.97rem;
  line-height: 1.7;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin: 0 0 0;
}
.faq-answer p { color: var(--gray); }
.faq-answer p strong { color: var(--navy); }

/* =========================================================
   PEQUEÑOS POLISH FINALES — sensación premium
   ========================================================= */
.hero h1 .hl {
  background: linear-gradient(180deg, transparent 60%, rgba(232,163,61,0.25) 60%);
  padding: 0 6px;
}
.card {
  background: linear-gradient(180deg, var(--white) 0%, #fdfbf6 100%);
}
.btn-wa {
  letter-spacing: 0.01em;
}
.btn-wa::after {
  content: "";
  position: absolute;
}
.btn-lg, .btn-xl {
  position: relative;
}
.cta-final {
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(232,163,61,0.18), transparent 70%);
  pointer-events: none;
}
