/* =========================================================
   Seguros Generales · Torino Productor Asesor
   Paleta B · Norte andino — mobile-first
   ========================================================= */

:root {
  --terracota: #B5532F;
  --terracota-osc: #9A4325;
  --ocre: #D9A441;
  --verde: #4F6B4A;
  --arena: #F6F0E6;
  --texto: #2B2420;

  --bg: var(--arena);
  --surface: #FFFBF5;
  --soft: #EFE4D2;
  --muted: #5E5249;
  --line: #E6D9C4;
  --chip-bg: #F5E2D4;

  --wa: #25D366;
  --wa-hover: #1EBE5A;
  --wa-text: #0B2B17;

  --fh: 'Fraunces', Georgia, 'Times New Roman', serif;
  --fb: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r: 6px;
  --hdr-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--fb);
  font-size: 17px;
  line-height: 1.55;
  color: var(--texto);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--fh); font-weight: 600; line-height: 1.15; color: var(--texto); margin: 0; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: var(--terracota-osc); }
a:hover { color: var(--texto); }
:focus-visible { outline: 3px solid var(--verde); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: calc(var(--hdr-h) + 56px); }

.i { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--texto); color: #fff; padding: 12px 16px; border-radius: var(--r); }
.skip:focus { top: 12px; color: #fff; }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--verde); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px;
  border-radius: 4px; border: 2px solid transparent;
  font-family: var(--fb); font-size: 17px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn .i { stroke-width: 2; width: 22px; height: 22px; }
.btn-wa { background: var(--wa); border-color: var(--wa); color: var(--wa-text); }
.btn-wa:hover { background: var(--wa-hover); border-color: var(--wa-hover); color: var(--wa-text); }
.btn-sec { background: transparent; color: var(--terracota); border-color: var(--terracota); }
.btn-sec:hover { background: var(--terracota); color: #fff; }
.btn-sm { min-height: 46px; padding: 0 16px; font-size: 15px; }
.btn-sm .lg { display: none; }

/* ---------- Encabezado ---------- */
.hdr {
  position: sticky; top: 0; z-index: 30;
  background: rgba(246, 240, 230, .96);
  -webkit-backdrop-filter: saturate(140%) blur(6px); backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 3px solid var(--terracota);
}
.hdr-row { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 16px; min-height: var(--hdr-h); }
.logo { display: flex; flex-direction: column; line-height: 1.1; text-decoration: none; color: var(--texto); }
.logo:hover { color: var(--texto); }
.logo small { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.logo strong { font-family: var(--fh); font-size: 20px; font-weight: 600; }
.hdr-row > .logo { grid-column: 1; grid-row: 1; padding: 12px 0; }
.hdr-row > .btn-sm { grid-column: 2; grid-row: 1; }
.nav { grid-column: 1 / -1; grid-row: 2; display: flex; gap: 4px; margin: 0 -12px; border-top: 1px solid var(--line); }
.nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--texto); font-weight: 600; font-size: 15px; text-decoration: none; }
.nav a:hover { color: var(--terracota-osc); text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Portada ---------- */
.hero { padding-top: 44px; }
.hero-inner { display: flex; flex-direction: column; gap: 20px; padding-bottom: 40px; }
.hero h1 { font-size: 38px; line-height: 1.1; letter-spacing: -.01em; max-width: 900px; }
.lead { font-size: 19px; color: var(--muted); max-width: 620px; }
.ctas { display: flex; flex-direction: column; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust .i { width: 20px; height: 20px; color: var(--terracota); }
.sierra { height: 150px; line-height: 0; }
.sierra svg { width: 100%; height: 100%; display: block; }
.hero-photo { display: block; width: 100%; height: 260px; object-fit: cover; }

/* ---------- Secciones ---------- */
.sec { padding: 64px 0; }
.sec-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; margin-bottom: 36px; }
.sec-head h2 { font-size: 32px; }
.sec-head p { font-size: 18px; color: var(--muted); }

.group + .group { margin-top: 40px; }
.group h3 { display: flex; align-items: center; gap: 12px; font-size: 22px; margin-bottom: 18px; }
.group h3::after { content: ""; flex: 1; height: 2px; background: var(--ocre); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--ocre);
  border-radius: var(--r); padding: 20px;
}
.card h4 { font-size: 19px; margin-bottom: 4px; }
.card p { font-size: 16px; line-height: 1.45; color: var(--muted); }
.chip { display: flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 48px; border-radius: var(--r); background: var(--chip-bg); color: var(--terracota); }
.chip .i { width: 26px; height: 26px; }
.sec-cta { margin-top: 28px; font-size: 17px; color: var(--muted); }
.sec-cta a { font-weight: 700; }

/* Nosotros */
.why { background: var(--soft); }
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; margin-bottom: 56px; }
.point { display: flex; flex-direction: column; gap: 10px; }
.point .chip { background: var(--surface); }
.point h3 { font-size: 22px; }
.point p { color: var(--muted); }
.steps-title { font-size: 26px; margin-bottom: 22px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.step { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.num { display: flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ocre); color: var(--texto); font-family: var(--fh); font-size: 19px; font-weight: 700; }
.step h4 { font-size: 19px; margin-bottom: 4px; }
.step p { font-size: 16px; color: var(--muted); }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.clist { display: flex; flex-direction: column; gap: 10px; }
.citem { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--texto); text-decoration: none; }
a.citem:hover { border-color: var(--terracota); color: var(--texto); }
.citem .chip { width: 44px; height: 44px; }
.citem .chip .i { width: 22px; height: 22px; }
.citem.wa .chip { background: var(--wa); color: var(--wa-text); }
.citem small { display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.citem strong { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.map { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.map iframe { display: block; width: 100%; height: 320px; border: 0; flex: 1; }
.map-link { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px; font-weight: 700; text-decoration: none; }
.map-link .i { width: 18px; height: 18px; stroke-width: 2; }

/* ---------- Pie ---------- */
.ftr { background: var(--texto); color: #F2ECE4; padding: 48px 0 104px; }
.ftr a { color: #fff; }
.ftr a:hover { color: var(--ocre); }
.ftr-top { display: grid; grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.ftr .logo, .ftr .logo strong { color: #fff; }
.ftr .logo small { color: #D9CFC4; }
.ftr-list { display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.ftr-list a { text-underline-offset: 3px; }
.legal { display: flex; flex-direction: column; gap: 6px; padding-top: 24px; font-size: 15px; line-height: 1.6; }
.legal strong { color: #fff; }
.copy { margin-top: 14px; font-size: 14px; color: #D9CFC4; }

/* ---------- Botón flotante (celular) ---------- */
.fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--wa); color: var(--wa-text);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.fab:hover { background: var(--wa-hover); color: var(--wa-text); }
.fab .i { width: 30px; height: 30px; stroke-width: 2; }

/* =========================================================
   Escritorio
   ========================================================= */
@media (min-width: 900px) {
  :root { --hdr-h: 80px; }
  [id] { scroll-margin-top: calc(var(--hdr-h) + 16px); }
  .wrap { padding: 0 48px; }
  .hdr-row { grid-template-columns: auto 1fr auto; column-gap: 32px; }
  .logo strong { font-size: 22px; }
  .hdr-row > .logo { padding: 0; }
  .hdr-row > .btn-sm { grid-column: 3; }
  .nav { grid-column: 2; grid-row: 1; justify-content: flex-end; gap: 20px; margin: 0; border-top: 0; }
  .nav a { font-size: 16px; font-weight: 500; }
  .btn-sm .lg { display: inline; }
  .btn-sm .sm { display: none; }

  .hero { padding-top: 96px; }
  .hero-inner { padding-bottom: 64px; }
  .hero h1 { font-size: 64px; }
  .ctas { flex-direction: row; }
  .sierra { height: 240px; }
  .hero-photo { height: 480px; }

  .sec { padding: 96px 0; }
  .sec-head h2 { font-size: 42px; }
  .contact-grid { grid-template-columns: 5fr 6fr; gap: 40px; align-items: stretch; }
  .map iframe { height: auto; min-height: 380px; }

  .ftr { padding-bottom: 48px; }
  .ftr-top { grid-template-columns: 2fr 1fr 1fr; }
  .fab { display: none; }
}
