/* =========================================================
   Rivas Servicios Funerarios — hoja de estilos
   Concepto: la neblina del bosque de Xalapa.
   ========================================================= */

:root {
  --pine: #10392C;
  --pine-deep: #0A261D;
  --pine-2: #1A4636;
  --moss: #3F6F58;
  --moss-soft: #8FB09E;
  --mist: #E8EDE9;
  --mist-2: #DCE4DF;
  --paper: #F8FAF8;
  --wax: #CDAE72;
  --wax-soft: #E8D8B6;
  --wax-deep: #7E6230;
  --ink: #1A2320;
  --muted: #4F5C57;
  --line: #CFD8D3;
  --line-dark: rgba(232, 237, 233, .16);
  --danger: #9B3B2E;
  --ok: #2F6B4B;

  --f-display: "Marcellus", "Palatino Linotype", Palatino, Georgia, serif;
  --f-text: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --radius-lg: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
address { font-style: normal; }
button { font: inherit; }

[id] { scroll-margin-top: 110px; }
:focus-visible { outline: 2px solid var(--wax); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--wax); color: var(--pine); padding: 10px 16px; border-radius: var(--radius); text-decoration: none; }
.skip:focus { top: 12px; }
.hp { position: absolute; left: -9999px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Tipografía ---------- */
.display, .h2, .h3, .hero__title { font-family: var(--f-display); letter-spacing: -.005em; }
.display { font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.08; }
.h2 { font-size: clamp(1.85rem, 3.2vw, 2.6rem); line-height: 1.15; }
.h3 { font-size: 1.45rem; line-height: 1.25; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 58ch; }
.lead--light { color: rgba(232, 237, 233, .78); }
.small { font-size: .9rem; color: var(--muted); }
.prose { max-width: 66ch; }
.prose p { color: var(--muted); }

.text-link {
  display: inline-flex; gap: .5em; align-items: center;
  color: var(--wax-deep); font-weight: 600; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 5px;
}
.text-link:hover { color: var(--pine); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 50px; padding: 0 1.5em;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn--gold { background: var(--wax); color: var(--pine-deep); }
.btn--gold:hover { background: var(--wax-soft); }
.btn--dark { background: var(--pine); color: var(--paper); }
.btn--dark:hover { background: var(--moss); }
.btn--line { border-color: var(--pine); color: var(--pine); background: transparent; }
.btn--line:hover { background: var(--pine); color: var(--paper); }
.btn--line-light { border-color: rgba(232, 237, 233, .45); color: var(--paper); background: transparent; }
.btn--line-light:hover { border-color: var(--wax); color: var(--wax-soft); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Barra superior y encabezado ---------- */
.topbar { background: var(--pine-deep); color: rgba(232, 237, 233, .8); font-size: .88rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar p { margin: 0; }
.topbar__live { display: flex; align-items: center; gap: 10px; }
.topbar__phones { display: flex; gap: 22px; }
.topbar a { text-decoration: none; font-weight: 600; color: var(--wax-soft); }
.topbar a:hover { color: var(--paper); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #7FC29B; box-shadow: 0 0 0 0 rgba(127, 194, 155, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(127, 194, 155, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 194, 155, 0); } }

.site-header { position: sticky; top: 0; z-index: 40; background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(10, 38, 29, .12); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand__logo { height: 54px; width: auto; }
.footer-logo { display: inline-block; background: #fff; border-radius: var(--radius-lg); padding: 14px 18px; }
.footer-logo img { height: 96px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav ul a { display: block; padding: 8px 11px; text-decoration: none; font-size: .96rem; color: var(--muted); border-radius: var(--radius); position: relative; }
.nav ul a:hover { color: var(--pine); }
.nav ul a[aria-current="page"] { color: var(--pine); font-weight: 500; }
.nav ul a[aria-current="page"]::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 1px; background: var(--wax); }
.nav__cta { min-height: 44px; padding: 0 1.2em; font-size: .95rem; }

.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--pine); cursor: pointer; position: relative; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { position: absolute; left: 50%; width: 18px; height: 1.5px; background: currentColor; transform: translateX(-50%); transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle__bars { top: 50%; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; left: 0; transform: none; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { 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); }

@media (max-width: 1200px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 123px 0 0 0; z-index: 39;
    flex-direction: column; align-items: stretch; gap: 24px;
    padding: 24px var(--gutter) 40px; background: var(--pine); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav ul { flex-direction: column; }
  .nav ul a { font-family: var(--f-display); font-size: 1.6rem; padding: 12px 0; border-bottom: 1px solid var(--line-dark); border-radius: 0; color: rgba(232, 237, 233, .85); }
  .nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--paper); }
  .nav ul a[aria-current="page"]::after { display: none; }
  .nav ul a[aria-current="page"] { color: var(--wax-soft); }
  .nav__cta { min-height: 52px; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 640px) {
  .topbar__live { display: none; }
  .topbar__inner { justify-content: center; }
  .site-header__inner { min-height: 70px; }
  .brand__logo { height: 44px; }
  .nav { inset: 109px 0 0 0; }
}

/* ---------- Hero: slider de mensajes ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(calc(100svh - 123px), 780px);
  display: flex; align-items: center;
  color: var(--paper);
  background:
    radial-gradient(ellipse 60% 70% at 78% 40%, rgba(205, 174, 114, .12), transparent 70%),
    linear-gradient(160deg, #0A261D 0%, #10392C 55%, #174736 100%);
  padding: clamp(64px, 10vh, 120px) 0 clamp(48px, 7vh, 80px);
}
.hero__mark {
  position: absolute; z-index: -1; right: -6%; top: 50%; transform: translateY(-50%);
  width: min(62vw, 880px); height: auto; opacity: .06; pointer-events: none;
  filter: grayscale(1) brightness(2.2);
}
.hero__content { position: relative; }

.hero__slides { display: grid; }
.hero__slide { grid-area: 1 / 1; visibility: hidden; align-self: center; }
.hero__slide.is-active, .hero__slide.is-leaving { visibility: visible; }
.hero__slide > * { opacity: 0; }
.hero__slide.is-active > * { animation: slideIn 1s var(--ease) forwards; animation-delay: .2s; }
.hero__slide.is-active > :nth-child(2) { animation-delay: .34s; }
.hero__slide.is-active > :nth-child(3) { animation-delay: .48s; }
.hero__slide.is-leaving > * { opacity: 1; animation: slideOut .55s var(--ease) forwards; }
@keyframes slideIn { from { opacity: 0; transform: translateX(72px); } to { opacity: 1; transform: none; } }
@keyframes slideOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(-48px); } }

.hero__title { font-size: clamp(2.4rem, 5.6vw, 4.7rem); line-height: 1.06; max-width: 17ch; margin-bottom: .45em; }
.hero__lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 46ch; color: rgba(232, 237, 233, .82); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@keyframes fadeIn { to { opacity: 1; } }

.hero__controls { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: clamp(48px, 8vh, 88px); }
.hero__tabs { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__tab {
  display: flex; flex-direction: column; gap: 10px; min-width: 130px; padding: 8px 0;
  background: none; border: 0; color: rgba(232, 237, 233, .55); text-align: left; cursor: pointer; font-size: .9rem;
  transition: color .3s;
}
.hero__tab:hover, .hero__tab.is-active { color: var(--paper); }
.hero__bar { display: block; height: 2px; background: rgba(232, 237, 233, .2); border-radius: 2px; overflow: hidden; }
.hero__fill { display: block; height: 100%; width: 0; background: var(--wax); }
.hero__tab.is-active .hero__fill { animation: fill var(--slide-time, 7s) linear forwards; }
.hero.is-paused .hero__tab.is-active .hero__fill { animation-play-state: paused; }
.hero.is-static .hero__tab.is-active .hero__fill { animation: none; width: 100%; }
@keyframes fill { to { width: 100%; } }

.hero__arrows { display: flex; gap: 8px; }
.hero__arrow {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(232, 237, 233, .3); background: transparent; color: var(--paper); cursor: pointer;
  transition: border-color .25s, background-color .25s;
}
.hero__arrow:hover { border-color: var(--wax); background: rgba(205, 174, 114, .12); }
.hero__arrow svg { width: 20px; height: 20px; }
.hero__arrow .i-play { display: none; }
.hero.is-static .hero__arrow .i-pause { display: none; }
.hero.is-static .hero__arrow .i-play { display: block; }

@media (max-width: 720px) {
  .hero__mark { width: 120vw; right: -40%; opacity: .05; }
  .hero__tab { min-width: 0; flex: 1; }
  .hero__tab-label { display: none; }
  .hero__tabs { flex: 1; gap: 8px; }
  .hero__controls { align-items: center; }
  .hero__actions .btn { flex: 1 1 auto; }
}

/* Hero interior (páginas) */
.page-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--pine); color: var(--paper); padding: clamp(56px, 9vw, 110px) 0 clamp(56px, 8vw, 96px); }
.page-hero::before {
  content: ""; position: absolute; inset: auto -20% -30% -20%; height: 90%; z-index: -1;
  background:
    radial-gradient(ellipse 30% 40% at 20% 70%, rgba(232, 237, 233, .10), transparent 70%),
    radial-gradient(ellipse 28% 36% at 75% 60%, rgba(200, 165, 94, .10), transparent 70%);
  filter: blur(20px);
}
.page-hero .display { max-width: 18ch; }
.page-hero .lead { margin-top: 20px; }
.crumbs { font-size: .9rem; color: rgba(232, 237, 233, .6); margin-bottom: 22px; }
.crumbs a { color: rgba(232, 237, 233, .8); }

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--mist { background: var(--mist); }
.section--tight { padding: clamp(48px, 7vw, 80px) 0; }
.split-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 48px; }
.split-head .lead { margin: 0; }
@media (max-width: 820px) { .split-head { grid-template-columns: 1fr; } }

/* Casos: dónde ocurrió */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case {
  display: flex; flex-direction: column; gap: 10px; padding: 32px 28px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  text-decoration: none; transition: border-color .25s, transform .35s var(--ease);
}
.case:hover { border-color: var(--wax); transform: translateY(-3px); }
.case__ico { width: 44px; height: 44px; color: var(--moss); margin-bottom: 10px; }
.case__title { font-family: var(--f-display); font-size: 1.5rem; }
.case__text { color: var(--muted); font-size: .98rem; }
@media (max-width: 820px) { .cases { grid-template-columns: 1fr; } }

/* Servicios en inicio */
.services-home { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.services-home__aside { position: sticky; top: 120px; }
.services-home__aside .lead { margin: 20px 0 32px; }
.services-home__list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.services-home__list > div { padding: 22px 0; border-top: 1px solid var(--line); }
.services-home__list dt { font-family: var(--f-display); font-size: 1.28rem; margin-bottom: 6px; }
.services-home__list dd { margin: 0; color: var(--muted); font-size: .97rem; }
@media (max-width: 900px) {
  .services-home { grid-template-columns: 1fr; gap: 40px; }
  .services-home__aside { position: static; }
}
@media (max-width: 560px) { .services-home__list { grid-template-columns: 1fr; } }

/* Banda de previsión */
.prevision-band { background: var(--pine); color: var(--paper); padding: clamp(72px, 10vw, 120px) 0; position: relative; overflow: hidden; }
.prevision-band::after {
  content: ""; position: absolute; right: -10%; top: -30%; width: 60%; height: 160%;
  background: radial-gradient(closest-side, rgba(200, 165, 94, .14), transparent);
  pointer-events: none;
}
.prevision-band__inner { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; position: relative; z-index: 1; }
.prevision-band .lead { margin-top: 22px; }
.prevision-band__plans { list-style: none; margin: 0; padding: 0; }
.prevision-band__plans li { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 22px 0; border-top: 1px solid var(--line-dark); }
.prevision-band__plans li:last-child { border-bottom: 1px solid var(--line-dark); }
.pb-name { font-family: var(--f-display); font-size: 1.4rem; }
.pb-desc { grid-row: 2; color: rgba(232, 237, 233, .65); font-size: .95rem; }
.pb-price { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--wax-soft); font-weight: 600; }
@media (max-width: 900px) { .prevision-band__inner { grid-template-columns: 1fr; gap: 40px; } }

/* Destacado */
.feature { display: grid; grid-template-columns: 5fr 6fr; gap: 72px; align-items: center; }
.feature__art { margin: 0; max-width: 420px; }
.feature__text .h2 { margin-bottom: 22px; }
.feature__text p { color: var(--muted); max-width: 56ch; }
.leaf { transform-origin: 160px 140px; animation: sway 7s ease-in-out infinite alternate; }
.leaf--2 { transform-origin: 160px 124px; animation-duration: 9s; }
@keyframes sway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; gap: 32px; } .feature__art { max-width: 260px; } }

/* Lista de homenajes */
.memorial-list { list-style: none; margin: 0 0 32px; padding: 0; border-top: 1px solid var(--line); }
.memorial-row {
  display: grid; grid-template-columns: 56px 2.2fr 1fr 2fr auto; align-items: center; gap: 20px;
  padding: 20px 8px; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: background-color .25s;
}
.memorial-row:hover { background: rgba(255, 255, 255, .55); }
.memorial-row__mono { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-size: 1.15rem; color: var(--pine); border: 1px solid var(--moss-soft); background: var(--paper); }
.memorial-row__name { font-family: var(--f-display); font-size: 1.35rem; line-height: 1.2; }
.memorial-row__years { color: var(--muted); font-variant-numeric: tabular-nums; }
.memorial-row__info { color: var(--muted); font-size: .95rem; }
.memorial-row__candles { display: inline-flex; gap: 6px; align-items: center; color: var(--wax-deep); font-weight: 600; }
@media (max-width: 820px) {
  .memorial-row { grid-template-columns: 52px 1fr auto; gap: 4px 16px; }
  .memorial-row__mono { grid-row: span 2; }
  .memorial-row__years { grid-column: 2; font-size: .92rem; }
  .memorial-row__info { display: none; }
  .memorial-row__candles { grid-row: 1 / span 2; grid-column: 3; }
}

/* Cita */
.quote { padding: clamp(80px, 12vw, 150px) 0; background: var(--mist); }
.quote blockquote { margin: 0 auto; max-width: 900px; position: relative; padding-left: clamp(0px, 6vw, 72px); }
.quote blockquote::before { content: "“"; position: absolute; left: 0; top: -.25em; font-family: var(--f-display); font-size: clamp(4rem, 10vw, 8rem); line-height: 1; color: var(--wax); }
.quote p { font-family: var(--f-display); font-size: clamp(1.7rem, 3.6vw, 2.9rem); line-height: 1.22; margin: 0 0 24px; padding-top: clamp(48px, 7vw, 0px); }
.quote footer { color: var(--muted); }
@media (min-width: 700px) { .quote p { padding-top: 0; } }

/* Acordeón */
.faq-home { display: grid; grid-template-columns: 4fr 7fr; gap: 64px; }
.faq-home .lead { margin: 18px 0 24px; }
@media (max-width: 900px) { .faq-home { grid-template-columns: 1fr; gap: 32px; } }
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 4px; font-size: 1.12rem; font-weight: 500;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
  background: linear-gradient(var(--pine), var(--pine)) center / 11px 1.5px no-repeat, linear-gradient(var(--pine), var(--pine)) center / 1.5px 11px no-repeat;
  transition: transform .35s var(--ease), background-color .25s;
}
.accordion details[open] summary::after { transform: rotate(45deg); background-color: var(--wax-soft); border-color: var(--wax-soft); }
.accordion summary:hover { color: var(--moss); }
.accordion__body { padding: 0 60px 24px 4px; color: var(--muted); }
.accordion__body p:last-child { margin: 0; }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group .h3 { margin-bottom: 16px; }

/* Cierre */
.closing { background: var(--moss); color: var(--paper); padding: 56px 0; }
.closing__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.closing__title { font-family: var(--f-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.2; max-width: 30ch; margin: 0; }
.closing__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.closing .btn--line-light { border-color: rgba(248, 250, 248, .6); }

/* Pie */
.site-footer { background: var(--pine-deep); color: rgba(232, 237, 233, .72); padding: 72px 0 28px; font-size: .96rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 40px; }
.site-footer__brand p { margin-top: 20px; max-width: 36ch; }
.site-footer__h { font-family: var(--f-text); font-size: .95rem; font-weight: 600; color: var(--paper); margin-bottom: 14px; }
.site-footer address { margin-bottom: 12px; }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--wax-soft); }
.link-light { color: var(--wax-soft); text-decoration: underline !important; text-underline-offset: 4px; }
.site-footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: .86rem; }
.site-footer__legal p { margin: 0; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flotante ---------- */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.wa__btn {
  display: inline-flex; align-items: center; gap: 10px; height: 60px; padding: 0 22px 0 18px;
  border: 0; border-radius: 999px; background: #1FA855; color: #fff; cursor: pointer; font-weight: 600;
  box-shadow: 0 10px 30px rgba(20, 60, 40, .35);
  transition: transform .3s var(--ease), background-color .25s;
}
.wa__btn svg { width: 28px; height: 28px; }
.wa__btn:hover { background: #178C46; transform: translateY(-2px); }
.wa__btn::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #1FA855; animation: ring 3s ease-out infinite; pointer-events: none; }
.wa__btn { position: relative; }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.25, 1.4); opacity: 0; } }
.wa__panel {
  width: min(320px, calc(100vw - 40px)); background: var(--paper); border-radius: var(--radius-lg); padding: 18px;
  box-shadow: 0 24px 60px rgba(15, 30, 25, .28); border: 1px solid var(--line);
  transform-origin: bottom right; animation: popIn .3s var(--ease);
}
.wa__panel[hidden] { display: none; }
@keyframes popIn { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.wa__hello { font-size: .95rem; color: var(--muted); margin-bottom: 12px; }
.wa__opt { display: block; padding: 12px 14px; margin-top: 6px; border-radius: 10px; background: var(--mist); text-decoration: none; font-weight: 500; font-size: .96rem; }
.wa__opt:hover { background: var(--mist-2); }
.wa__opt--urgent { background: var(--pine); color: var(--paper); }
.wa__opt--urgent:hover { background: var(--moss); }
@media (max-width: 640px) {
  .wa { right: 14px; bottom: 14px; }
  .wa__label { display: none; }
  .wa__btn { width: 60px; padding: 0; justify-content: center; }
}

/* Aviso emergente */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translate(-50%, 20px);
  background: var(--pine); color: var(--paper); padding: 14px 22px; border-radius: 999px; font-size: .96rem;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); max-width: calc(100vw - 32px);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label, .field .field__label { font-weight: 500; font-size: .95rem; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--moss); box-shadow: 0 0 0 3px rgba(86, 112, 95, .18); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: .88rem; }
.field__hint { color: var(--muted); font-size: .88rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .95rem; transition: all .2s; }
.chip input:checked + span { background: var(--pine); color: var(--paper); border-color: var(--pine); }
.chip input:focus-visible + span { outline: 2px solid var(--wax); outline-offset: 2px; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--pine); }

.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); }
.form-card--mist { background: #fff; }
.form-success { text-align: left; padding: 12px 0; }
.form-success .h3 { margin-bottom: 10px; }
.form-success__mark { width: 52px; height: 52px; border-radius: 50%; background: var(--mist); color: var(--ok); display: grid; place-items: center; margin-bottom: 18px; }
.form-success__mark svg { width: 26px; height: 26px; }
.form-urgent { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 12px; background: var(--mist); margin-bottom: 24px; font-size: .96rem; }
.form-urgent a { font-weight: 600; color: var(--pine); }

/* ---------- Servicios (página) ---------- */
.svc-groups { display: grid; gap: 80px; }
.svc-group { display: grid; grid-template-columns: 4fr 8fr; gap: 56px; }
.svc-group__head .h2 { margin-bottom: 14px; }
.svc-group__head p { color: var(--muted); }
.svc-items { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.svc-item { padding: 24px 0; border-top: 1px solid var(--line); }
.svc-item h3 { font-family: var(--f-display); font-size: 1.3rem; margin-bottom: 8px; }
.svc-item p { color: var(--muted); margin: 0; font-size: .98rem; }
@media (max-width: 900px) { .svc-group { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 560px) { .svc-items { grid-template-columns: 1fr; } }

.panel-dark { background: var(--pine); color: var(--paper); border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.panel-dark p { color: rgba(232, 237, 233, .78); }
.panel-dark .h2 { margin-bottom: 18px; }
@media (max-width: 820px) { .panel-dark { grid-template-columns: 1fr; } }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 28px 64px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -4px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--f-display); font-size: 1.15rem;
  border: 1px solid currentColor; opacity: .9;
}
.steps li::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: 6px; width: 1px; background: currentColor; opacity: .2; }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.12rem; font-weight: 600; font-family: var(--f-text); margin-bottom: 4px; }
.steps p { margin: 0; }
.steps--light p { color: rgba(232, 237, 233, .75); }
.steps--dark p { color: var(--muted); }

/* ---------- Previsión ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column; padding: 36px 30px; border-radius: var(--radius-lg);
  background: var(--paper); border: 1px solid var(--line); position: relative;
}
.plan--featured { background: var(--pine); color: var(--paper); border-color: var(--pine); }
.plan__flag { position: absolute; top: -13px; left: 30px; background: var(--wax); color: var(--pine-deep); font-size: .82rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.plan__name { font-family: var(--f-display); font-size: 1.9rem; }
.plan__for { color: var(--muted); margin: 6px 0 24px; font-size: .98rem; }
.plan--featured .plan__for { color: rgba(232, 237, 233, .7); }
.plan__price { display: flex; align-items: baseline; gap: 8px; }
.plan__price strong { font-family: var(--f-display); font-weight: 400; font-size: 2.6rem; line-height: 1; }
.plan__price span { color: var(--muted); }
.plan--featured .plan__price span { color: rgba(232, 237, 233, .7); }
.plan__total { font-size: .92rem; color: var(--muted); margin: 8px 0 26px; }
.plan--featured .plan__total { color: rgba(232, 237, 233, .65); }
.plan__list { list-style: none; margin: 0 0 30px; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: .97rem; flex: 1; }
.plan--featured .plan__list { border-color: var(--line-dark); }
.plan__list li { display: flex; gap: 10px; }
.plan__list svg { width: 18px; height: 18px; color: var(--moss); margin-top: 3px; flex: none; }
.plan--featured .plan__list svg { color: var(--wax); }
@media (max-width: 980px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; gap: 32px; } }

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .97rem; }
.compare th, .compare td { padding: 15px 20px; text-align: center; border-bottom: 1px solid var(--line); }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { font-family: var(--f-display); font-weight: 400; font-size: 1.2rem; background: var(--mist); position: sticky; top: 0; }
.compare thead th.is-featured { background: var(--pine); color: var(--paper); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td.is-featured { background: rgba(200, 165, 94, .09); }
.compare .yes svg { width: 20px; height: 20px; margin: 0 auto; color: var(--moss); }
.compare .no { color: var(--line); }
.compare .grp td { background: var(--mist); font-weight: 600; font-size: .88rem; color: var(--muted); text-align: left; padding: 10px 20px; }

.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; }
.benefit h3 { font-family: var(--f-display); font-size: 1.35rem; margin: 18px 0 8px; }
.benefit p { color: var(--muted); margin: 0; }
.benefit__ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--moss); border: 1px solid var(--line); }
.benefit__ico svg { width: 24px; height: 24px; }
@media (max-width: 900px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .benefits { grid-template-columns: 1fr; } }

.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .pay-grid { grid-template-columns: 1fr; } }
.pay-methods { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay-methods li { display: flex; gap: 12px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font-weight: 500; font-size: .96rem; }
.pay-methods svg { width: 26px; height: 26px; color: var(--moss); flex: none; }
@media (max-width: 480px) { .pay-methods { grid-template-columns: 1fr; } }

.calc { background: var(--pine); color: var(--paper); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); }
.calc .h3 { margin-bottom: 6px; }
.calc__note { color: rgba(232, 237, 233, .6); font-size: .9rem; }
.calc fieldset { border: 0; padding: 0; margin: 24px 0 0; }
.calc legend { font-weight: 500; margin-bottom: 10px; font-size: .95rem; }
.calc .chip span { background: transparent; color: var(--paper); border-color: var(--line-dark); }
.calc .chip input:checked + span { background: var(--wax); color: var(--pine-deep); border-color: var(--wax); }
.range-row { display: flex; align-items: center; gap: 16px; }
.range-row output { min-width: 64px; text-align: right; font-weight: 600; color: var(--wax-soft); }
input[type="range"] { flex: 1; accent-color: var(--wax); height: 30px; }
.calc__result { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calc__result dt { font-size: .88rem; color: rgba(232, 237, 233, .65); }
.calc__result dd { margin: 4px 0 0; font-family: var(--f-display); font-size: 1.6rem; }
.calc__result .is-main { grid-column: 1 / -1; }
.calc__result .is-main dd { font-size: 2.8rem; color: var(--wax-soft); line-height: 1.05; }
.calc .btn { margin-top: 26px; }

.finance-list { list-style: none; margin: 24px 0 0; padding: 0; }
.finance-list li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.finance-list strong { font-family: var(--f-display); font-weight: 400; font-size: 1.25rem; }
.finance-list span { color: var(--muted); }

.advice { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.advice__aside .lead { margin: 18px 0 30px; }
@media (max-width: 900px) { .advice { grid-template-columns: 1fr; gap: 32px; } }

.fine { font-size: .85rem; color: var(--muted); margin-top: 20px; }

/* ---------- Catálogo ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: .96rem; }
.filter[aria-pressed="true"] { background: var(--pine); border-color: var(--pine); color: var(--paper); }
.catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.product { display: flex; flex-direction: column; }
.product[hidden] { display: none; }
.product__art { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); background: var(--mist); display: grid; place-items: center; overflow: hidden; position: relative; }
.product__art svg { width: 62%; height: auto; max-height: 72%; color: var(--pine); transition: transform .6s var(--ease); }
.product:hover .product__art svg { transform: scale(1.04); }
.product__art--wood { background: #E9E2D6; }
.product__art--gold { background: #EFE7D3; }
.product__art--dark { background: var(--pine); }
.product__art--dark svg { color: var(--wax-soft); }
.product__cat { font-size: .88rem; color: var(--muted); margin-top: 16px; }
.product__name { font-family: var(--f-display); font-size: 1.35rem; margin: 18px 0 6px; }
.product__desc { color: var(--muted); font-size: .96rem; margin: 0 0 12px; }
.product__ask { margin-top: auto; }
@media (max-width: 900px) { .catalog { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .catalog { grid-template-columns: 1fr; } }

/* ---------- Homenaje ---------- */
.memorial-hero { text-align: center; }
.memorial-hero__mono { width: 120px; height: 120px; margin: 0 auto 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-size: 2.4rem; color: var(--wax-soft); border: 1px solid rgba(200, 165, 94, .5); box-shadow: 0 0 0 10px rgba(200, 165, 94, .06); }
.memorial-hero .display { max-width: 20ch; margin: 0 auto; font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.memorial-hero__dates { margin-top: 18px; color: rgba(232, 237, 233, .75); font-size: 1.08rem; }
.memorial-hero__phrase { font-family: var(--f-display); font-size: 1.35rem; color: var(--wax-soft); margin: 26px auto 0; max-width: 36ch; }

.memorial-layout { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .memorial-layout { grid-template-columns: 1fr; gap: 48px; } }
.schedule { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.schedule li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.schedule__what { font-family: var(--f-display); font-size: 1.2rem; }
.schedule__when { font-weight: 600; }
.schedule__where { color: var(--muted); }
.schedule a { font-size: .9rem; }
@media (max-width: 480px) { .schedule li { grid-template-columns: 1fr; gap: 4px; } }

.candle-box { background: var(--pine); color: var(--paper); border-radius: var(--radius-lg); padding: 36px 28px; text-align: center; position: sticky; top: 110px; }
.candle { width: 70px; height: 150px; margin: 0 auto 20px; position: relative; }
.candle__body { position: absolute; bottom: 0; left: 15px; width: 40px; height: 96px; border-radius: 4px 4px 6px 6px; background: linear-gradient(90deg, #E8E1CF, #FBF8EF 45%, #D9D0B9); }
.candle__wick { position: absolute; bottom: 96px; left: 34px; width: 2px; height: 10px; background: #3B3226; }
.candle__flame { position: absolute; bottom: 104px; left: 26px; width: 18px; height: 34px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(ellipse at 50% 75%, #FFF6D8 0%, #FFD783 35%, #E89B3A 70%, transparent 72%); transform-origin: 50% 90%; opacity: 0; transition: opacity .6s; }
.candle__glow { position: absolute; bottom: 70px; left: -30px; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 210, 120, .35), transparent); opacity: 0; transition: opacity .8s; }
.candle.is-lit .candle__flame { opacity: 1; animation: flicker 2.6s ease-in-out infinite; }
.candle.is-lit .candle__glow { opacity: 1; animation: glow 3s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(-1deg); } 25% { transform: scale(1.04, .96) rotate(1.5deg); } 50% { transform: scale(.97, 1.05) rotate(-.5deg); } 75% { transform: scale(1.02, .98) rotate(1deg); } }
@keyframes glow { 50% { opacity: .75; } }
.candle-box__count { font-family: var(--f-display); font-size: 2.4rem; line-height: 1; color: var(--wax-soft); }
.candle-box p { color: rgba(232, 237, 233, .7); }
.share { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.share a, .share button { font-size: .9rem; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-dark); color: var(--paper); background: transparent; text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--wax); }

.condolences { list-style: none; margin: 0 0 40px; padding: 0; display: grid; gap: 16px; }
.condolence { padding: 22px 24px; background: var(--mist); border-radius: 12px; }
.condolence p { margin: 0 0 10px; }
.condolence footer { font-size: .9rem; color: var(--muted); }
.condolence footer strong { color: var(--ink); font-weight: 600; }
.empty { padding: 28px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); }

.memorial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.memorial-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 24px 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); text-decoration: none; transition: border-color .25s; }
.memorial-card:hover { border-color: var(--wax); }
.memorial-card .memorial-row__mono { width: 72px; height: 72px; font-size: 1.5rem; margin-bottom: 18px; }
.memorial-card__name { font-family: var(--f-display); font-size: 1.4rem; line-height: 1.2; }
.memorial-card__years { color: var(--muted); margin: 6px 0 14px; }
.memorial-card__phrase { font-style: italic; color: var(--muted); font-size: .96rem; flex: 1; }
.memorial-card__meta { display: flex; gap: 8px; align-items: center; color: var(--wax-deep); font-weight: 600; font-size: .92rem; margin-top: 14px; }
@media (max-width: 900px) { .memorial-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .memorial-grid { grid-template-columns: 1fr; } }
.search { display: flex; gap: 10px; max-width: 520px; margin-bottom: 36px; }
.search input { flex: 1; min-height: 50px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font: inherit; background: #fff; }

/* ---------- Guía ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.tab { min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: 1rem; }
.tab[aria-selected="true"] { background: var(--pine); color: var(--paper); border-color: var(--pine); }
.tabpanel[hidden] { display: none; }
.guide { display: grid; grid-template-columns: 7fr 4fr; gap: 64px; align-items: start; }
.guide aside { background: var(--mist); border-radius: var(--radius-lg); padding: 30px; position: sticky; top: 110px; }
.guide aside h3 { font-family: var(--f-display); font-size: 1.35rem; margin-bottom: 14px; }
.guide aside ul { margin: 0 0 20px; padding-left: 18px; color: var(--muted); }
.guide aside li { margin-bottom: 6px; }
@media (max-width: 900px) { .guide { grid-template-columns: 1fr; gap: 40px; } .guide aside { position: static; } }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-lines { list-style: none; margin: 28px 0; padding: 0; border-top: 1px solid var(--line); }
.contact-lines li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-lines span { display: block; font-size: .9rem; color: var(--muted); }
.contact-lines a, .contact-lines strong { font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; text-decoration: none; }
.contact-lines a:hover { color: var(--moss); }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--mist); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }

/* ---------- Revelado al desplazarse (solo si hay JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero__slide.is-active > * { opacity: 1; transform: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Impresión (guía) ---------- */
@media print {
  .topbar, .site-header, .closing, .site-footer, .wa, .tabs, .no-print, .toast { display: none !important; }
  .page-hero { background: none; color: #000; padding: 0 0 20px; }
  .page-hero .lead { color: #333; }
  .tabpanel[hidden] { display: block !important; }
  .tabpanel { break-inside: avoid; margin-bottom: 30px; }
  .guide aside { position: static; }
  body { background: #fff; }
}

/* ---------- Paquete de cremación ---------- */
.package { display: grid; grid-template-columns: 6fr 5fr; gap: 64px; align-items: center; }
.package__price { font-family: var(--f-display); font-size: clamp(3rem, 7vw, 5rem); line-height: 1; color: var(--pine); margin: 18px 0 20px; }
.package__price span { font-family: var(--f-text); font-size: 1rem; color: var(--muted); vertical-align: middle; margin-right: 6px; }
.package__includes { background: var(--pine); color: var(--paper); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); }
.package__h { font-family: var(--f-display); font-size: 1.5rem; margin-bottom: 18px; }
.package__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.package__list li { display: flex; gap: 12px; }
.package__list svg { width: 20px; height: 20px; color: var(--wax); flex: none; margin-top: 3px; }
.package__includes .fine { color: rgba(232, 237, 233, .6); margin: 24px 0 0; }
@media (max-width: 900px) { .package { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Fotos reales ---------- */
.product__art--photo { background: #fff; }
.product__art--photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product:hover .product__art--photo img { transform: scale(1.03); }
.feature__photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; max-width: 420px; aspect-ratio: 4 / 5; }
.feature__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Orientación ---------- */
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-card { display: flex; flex-direction: column; gap: 10px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); text-decoration: none; transition: border-color .25s; }
.article-card:hover { border-color: var(--wax); }
.article-card__date { font-size: .88rem; color: var(--muted); }
.article-card__title { font-family: var(--f-display); font-size: 1.45rem; line-height: 1.2; }
.article-card__text { color: var(--muted); font-size: .98rem; flex: 1; }
@media (max-width: 900px) { .articles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .articles { grid-template-columns: 1fr; } }

.article { display: grid; grid-template-columns: 7fr 4fr; gap: 64px; align-items: start; }
.article__body { font-size: 1.1rem; }
.article__body p, .article__body li { color: var(--ink); }
.article__body ul { padding-left: 22px; margin: 0 0 1.2em; }
.article__body li { margin-bottom: 8px; }
.article__fig { margin: 0 0 32px; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.article__fig img { width: 100%; }
.guide-aside { background: var(--mist); border-radius: var(--radius-lg); padding: 28px; }
.guide-aside .h3 { margin-bottom: 6px; }
.article__more { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.article__more a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.article__more a:hover { color: var(--moss); }
@media (max-width: 900px) { .article { grid-template-columns: 1fr; gap: 40px; } }

.site-footer__motto { font-family: var(--f-display); font-size: 1.25rem; color: var(--wax-soft); margin: 18px 0 0; }
.product__art--contain img { object-fit: contain; padding: 12px; }
.btn { white-space: nowrap; }
.nav { gap: 20px; }
.nav ul { gap: 0; }
.nav ul a { padding: 8px 10px; }
.article__fig { max-width: 440px; }
