/* =========================================================
   serviciosfunerarios24h.es
   Comparador / orientación funeraria — Madrid Sur
   CSS3 · Mobile-First · Variables CSS
   Paleta: blanco roto · beige cálido · dorado champagne mate
   ========================================================= */

/* ---------- Variables de diseño ---------- */
:root {
  /* Fondos */
  --cream:        #faf7f1;   /* blanco roto (fondo principal) */
  --cream-2:      #f4eee3;   /* variante suave */
  --beige:        #ece2d1;   /* beige cálido */
  --beige-deep:   #e2d5bf;

  /* Dorado champagne mate */
  --gold:         #c2a568;
  --gold-soft:    #d8c39a;
  --gold-line:    #e0d2b4;

  /* Tono profundo elegante (24h / footer) — marrón cálido, nunca rojo agresivo */
  --brown-deep:   #3a322a;
  --brown-deeper: #2b241e;

  /* Textos */
  --text:         #403a32;   /* gris oscuro / marrón muy suave */
  --text-soft:    #6f665a;
  --text-light:   #8a8073;
  --white:        #ffffff;

  /* Éxito (verde salvia suave, coherente con la paleta) */
  --success-bg:   #eef2e6;
  --success:      #5c7346;
  --success-txt:  #3f4f30;

  /* Tipografía del sistema (carga instantánea) */
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, "Noto Sans", sans-serif;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(58, 50, 42, 0.07);
  --shadow-md: 0 10px 30px rgba(58, 50, 42, 0.12);
  --tap: 48px;
  --maxw: 1100px;
}

/* ---------- Reset ligero ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Evitar desbordamiento lateral en elementos con anchura intrínseca */
img, svg, video, iframe, table { max-width: 100%; }

h1, h2, h3 { line-height: 1.28; color: var(--brown-deep); margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }

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

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 14px 26px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--gold);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: #b0945a; }

.btn--ghost {
  background: transparent;
  color: var(--brown-deep);
  border-color: var(--gold);
}
.btn--ghost:hover { background: rgba(194, 165, 104, 0.12); }

.btn--light {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn--light:hover { background: rgba(255, 255, 255, 0.24); }

.btn--block { width: 100%; }

/* Botón grande y destacado (LLAMAR AHORA en el hero) */
.btn--xl {
  min-height: 60px;
  padding: 16px 30px;
  font-size: 1.18rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 26px rgba(194, 165, 104, 0.5);
  animation: heroPulse 2.2s ease-in-out infinite;
}
.btn--xl:hover { box-shadow: 0 14px 32px rgba(194, 165, 104, 0.6); transform: translateY(-2px); }
@keyframes heroPulse {
  0%, 100% { box-shadow: 0 10px 26px rgba(194, 165, 104, 0.45); }
  50% { box-shadow: 0 10px 34px rgba(194, 165, 104, 0.75); }
}

/* Botón secundario de oferta (Cremación) */
.btn--offer {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  min-height: 60px;
  padding: 16px 26px;
  border-radius: var(--radius-lg);
  font-size: 1.05rem;
  flex-direction: column;
  line-height: 1.15;
  gap: 2px;
}
.btn--offer small { font-size: .74rem; font-weight: 600; opacity: .85; }
.btn--offer:hover { background: rgba(255, 255, 255, 0.22); }

/* ---------- Navbar ---------- */
.navbar {
  background: var(--cream);
  border-bottom: 1px solid var(--gold-line);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(58, 50, 42, 0.06);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; min-width: 0; flex: 1 1 auto; }
.brand__logo {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__name {
  font-weight: 800; font-size: 1.02rem; letter-spacing: .2px; color: var(--brown-deep);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.brand__subtitle {
  font-size: .72rem; color: var(--text-light);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}

.navbar__phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brown-deep);
  font-weight: 700;
  text-decoration: none;
  font-size: .95rem;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: var(--radius);
  border: 1.5px solid var(--gold);
  flex-shrink: 0;
}
.navbar__phone:hover { background: rgba(194, 165, 104, 0.12); }

/* Ajustes responsive del banner superior en móviles estrechos */
@media (max-width: 480px) {
  .navbar__inner { gap: 8px; }
  .brand__logo { width: 34px; height: 34px; font-size: 1rem; }
  .brand__name { font-size: .88rem; }
  .brand__subtitle { font-size: .64rem; }
  .navbar__phone { font-size: .82rem; padding: 8px 10px; }
}
@media (max-width: 360px) {
  .brand__subtitle { display: none; }
  .navbar__phone span[aria-hidden] { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  padding: 56px 0 60px;
  background:
    linear-gradient(180deg, rgba(43, 36, 30, 0.62) 0%, rgba(43, 36, 30, 0.72) 100%),
    center / cover no-repeat;
  background-image:
    linear-gradient(180deg, rgba(43, 36, 30, 0.60) 0%, rgba(43, 36, 30, 0.74) 100%),
    url("assets/hero-serenidad.jpg");
}
.hero--mostoles {
  background-image:
    linear-gradient(180deg, rgba(43, 36, 30, 0.58) 0%, rgba(43, 36, 30, 0.72) 100%),
    url("../assets/camino-sereno.jpg");
}
.hero__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 6px 15px;
  font-size: .8rem;
  font-weight: 600;
  margin: 0 0 16px;
  letter-spacing: .3px;
}
.hero__title { color: #fff; font-size: 1.95rem; margin-bottom: 14px; text-shadow: 0 1px 12px rgba(0,0,0,.25); }
.hero__subtitle { color: #f2ece1; font-size: 1.08rem; max-width: 640px; }
.hero__actions { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 20px; }
.hero__trust {
  list-style: none;
  display: flex; flex-wrap: wrap;
  gap: 8px 20px;
  padding: 0; margin: 0;
  font-size: .9rem;
  color: #ede5d8;
}

/* Hero centrado (Home) */
.hero--center { text-align: center; }
.hero--center .hero__subtitle { margin-left: auto; margin-right: auto; }
.hero--center .hero__actions { align-items: center; }
.hero--center .hero__trust { justify-content: center; }
.hero--center .hero__actions .btn { width: 100%; max-width: 380px; }

/* ---------- Bloque 24h (elegante, no agresivo) ---------- */
.urgency {
  background: linear-gradient(160deg, var(--brown-deep) 0%, var(--brown-deeper) 100%);
  color: #fff;
  padding: 38px 0;
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
}
/* Variante con fondo de imagen (camino sereno) */
.urgency--photo {
  background:
    linear-gradient(160deg, rgba(43, 36, 30, 0.82) 0%, rgba(43, 36, 30, 0.88) 100%),
    center / cover no-repeat;
  background-image:
    linear-gradient(160deg, rgba(43, 36, 30, 0.82) 0%, rgba(43, 36, 30, 0.88) 100%),
    url("assets/camino-sereno.jpg");
}
.urgency__inner { text-align: center; }
.urgency__flag {
  font-weight: 700;
  letter-spacing: 2px;
  font-size: .8rem;
  color: var(--gold-soft);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.urgency__title { color: #fff; font-size: 1.55rem; }
.urgency__text { color: #e6ddce; max-width: 620px; margin: 0 auto 22px; }

.btn-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 74px;
  padding: 14px 22px;
  background: var(--gold);
  color: #fff;
  border-radius: var(--radius-lg);
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn-call:hover { transform: translateY(-2px); background: #b0945a; box-shadow: 0 14px 32px rgba(0,0,0,.4); }
.btn-call:active { transform: translateY(0); }
.btn-call__icon { font-size: 1.9rem; }
.btn-call__label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.btn-call__label strong { font-size: 1.3rem; letter-spacing: .5px; }
.btn-call__label small { font-size: .88rem; color: #fbf4e6; font-weight: 600; }

.urgency__note { font-size: .82rem; color: #d8ccb8; margin: 16px 0 0; }

/* ---------- Secciones genéricas ---------- */
.section { padding: 52px 0; }
.section--alt { background: var(--cream-2); }
.section__title { font-size: 1.55rem; text-align: center; }
.section__subtitle {
  text-align: center;
  color: var(--text-soft);
  max-width: 660px;
  margin: 0 auto 30px;
}
.section__eyebrow {
  display: block;
  text-align: center;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: 8px;
}

/* ---------- Beneficios / tarjetas ---------- */
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 18px; }
.card {
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: transform .15s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__icon {
  font-size: 2.2rem;
  width: 66px; height: 66px;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream-2);
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  color: var(--gold);
}
.card__icon svg { width: 30px; height: 30px; display: block; }
.card__title { font-size: 1.15rem; }
.card__text { color: var(--text-soft); font-size: .97rem; margin: 0; }

/* ---------- Bloque imagen + texto ---------- */
.media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
.media__img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.media__img img { width: 100%; height: 100%; object-fit: cover; }
.media__body h2 { font-size: 1.5rem; }
.media__list { list-style: none; padding: 0; margin: 16px 0 0; }
.media__list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--text-soft);
}
.media__list li::before {
  content: "✦";
  position: absolute; left: 0; top: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ---------- Zonas cubiertas ---------- */
.zones { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.zone-chip {
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  color: var(--brown-deep);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: background .15s ease, border-color .15s ease;
}
.zone-chip:hover { background: var(--cream-2); border-color: var(--gold); }
.zone-chip--active { background: var(--gold); color: #fff; border-color: var(--gold); }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 18px; counter-reset: step; }
.step {
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  padding: 24px 22px 22px;
  position: relative;
}
.step__num {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--text-soft); font-size: .95rem; margin: 0; }

/* ---------- Formulario ---------- */
.form-section { padding: 52px 0; background: var(--beige); }
.form-section__inner { display: grid; grid-template-columns: 1fr; gap: 26px; }
.form-intro__list { list-style: none; padding: 0; margin: 18px 0 0; color: var(--text-soft); font-size: .95rem; }
.form-intro__list li { margin-bottom: 6px; }

.lead-form {
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 18px; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 7px; font-size: .95rem; color: var(--brown-deep); }
.req { color: var(--gold); }

.field input[type="text"],
.field input[type="tel"],
.field select {
  width: 100%;
  min-height: var(--tap);
  padding: 12px 14px;
  border: 1.5px solid var(--gold-line);
  border-radius: var(--radius);
  font-size: 1.02rem;
  font-family: inherit;
  color: var(--text);
  background: var(--cream);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input:focus, .field select:focus {
  outline: none;
  background: #fff;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(194, 165, 104, 0.2);
}
.field__hint { display: block; margin-top: 6px; font-size: .82rem; color: var(--text-light); }

/* Radios */
.field--radio { border: none; margin: 0 0 18px; padding: 0; }
.radio-group { display: flex; flex-direction: column; gap: 10px; }
.radio {
  display: flex; align-items: center; gap: 10px;
  min-height: var(--tap);
  padding: 8px 14px;
  border: 1.5px solid var(--gold-line);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  background: var(--cream);
  transition: border-color .15s ease, background .15s ease;
}
.radio:hover { border-color: var(--gold); }
.radio input { width: 20px; height: 20px; accent-color: var(--gold); }

/* Consentimiento RGPD */
.consent {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--cream-2);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  padding: 14px;
  font-size: .88rem;
  color: var(--text-soft);
  margin-bottom: 18px;
}
.consent input { width: 22px; height: 22px; margin-top: 2px; flex-shrink: 0; accent-color: var(--gold); }
.consent a { color: var(--gold); font-weight: 600; }

.lead-form__legal { font-size: .76rem; color: var(--text-light); margin: 14px 0 0; }

/* Errores */
.field .invalid, .consent.invalid { border-color: #b26b4a !important; }
.consent.invalid { box-shadow: 0 0 0 3px rgba(178, 107, 74, 0.14); }

/* Éxito */
.form-success {
  margin-top: 20px;
  background: var(--success-bg);
  border: 1.5px solid var(--success);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  animation: fadeIn .35s ease;
}
.form-success h3 { color: var(--success); font-size: 1.25rem; margin-bottom: 8px; }
.form-success p { color: var(--success-txt); margin: 0 0 6px; }
.form-success__ico { font-size: 2.6rem; display: block; margin-bottom: 8px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  padding: 4px 18px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--brown-deep);
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-soft); margin: 0 0 14px; font-size: .96rem; }

/* ---------- Disclaimer ---------- */
.disclaimer { background: var(--cream-2); color: var(--text-soft); padding: 24px 0; border-top: 1px solid var(--gold-line); }
.disclaimer p { margin: 0; font-size: .86rem; text-align: center; }
.disclaimer strong { color: var(--brown-deep); }

/* ---------- Footer ---------- */
.footer { background: var(--brown-deep); color: #d9cfbf; padding: 40px 0 88px; }
.footer__inner { display: flex; flex-direction: column; gap: 22px; }
.footer__col .brand__name { color: #fff; font-size: 1.1rem; }
.footer__tag { font-size: .85rem; margin: 8px 0 0; color: #c3b8a5; }
.footer__title { color: #fff; font-size: .95rem; font-weight: 700; margin: 0 0 10px; letter-spacing: .3px; }
.footer__nav { display: flex; flex-direction: column; gap: 8px; }
.footer__nav a { color: #d9cfbf; text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
.footer__nav a:hover { color: #fff; text-decoration: underline; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 16px;
  font-size: .78rem;
  color: #a89c88;
  text-align: center;
}

/* ---------- Barra fija móvil ---------- */
.sticky-call {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  background: var(--gold);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.2);
  font-size: 1.02rem;
}
.sticky-call:active { background: #b0945a; }

/* =========================================================
   MEDIA QUERIES
   ========================================================= */
@media (min-width: 680px) {
  .hero__title { font-size: 2.5rem; }
  .hero__actions { flex-direction: row; }
  .hero__actions .btn { flex: 0 0 auto; }
  .hero--center .hero__actions { justify-content: center; }
  .hero--center .hero__actions .btn { width: auto; }
  .urgency__title { font-size: 1.95rem; }
  .radio-group { flex-direction: row; flex-wrap: wrap; }
  .radio { flex: 1 1 160px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  body { font-size: 18px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .media { grid-template-columns: 1fr 1fr; }
  .media--reverse .media__img { order: 2; }
  .form-section__inner { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
  .form-intro { position: sticky; top: 90px; }
  .footer__inner { flex-direction: row; justify-content: space-between; }
  .footer__col { flex: 1; }
  .section__title { font-size: 1.95rem; }
  .hero__title { font-size: 2.9rem; }
  .sticky-call { display: none; }
  .footer { padding-bottom: 40px; }
}

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

/* =========================================================
   COMPONENTES MULTIPÁGINA (v2)
   ========================================================= */

/* ----- Navegación con menú + hamburguesa ----- */
.navbar__inner { flex-wrap: wrap; }
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 46px; height: 46px; padding: 0; flex-shrink: 0;
  background: transparent; border: 1.5px solid var(--gold); border-radius: 10px; cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--brown-deep); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu { display: none; flex-direction: column; width: 100%; order: 3; margin-top: 8px; gap: 0; padding-bottom: 6px; }
.nav-menu.is-open { display: flex; }
.nav-link { padding: 13px 6px; color: var(--brown-deep); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--gold-line); }
.nav-link:hover, .nav-link.is-active { color: var(--gold); }
.nav-menu .navbar__phone { margin-top: 12px; justify-content: center; }

@media (min-width: 960px) {
  .navbar__inner { flex-wrap: nowrap; }
  .nav-toggle { display: none; }
  .nav-menu { display: flex; flex-direction: row; align-items: center; width: auto; order: 0; margin-top: 0; padding-bottom: 0; }
  .nav-link { padding: 8px 12px; border-bottom: none; font-size: .95rem; }
  .nav-menu .navbar__phone { margin-top: 0; margin-left: 10px; }
}

/* ----- Page hero interior ----- */
.page-hero {
  background: linear-gradient(160deg, var(--brown-deep) 0%, var(--brown-deeper) 100%);
  color: #fff; padding: 48px 0; text-align: center;
}
.page-hero--photo {
  background:
    linear-gradient(160deg, rgba(43,36,30,.80), rgba(43,36,30,.88)),
    url("assets/camino-sereno.jpg") center / cover no-repeat;
}
.page-hero h1 { color: #fff; font-size: 1.85rem; margin-bottom: 10px; }
.page-hero p { color: #e6ddce; max-width: 640px; margin: 0 auto; }
@media (min-width: 900px){ .page-hero h1 { font-size: 2.5rem; } }

/* ----- Breadcrumb ----- */
.breadcrumb { background: var(--cream-2); font-size: .82rem; color: var(--text-light); }
.breadcrumb .container { padding-top: 12px; padding-bottom: 12px; }
.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ----- CTA band ----- */
.cta-band { background: linear-gradient(160deg, var(--gold), var(--gold-soft)); color: #fff; text-align: center; padding: 42px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #fff8ec; max-width: 620px; margin: 0 auto 20px; }
.cta-band__actions { display: flex; justify-content: center; }
.cta-band .btn--primary { background: #fff; color: var(--brown-deep); animation: none; box-shadow: var(--shadow-md); }
.cta-band .btn--primary:hover { background: #fff; transform: translateY(-2px); }

/* ----- Prose (blog + legales) ----- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.4rem; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 1.15rem; margin: 1.3em 0 .4em; color: var(--brown-deep); }
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .5em; }
.prose .prose-lead { font-size: 1.12rem; color: var(--text-soft); }
.prose img { border-radius: var(--radius-lg); margin: 1.4em 0; box-shadow: var(--shadow-sm); width: 100%; }
.prose blockquote {
  border-left: 4px solid var(--gold); background: var(--cream-2);
  padding: 14px 18px; margin: 1.5em 0; border-radius: 8px; color: var(--text-soft);
}
.prose a { color: var(--gold); font-weight: 600; }
.prose-cta { background: var(--brown-deep); color: #fff; border-radius: var(--radius-lg); padding: 20px 22px; margin: 1.6em 0; }
.prose-cta p { margin: 0; color: #f2ece1; }
.prose-cta a { color: var(--gold-soft); }
.article-title { font-size: 1.7rem; margin: .2em 0 .6em; }
@media (min-width:900px){ .article-title { font-size: 2.2rem; } }
.article-hero { aspect-ratio: 16/9; object-fit: cover; }

/* Tablas ----- */
.ptable { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; }
.ptable th, .ptable td { border: 1px solid var(--gold-line); padding: 10px 12px; text-align: left; }
.ptable thead th { background: var(--cream-2); color: var(--brown-deep); }

/* Author box ----- */
.author-box { display: flex; gap: 14px; align-items: flex-start; margin-top: 2em; padding: 18px; background: var(--cream-2); border-radius: var(--radius-lg); border: 1px solid var(--gold-line); }
.author-box__ico { width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.author-box span { color: var(--text-soft); font-size: .92rem; }

/* ----- Blog / cards ----- */
.post-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 640px){ .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px){ .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { background: #fff; border: 1px solid var(--gold-line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.post-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.post-card__tag { color: var(--gold); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; }
.post-card h3 { font-size: 1.08rem; margin: 0; }
.post-card p { color: var(--text-soft); font-size: .92rem; margin: 0; }
.post-meta { color: var(--text-light); font-size: .8rem; margin-top: auto; }
.readmore { color: var(--gold); font-weight: 700; font-size: .9rem; }
.zone-card .post-card__body { min-height: 150px; }

/* ----- Precios / servicios ----- */
.price-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 820px){ .price-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.price-card { background: #fff; border: 1px solid var(--gold-line); border-radius: var(--radius-lg); padding: 28px 22px; display: flex; flex-direction: column; text-align: center; }
.price-card--featured { border: 2px solid var(--gold); box-shadow: var(--shadow-md); position: relative; }
.price-card--featured::before { content: "Más elegido"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 14px; border-radius: 999px; white-space: nowrap; }
.price-card h3 { font-size: 1.2rem; }
.price-card__price { font-size: 2rem; font-weight: 800; color: var(--brown-deep); margin: 6px 0 4px; }
.price-card__price small { display: block; font-size: .78rem; font-weight: 600; color: var(--text-light); }
.price-card ul { list-style: none; padding: 0; margin: 16px 0 20px; text-align: left; flex: 1; }
.price-card li { padding: 9px 0 9px 26px; position: relative; border-bottom: 1px solid var(--gold-line); font-size: .93rem; color: var(--text-soft); }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }
.price-note { text-align: center; color: var(--text-light); font-size: .84rem; max-width: 680px; margin: 22px auto 0; }

.serv-block__grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 10px; }
@media (min-width: 820px){ .serv-block__grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.serv-block h2 { font-size: 1.4rem; }
.serv-block__list { list-style: none; padding: 0; margin: 0; }
.serv-block__list li { padding: 10px 0 10px 28px; position: relative; border-bottom: 1px solid var(--gold-line); color: var(--text-soft); }
.serv-block__list li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); }

/* ----- Contacto ----- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 900px){ .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--gold-line); align-items: flex-start; }
.info-list .ico { color: var(--gold); font-size: 1.3rem; flex-shrink: 0; width: 26px; text-align: center; }
.info-list a { color: var(--gold); font-weight: 600; text-decoration: none; }

/* ----- Help ----- */
.help-h2 { font-size: 1.3rem; margin: 1.6em 0 .6em; color: var(--brown-deep); }

/* ----- Footer ampliado ----- */
.footer__inner--wide { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 700px){ .footer__inner--wide { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1000px){ .footer__inner--wide { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } }
.footer__nap { font-size: .85rem; margin-top: 12px; line-height: 1.9; }
.footer__nap a { color: #e7dcc7; text-decoration: none; }
.footer__nap span { color: #c3b8a5; }

/* ----- Chat flotante IA ----- */
.chat-fab {
  position: fixed; right: 16px; bottom: 78px; z-index: 70;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--gold); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(58,50,42,.3);
}
.chat-fab svg { width: 28px; height: 28px; }
.chat-fab:hover { background: #b0945a; }
@media (min-width: 900px){ .chat-fab { bottom: 24px; right: 24px; } }

.chat-panel {
  position: fixed; right: 16px; bottom: 146px; z-index: 71;
  width: min(360px, calc(100vw - 32px)); height: min(520px, calc(100vh - 190px));
  background: #fff; border: 1px solid var(--gold-line); border-radius: 16px;
  box-shadow: var(--shadow-md); display: none; flex-direction: column; overflow: hidden;
}
.chat-panel.is-open { display: flex; }
@media (min-width: 900px){ .chat-panel { bottom: 96px; right: 24px; } }
.chat-header { background: var(--brown-deep); color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.chat-close { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; line-height: 1; }
.chat-body { flex: 1; overflow-y: auto; padding: 14px; background: var(--cream); }
.chat-msg { margin-bottom: 10px; max-width: 85%; padding: 10px 13px; border-radius: 14px; font-size: .92rem; line-height: 1.5; }
.chat-msg--bot { background: #fff; border: 1px solid var(--gold-line); border-bottom-left-radius: 4px; }
.chat-msg--user { background: var(--gold); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.chat-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--gold-line); background: #fff; }
.chat-input input { flex: 1; min-height: 44px; border: 1.5px solid var(--gold-line); border-radius: 10px; padding: 0 12px; font-family: inherit; font-size: .95rem; }
.chat-input input:focus { outline: none; border-color: var(--gold); }
.chat-input button { min-height: 44px; padding: 0 16px; background: var(--gold); color: #fff; border: none; border-radius: 10px; font-weight: 700; cursor: pointer; }

/* La barra sticky-call no debe tapar el contenido final en móvil */
@media (max-width: 899px){ body { padding-bottom: 0; } }

/* ----- Logo (marca) ----- */
.brand__logo-img { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
@media (max-width: 480px){ .brand__logo-img { width: 40px; height: 40px; } }
.footer__logo { width: 70px; height: 70px; object-fit: contain; margin-bottom: 6px; }
