/* ==========================================================================
   Colchones Luján — sistema de diseño
   Paleta: azul noche, blanco cálido, arena y un acento cálido discreto.
   ========================================================================== */

:root {
  /* Tinta y azul de fábrica */
  --navy-950: #0e1622;
  --navy-900: #16283d;
  --navy-800: #1e3a5c;
  --navy-700: #2b4d73;
  --navy-600: #3a6088;
  --ink: #20242b;
  --ink-soft: #414750;
  --muted: #6d675c;
  --line: #e3dac9;
  --line-strong: #d0c3a9;

  /* Blanco de cal y arena */
  --cream: #f7f2e8;
  --cream-2: #efe7d7;
  --white: #ffffff;
  --sand-050: #f4ecdd;
  --sand-100: #ebdfc9;
  --sand-200: #ddccae;
  --sand-300: #c6ad86;
  --sand-400: #a98f66;

  /* Rojo huayruro (acento) y ocre */
  --accent: #b3352a;
  --accent-strong: #8f2a21;
  --accent-soft: #f6e1db;
  --accent-ink: #6d241d;
  --ochre: #b9762a;

  --wa: #1e7a54;
  --wa-strong: #155c3f;

  /* Esquinas sobrias, no píldoras */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius: 9px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-xs: 0 1px 0 rgba(22, 40, 61, 0.05);
  --shadow-sm: 0 2px 0 rgba(22, 40, 61, 0.05), 0 6px 16px rgba(22, 40, 61, 0.05);
  --shadow-md: 0 10px 24px rgba(22, 40, 61, 0.09);
  --shadow-lg: 0 20px 44px rgba(22, 40, 61, 0.14);

  --wrap: 1160px;
  --wrap-narrow: 780px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --section-y: clamp(3.4rem, 7.5vw, 6rem);

  --font-display: "Bitter", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;

  --step--1: clamp(0.86rem, 0.82rem + 0.2vw, 0.95rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.4vw, 1.3rem);
  --step-2: clamp(1.4rem, 1.25rem + 0.8vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.45rem + 1.4vw, 2.4rem);
  --step-4: clamp(2.1rem, 1.6rem + 2.4vw, 3.35rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--cream);
  background-image: radial-gradient(rgba(32, 36, 43, 0.035) 1px, transparent 1px);
  background-size: 20px 20px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* El atributo [hidden] debe ganar aunque el elemento tenga display propio
   (por ejemplo .post-card con display:flex). Necesario para la paginación. */
[hidden] { display: none !important; }

a { color: var(--accent-strong); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  color: var(--navy-900);
  margin: 0 0 0.5em;
  letter-spacing: -0.005em;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { margin: 0 0 1rem; }
strong { font-weight: 600; color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--navy-900);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: var(--wrap-narrow); }

/* ---------- Tipografía de apoyo ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin: 0 0 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--sand-300); }
.eyebrow.on-dark::before { background: var(--sand-300); }

.lead { font-size: var(--step-1); color: var(--ink-soft); }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.center { text-align: center; }
.measure { max-width: 62ch; }
.center.measure { margin-inline: auto; }

/* ==========================================================================
   Botones
   ========================================================================== */
.btn {
  --btn-bg: var(--navy-800);
  --btn-fg: #fff;
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem;
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.84rem;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  box-shadow: 0 2px 0 rgba(14, 22, 34, 0.14);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 3px 0 rgba(14, 22, 34, 0.18); color: var(--btn-fg); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.btn-primary { --btn-bg: var(--accent); --btn-fg: #fff; }
.btn-primary:hover { --btn-bg: var(--accent-strong); }

.btn-wa { --btn-bg: var(--wa); --btn-fg: #fff; }
.btn-wa:hover { --btn-bg: var(--wa-strong); }

.btn-navy { --btn-bg: var(--navy-800); --btn-fg: #fff; }
.btn-navy:hover { --btn-bg: var(--navy-900); }

.btn-outline {
  --btn-bg: transparent;
  --btn-fg: var(--navy-800);
  --btn-bd: var(--line-strong);
  box-shadow: none;
}
.btn-outline:hover { --btn-bg: var(--white); --btn-fg: var(--navy-900); --btn-bd: var(--navy-700); }

.btn-ghost-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.5);
  box-shadow: none;
}
.btn-ghost-light:hover { --btn-bg: rgba(255, 255, 255, 0.12); --btn-fg: #fff; --btn-bd: #fff; }

.btn-lg { padding: 0.95rem 1.6rem; font-size: 0.92rem; }
.btn-sm { padding: 0.55rem 0.9rem; font-size: 0.76rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ==========================================================================
   Cabecera
   ========================================================================== */
/* Barra superior de contacto */
.topbar {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  min-height: 40px;
  flex-wrap: wrap;
}
.topbar-tag {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.68rem;
  color: var(--sand-300);
}
.topbar-links { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.topbar-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
}
.topbar-links a:hover { color: #fff; text-decoration: underline; }
.topbar-links svg { width: 15px; height: 15px; color: var(--sand-300); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 242, 232, 0.94);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 84px;
  flex-wrap: nowrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--navy-900);
  flex: 0 0 auto;
}
.brand-mark {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  box-shadow: inset 0 0 0 1.5px rgba(198, 173, 134, 0.45);
  color: var(--sand-200);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-xs);
}
.brand-mark svg { width: 27px; height: 27px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.02; }
.brand-text b {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.brand-text span {
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.2rem;
  margin-left: auto;
  flex-wrap: nowrap;
}
.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}
.nav-list a {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.94rem;
  padding: 0.55rem 0.78rem;
  border-radius: 999px;
  transition: background 0.16s ease, color 0.16s ease;
}
.nav-list a:hover { color: var(--navy-900); background: var(--sand-050); }
.nav-list a[aria-current="page"] {
  color: var(--navy-900);
  font-weight: 600;
  background: var(--sand-100);
  box-shadow: inset 0 0 0 1px var(--line);
}
.header-cta { flex: 0 0 auto; }
.header-cta .btn { white-space: nowrap; padding: 0.72rem 1.2rem; }

/* ==========================================================================
   Layout de secciones
   ========================================================================== */
main { display: block; }
.section { padding-block: var(--section-y); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-cream { background: var(--cream-2); }
.section-sand { background: var(--sand-050); }
.section-navy {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.82);
}
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }
.section-navy a:not(.btn) { color: var(--sand-200); }
.section-navy a:not(.btn):hover { color: #fff; }
.section-navy strong { color: #fff; }

.section-head { max-width: 720px; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.86);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  left: -180px;
  bottom: -220px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(205, 185, 155, 0.14), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 6rem);
}
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255, 255, 255, 0.82); }
.hero-actions { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-trust {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-trust svg { width: 1.1em; height: 1.1em; color: var(--sand-300); }

.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hero-media .media-note {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  background: rgba(10, 23, 41, 0.72);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(198, 173, 134, 0.55);
  border-radius: var(--radius-xs);
  padding: 0.4rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand-200);
  margin-bottom: 1.4rem;
}
.hero-badge svg { width: 1.15em; height: 1.15em; color: var(--sand-300); }

/* ---------- Migas / breadcrumb ---------- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  padding-top: 1.2rem;
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--sand-400); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy-800); text-decoration: underline; }

/* Migas dentro de encabezados oscuros */
.breadcrumb.on-dark { color: rgba(255, 255, 255, 0.66); padding-top: 0; margin-bottom: 1.1rem; }
.breadcrumb.on-dark a { color: rgba(255, 255, 255, 0.78); }
.breadcrumb.on-dark a:hover { color: #fff; }
.breadcrumb.on-dark li + li::before { color: rgba(255, 255, 255, 0.45); }
.breadcrumb.on-dark li[aria-current] { color: #fff; }

/* ==========================================================================
   Tarjetas
   ========================================================================== */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.6rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--sand-200);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover { border-color: var(--line-strong); border-top-color: var(--accent); box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); margin-bottom: 1.1rem; }
.card .btn { margin-top: auto; align-self: flex-start; }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 26px; height: 26px; }
.card-icon.navy { background: rgba(16, 35, 56, 0.08); color: var(--navy-700); }
.card-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--accent-strong); }
.card .btn-row { margin-top: auto; padding-top: 1.2rem; }
.card .btn-row .btn { margin-top: 0; }

/* Tarjeta destacada a ancho completo */
.feature-card {
  position: relative;
  overflow: hidden;
  margin-top: clamp(1rem, 2.5vw, 1.6rem);
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  padding: clamp(1.7rem, 4vw, 2.8rem);
}
.feature-card::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -140px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(205, 185, 155, 0.16), transparent 68%);
  pointer-events: none;
}
.feature-card > * { position: relative; z-index: 1; }
.feature-card .eyebrow { color: var(--sand-300); }
.feature-card .eyebrow::before { background: var(--sand-300); }
.feature-card h3 {
  color: #fff;
  font-size: var(--step-2);
  margin-bottom: 0.5rem;
  max-width: 40ch;
}
.feature-card p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 62ch;
  margin-bottom: 1.4rem;
}
.feature-card .btn-row { justify-content: flex-start; }

.feature-list { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.feature-list li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.5rem;
  color: var(--ink-soft);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
}
.feature-list li::after {
  content: "";
  position: absolute;
  left: 0.36rem;
  top: 0.62em;
  width: 0.3rem;
  height: 0.55rem;
  border: solid var(--accent-strong);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- Split imagen + texto ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 5vw, 4rem);
  align-items: center;
}
.split-media { position: relative; }
.split-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 5 / 4;
  object-fit: cover;
}
.split-media.reverse { order: 2; }
.media-note {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.media-note.on-image {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  margin: 0;
  background: rgba(10, 23, 41, 0.7);
  color: rgba(255, 255, 255, 0.85);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* ---------- Pasos ---------- */
.steps { display: grid; gap: 1rem; counter-reset: paso; }
.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
}
.step-num {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
}
.step h3 { font-size: 1.12rem; margin-bottom: 0.35rem; }
.step p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ---------- Lista de zonas ---------- */
.zone-group { margin-bottom: 1.8rem; }
.zone-group h3 { font-size: 1.15rem; margin-bottom: 0.7rem; }
.zone-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}
.zone-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.zone-list li:hover { border-color: var(--accent); box-shadow: var(--shadow-xs); }
.zone-list a {
  display: inline-block;
  padding: 0.42rem 0.9rem;
  color: var(--navy-800);
  text-decoration: none;
}
.zone-list a:hover { color: var(--accent-strong); }

/* ---------- Mapa embebido ---------- */
.map-embed {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  margin: 1.2rem 0 0.6rem;
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: clamp(260px, 42vw, 420px);
  border: 0;
}
.map-note { font-size: 0.84rem; color: var(--muted); }

/* ---------- Aviso / nota ---------- */
.notice {
  display: flex;
  gap: 0.9rem;
  background: var(--sand-050);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
  color: var(--ink-soft);
}
.notice svg { width: 22px; height: 22px; color: var(--accent-strong); flex: none; margin-top: 0.15rem; }
.notice p:last-child { margin-bottom: 0; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { max-width: 820px; margin-inline: auto; }
.faq-list.wide { max-width: none; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 0.7rem;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 3rem 1.05rem 1.2rem;
  font-weight: 600;
  color: var(--navy-900);
  position: relative;
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item .faq-answer { padding: 0 1.2rem 1.2rem; color: var(--ink-soft); }
.faq-item .faq-answer p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Contacto / formulario
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.8rem, 4vw, 3.2rem);
  align-items: start;
}
.contact-cards { display: grid; gap: 0.9rem; }
.contact-card {
  display: flex;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
}
.contact-card .card-icon { margin: 0; width: 44px; height: 44px; border-radius: 12px; }
.contact-card .card-icon svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 1.02rem; margin: 0 0 0.15rem; }
.contact-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.contact-card a { text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1.05rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
  color: var(--navy-800);
}
.field label .req { color: var(--accent); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-xs);
  background: var(--cream);
  font: inherit;
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }
.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-xs);
  font-size: 0.95rem;
}
.form-status.is-visible { display: block; }
.form-status.is-error { background: #fdecec; border: 1px solid #f3c2c2; color: #8a2b2b; }
.form-status.is-ok { background: #e9f6ee; border: 1px solid #bfe3cc; color: #1c6b45; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.68);
  padding-block: clamp(2.8rem, 6vw, 4.5rem) 1.6rem;
  font-size: 0.94rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2rem;
}
.site-footer h3 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { color: #fff; }
.footer-brand .brand-mark { background: rgba(255, 255, 255, 0.1); color: var(--sand-200); }
.footer-brand .brand-text b { color: #fff; }
.footer-brand .brand-text span { color: var(--sand-300); }
.footer-about { margin-top: 1rem; max-width: 34ch; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-contact li { margin-bottom: 0.7rem; display: flex; gap: 0.6rem; }
.footer-contact svg { width: 18px; height: 18px; color: var(--sand-300); flex: none; margin-top: 0.2rem; }
.footer-alt {
  margin-top: 2.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-alt h3 { margin-bottom: 0.9rem; }
.footer-alt-links { display: flex; flex-wrap: wrap; gap: 0.45rem 1rem; }
.footer-alt-links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}
.footer-alt-links a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom p { margin: 0; }

/* ==========================================================================
   Botón flotante de WhatsApp
   ========================================================================== */
.wa-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--wa);
  color: #fff;
  text-decoration: none;
  padding: 0.8rem 1.15rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.18s ease, background 0.18s ease;
}
.wa-float:hover { background: var(--wa-strong); color: #fff; transform: translateY(-2px); }
.wa-float svg { width: 24px; height: 24px; }
.wa-float span { font-size: 0.95rem; }
@media (max-width: 560px) {
  .wa-float span { display: none; }
  .wa-float { padding: 0.85rem; }
}

/* ==========================================================================
   Blog
   ========================================================================== */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.82);
  padding-block: clamp(2.8rem, 6.5vw, 5rem);
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -140px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(205, 185, 155, 0.18), transparent 68%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 22ch; font-size: var(--step-3); }
.page-hero p { max-width: 62ch; color: rgba(255, 255, 255, 0.8); margin-bottom: 0; }
.page-hero.cream { background: var(--cream-2); color: var(--ink-soft); }
.page-hero.cream::after { background: radial-gradient(circle, rgba(162, 94, 42, 0.10), transparent 68%); }
.page-hero.cream h1 { color: var(--navy-900); }
.page-hero.cream p { color: var(--muted); }

.blog-toolbar {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}
.blog-search { position: relative; max-width: 480px; }
.blog-search svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--muted);
}
.blog-search input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.9rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  font: inherit;
}
.blog-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  border: 1.5px solid var(--line-strong);
  background: var(--white);
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  padding: 0.42rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent-strong); }
.chip[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.chip .chip-count { opacity: 0.6; margin-left: 0.35rem; font-size: 0.82em; }

.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.post-card .post-cat {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.post-card h2 { font-size: 1.2rem; line-height: 1.25; margin-bottom: 0.6rem; }
.post-card h2 a { color: var(--navy-900); text-decoration: none; }
.post-card h2 a:hover { color: var(--accent-strong); }
.post-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1rem; }
.post-card .post-more {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent-strong);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.post-card .post-more svg { width: 1.1em; height: 1.1em; }

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.pagination button {
  min-width: 42px;
  height: 42px;
  padding: 0 0.7rem;
  border: 1.5px solid var(--line-strong);
  background: var(--white);
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
}
.pagination button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-strong); }
.pagination button[aria-current="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
.blog-empty { text-align: center; color: var(--muted); padding: 3rem 0; }
.blog-count { color: var(--muted); font-size: 0.9rem; }

/* ==========================================================================
   Artículo
   ========================================================================== */
.article-head { background: var(--cream-2); border-bottom: 1px solid var(--line); }
.article-head .wrap { padding-block: clamp(1.6rem, 4vw, 2.8rem) clamp(1.8rem, 4vw, 3rem); }
.article-head h1 { max-width: 22ch; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 0.6rem;
}
.article-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.article-meta svg { width: 1em; height: 1em; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: start;
}
.article-body { max-width: 72ch; min-width: 0; }
.article-body > .blog-kicker { display: none; }
.article-body h2 { margin-top: 2.4rem; scroll-margin-top: 100px; }
.article-body h3 { margin-top: 1.8rem; scroll-margin-top: 100px; }
.article-body p, .article-body li { color: var(--ink-soft); }
.article-body ul, .article-body ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body li > br { display: block; content: ""; margin-top: 0.25rem; }
.article-body img { border-radius: var(--radius); margin: 1.5rem 0; }
.article-body a:not(.btn) { color: var(--accent-strong); }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.article-body th, .article-body td {
  border: 1px solid var(--line);
  padding: 0.6rem 0.8rem;
  text-align: left;
}
.article-body th { background: var(--sand-050); }

.blog-highlight {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  margin: 1.6rem 0;
}
.blog-highlight p { margin: 0; color: var(--accent-ink); }

.blog-cta-box {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
  margin: 2rem 0;
}
.blog-cta-box p { color: rgba(255, 255, 255, 0.85); }
.blog-cta-box p:first-child { color: #fff; font-size: 1.15rem; font-family: var(--font-display); }
.blog-cta-box strong { color: #fff; }
.blog-cta-box .btn { margin-top: 0.5rem; }

.toc {
  background: var(--sand-050);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin: 1.8rem 0;
}
.toc h2 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-800);
  margin-bottom: 0.7rem;
}
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin-bottom: 0.35rem; color: var(--ink-soft); }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.article-aside { position: sticky; top: 96px; display: grid; gap: 1.2rem; }
.aside-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
}
.aside-card h2 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
}
.aside-card ul { list-style: none; margin: 0; padding: 0; }
.aside-card li { margin-bottom: 0.7rem; }
.aside-card li a { text-decoration: none; color: var(--ink-soft); font-size: 0.95rem; }
.aside-card li a:hover { color: var(--accent-strong); text-decoration: underline; }

.related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.related h2 { font-size: var(--step-2); }
.related .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ==========================================================================
   Utilidades
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .nav-list a { padding: 0.5rem 0.6rem; font-size: 0.9rem; }
  .primary-nav { gap: 0.8rem; }
  .header-cta .btn { padding: 0.66rem 1rem; font-size: 0.92rem; }
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .related .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .site-header-inner { min-height: 76px; }
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-left: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem var(--gutter) 1.2rem;
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list a { display: block; padding: 0.9rem 0.2rem; border-radius: 0; font-size: 1.03rem; white-space: normal; }
  .nav-list a:hover { background: transparent; color: var(--accent-strong); }
  .nav-list a[aria-current="page"] { background: transparent; box-shadow: none; color: var(--accent-strong); }
  .header-cta { margin-top: 0.9rem; }
  .header-cta .btn { width: 100%; }
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 16 / 10; }

  .split { grid-template-columns: 1fr; }
  .split-media.reverse { order: 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps-4 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .topbar-tag { display: none; }
  .topbar-inner { justify-content: center; }
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .blog-grid, .related .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .brand-text span { display: none; }
  .hero-trust { flex-direction: column; gap: 0.5rem; }
}

/* Espacio para que el botón flotante no tape el final del footer */
body { padding-bottom: 0; }
@media (max-width: 560px) {
  .site-footer { padding-bottom: 5.5rem; }
}
