/* ================================================
   UNIVERSAL CSS — Shared components across layouts
   ================================================ */

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1;
  cursor: pointer;
  border: none;
  transition: transform var(--ease), opacity var(--ease), box-shadow var(--ease);
  white-space: nowrap;
  text-decoration: none;
}

.btn:active { transform: scale(0.97); }

/* Primary — Deep Navy */
.btn--primary {
  background-color: var(--navy);
  color: var(--on-navy);
}
.btn--primary:hover {
  opacity: 0.88;
}

/* CTA — Action Green (bookings / WhatsApp) */
.btn--cta {
  background-color: var(--cta);
  color: #fff;
  box-shadow: var(--shadow-cta);
}
.btn--cta:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 40px var(--cta-shadow);
}

/* Amber — "Book Now" exclusive */
.btn--amber {
  background-color: var(--amber);
  color: var(--on-amber);
  font-weight: 800;
}
.btn--amber:hover {
  opacity: 0.92;
}

/* Ghost — text link with underline expand */
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-bottom: 2px solid rgba(13, 28, 50, 0.2);
  border-radius: 0;
  padding-inline: 0;
}
.btn--ghost:hover {
  border-color: var(--amber);
  color: var(--navy);
}

/* Block (full width) modifier */
.btn--block {
  width: 100%;
  justify-content: center;
}

/* Large modifier */
.btn--lg {
  padding: 1.125rem 2.25rem;
  font-size: 1.0625rem;
}

/* ── Badges / Chips ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge--verified {
  background-color: rgba(254, 214, 91, 0.3);
  color: #745c00;
}

.badge--popular {
  background-color: var(--amber);
  color: var(--on-amber);
}

/* ── Section typography ── */
.section-label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: var(--sp-sm);
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--on-surface-var);
  max-width: 58ch;
  line-height: 1.7;
  margin-inline: auto; /* centra el subtítulo cuando el header es text-align: center */
}

/* ── Feature item (icon + text) ── */
.feature-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.feature-item__icon {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  background-color: var(--surface-container);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}

.feature-item__title {
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.feature-item__text {
  font-size: 0.9rem;
  color: var(--on-surface-var);
  line-height: 1.6;
}

/* ── Fade-in animation ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Base: content is always visible — animates to full opacity on load */
.fade-in-element {
  animation: fadeUp 0.5s ease both;
}

/* JS enhances with scroll-triggered fade (added via IntersectionObserver) */
.fade-in-element[data-observe] {
  opacity: 0;
  transform: translateY(16px);
  animation: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in-element[data-observe].fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* ── Skip to content (accessibility) ── */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 700;
  z-index: 200;
  transition: top 0.2s;
}

/* ── Floating CTA Button ── */
.floating-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  animation: bounce 2s infinite;
}

.floating-cta .btn {
  background-color: var(--cta);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px var(--cta-shadow);
  font-weight: 800;
  font-size: 0.875rem;
  min-width: auto;
}

.floating-cta .btn:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px var(--cta-shadow);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* ── Back to Top Button ── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 3rem;
  height: 3rem;
  background-color: var(--navy);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-float);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--amber);
  transform: scale(1.1);
}

.back-to-top .material-symbols-outlined,
.back-to-top .sys-icon {
  font-size: 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
}

.skip-to-content:focus {
  top: 0;
}

/* ================================================
   SISTEMA DE ICONOS SVG (.sys-icon)
   Base rule — overridden by context-specific selectors
   ================================================ */
.sys-icon {
  display: inline-block;
  vertical-align: -0.125em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: square;
  stroke-linejoin: miter;
  /* width/height set per-context via parent selectors */
}

/* ================================================
   HEADER / NAV CSS
   ================================================ */

/* ── Desktop Navigation links ── */
.site-nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-headline);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  transition: color var(--ease);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  inset-block-end: -4px;
  inset-inline-start: 0;
  width: 0;
  height: 2px;
  background-color: var(--amber);
  transition: width var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ── Dropdown ── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown__toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-headline);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  padding-block: 0.25rem; /* Align with nav-link footprint */
  transition: color var(--ease);
}

.nav-dropdown__toggle:hover {
  color: var(--amber);
}

.nav-dropdown__toggle .material-symbols-outlined,
.nav-dropdown__toggle .sys-icon {
  font-size: 1.1em;
  width: 1.1em;
  height: 1.1em;
  transition: transform var(--ease);
}

.nav-dropdown:is(:hover, :focus-within) .nav-dropdown__toggle {
  color: var(--amber);
}

.nav-dropdown:is(:hover, :focus-within) .nav-dropdown__toggle .material-symbols-outlined,
.nav-dropdown:is(:hover, :focus-within) .nav-dropdown__toggle .sys-icon {
  transform: rotate(180deg);
}

.nav-dropdown__menu {
  position: absolute;
  inset-block-start: calc(100% + 0.75rem);
  inset-inline-start: -1rem;
  min-width: 14rem;
  background-color: var(--surface-lowest);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  border: 1px solid rgba(197, 198, 205, 0.4);
  padding-block: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
  z-index: 10;
}

.nav-dropdown:is(:hover, :focus-within) .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown__item {
  display: block;
  padding: 0.625rem 1.25rem;
  font-family: var(--font-headline);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  transition: background-color var(--ease), color var(--ease);
}

.nav-dropdown__item:hover {
  background-color: var(--surface-low);
  color: var(--amber);
}

/* ── Dropdown Wide (for Coverage menu) ── */
.nav-dropdown__menu--wide {
  min-width: 20rem;
  padding-block: 0.75rem;
}

.nav-dropdown__header {
  display: block;
  padding: 0.5rem 1.25rem 0.25rem;
  font-family: var(--font-headline);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  pointer-events: none;
}

.nav-dropdown__divider {
  display: block;
  margin-block: 0.5rem;
  border-block-end: 1px solid var(--surface-container);
}

/* ── Nav CTA button (right side) ── */
.site-nav__cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ── Hamburger button (mobile) ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 1.5rem;
  height: 1.125rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}

.nav-hamburger__bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--navy);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease), width var(--ease);
  transform-origin: left center;
}

/* Hamburger → X animation */
.nav-hamburger[aria-expanded="true"] .nav-hamburger__bar:nth-child(1) {
  transform: rotate(45deg) translateY(-1px);
}
.nav-hamburger[aria-expanded="true"] .nav-hamburger__bar:nth-child(2) {
  opacity: 0;
  width: 0;
}
.nav-hamburger[aria-expanded="true"] .nav-hamburger__bar:nth-child(3) {
  transform: rotate(-45deg) translateY(1px);
}

/* ── Mobile nav drawer ── */
.mobile-nav {
  display: none;
  position: fixed;
  inset-block: var(--nav-h) 0;
  inset-inline: 0;
  background-color: var(--surface-lowest);
  padding: var(--sp-md) var(--container-pad);
  overflow-y: auto;
  z-index: 90;
  transform: translateX(100%);
  visibility: hidden; /* Prevent text visibility before transition */
  pointer-events: none;
  transition: transform var(--ease), visibility var(--ease);
}

.mobile-nav.active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav__link {
  display: block;
  padding-block: 0.875rem;
  font-family: var(--font-headline);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 1px solid var(--surface-container);
  transition: color var(--ease);
}

.mobile-nav__link:hover {
  color: var(--amber);
}

.mobile-nav__group {
  border-bottom: 1px solid var(--surface-container);
}

.mobile-nav__group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.875rem;
  font-family: var(--font-headline);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.mobile-nav__sublinks {
  padding-left: var(--sp-sm);
  padding-bottom: var(--sp-sm);
  display: none;
}

.mobile-nav__group:has(.mobile-nav__group-title[aria-expanded="true"]) .mobile-nav__sublinks {
  display: block;
}

.mobile-nav__sublink {
  display: block;
  padding-block: 0.5rem;
  font-size: 0.9375rem;
  color: var(--on-surface-var);
  transition: color var(--ease);
}

.mobile-nav__sublink:hover {
  color: var(--amber);
}

/* ── Mobile nav subheader ── */
.mobile-nav__subheader {
  display: block;
  padding-block: 0.375rem;
  padding-inline: var(--sp-sm);
  font-family: var(--font-headline);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  pointer-events: none;
  margin-block-start: 0.25rem;
}

.mobile-nav__cta {
  margin-top: var(--sp-md);
}

/* ── Responsive: show hamburger, hide desktop menu ── */
@media (max-width: 900px) {
  .site-nav__menu,
  .site-nav__cta .btn {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }
}

/* Body scroll lock when menu open */
body.menu-open {
  overflow: hidden;
}

/* ─────────────────────────────────────────
   BLOG CSS — blog.css
   Depends on: critical.css (tokens), universal.css (buttons, section-*)
   ───────────────────────────────────────── */


/* ══════════════════════════════════════════
   CTA FINAL (compartido con service layout)
   ══════════════════════════════════════════ */

.service-cta-final {
  background: var(--navy);
  padding-block: var(--sp-xl);
}

.service-cta-final__inner {
  max-width: 48rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-md);
  text-align: center;
}

.service-cta-final__title {
  font-family: var(--font-headline);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--on-navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.service-cta-final__text {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.0625rem;
  line-height: 1.65;
  margin: 0;
  max-width: 42ch;
}


/* ══════════════════════════════════════════
   POST HERO — variante card (por defecto)
   ══════════════════════════════════════════ */

.post-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  overflow: clip;
}

.post-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: clamp(1rem, 2vw, 1.5rem);
}

.post-hero__bg picture {
  display: block;
  width: min(100%, var(--container));
  height: 100%;
  margin-inline: auto;
  border-radius: clamp(1.5rem, 3vw, 2.5rem);
  overflow: hidden;
}

.post-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.post-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    155deg,
    rgba(13, 28, 50, 0.75) 0%,
    rgba(13, 28, 50, 0.4) 55%,
    rgba(13, 28, 50, 0.6) 100%
  );
}

.post-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  padding-block: calc(var(--nav-h) + var(--sp-lg)) var(--sp-lg);
}

.post-hero__card {
  background: #fff;
  border-radius: 40px;
  corner-shape: squircle;
  padding: var(--sp-md);
  max-width: 42rem;
  box-shadow: 0 24px 64px rgba(13, 28, 50, 0.22);
  border-top: 4px solid var(--amber);
  position: relative;
}

.post-hero__card-meta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: var(--sp-sm);
  flex-wrap: wrap;
}

.post-hero__cat {
  display: inline-block;
  background: var(--amber);
  color: var(--on-amber);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.25rem 0.675rem;
  border-radius: var(--radius-full);
}

.post-hero__reading {
  font-size: 0.8125rem;
  color: var(--outline);
  font-weight: 500;
}

.post-hero__card-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 var(--sp-sm);
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.post-hero__card-footer {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  border-top: 1px solid var(--surface-high);
  padding-top: var(--sp-sm);
  flex-wrap: wrap;
}

.post-hero__date {
  font-size: 0.8125rem;
  color: var(--outline);
}

.post-hero__author {
  font-size: 0.8125rem;
  color: var(--on-surface-var);
}


/* ══════════════════════════════════════════
   POST HERO — variante full-width
   ══════════════════════════════════════════ */

.post-hero--full {
  min-height: 88vh;
  align-items: center;
}

.post-hero__full-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: clamp(1rem, 2vw, 1.5rem);
}

.post-hero__full-bg picture {
  display: block;
  width: min(100%, var(--container));
  height: 100%;
  margin-inline: auto;
  border-radius: clamp(1.5rem, 3vw, 2.5rem);
  overflow: hidden;
}

.post-hero__full-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.post-hero--full .post-hero__overlay {
  background: linear-gradient(
    180deg,
    rgba(13, 28, 50, 0.5) 0%,
    rgba(13, 28, 50, 0.82) 100%
  );
}

.post-hero--full .post-hero__inner {
  justify-content: flex-start;
  padding-block-start: calc(var(--nav-h) + var(--sp-xl));
  padding-block-end: var(--sp-xl);
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-md);
}

.post-hero--full .post-hero__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}

.post-hero--full .post-hero__date {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.875rem;
}

.post-hero--full .post-hero__reading {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.post-hero__title {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--on-navy);
  margin: 0;
  max-width: 18ch;
}

.post-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
  max-width: 54ch;
  margin: 0;
}


/* ══════════════════════════════════════════
   POST LAYOUT — artículo + sidebar
   ══════════════════════════════════════════ */

.post-grid {
  display: grid;
  grid-template-columns: 1fr 22rem;
  gap: var(--sp-lg);
  align-items: start;
  padding-block: var(--sp-xl);
}


/* ══════════════════════════════════════════
   POST BODY — tipografía del artículo
   ══════════════════════════════════════════ */

.post-body {
  min-width: 0;
}

.post-body :is(h2, h3, h4) {
  margin-block: var(--sp-md) var(--sp-sm);
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.post-body h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.post-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}

.post-body h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
}

.post-body p {
  font-size: 1.0625rem;
  line-height: 1.78;
  color: var(--on-surface);
  margin-bottom: var(--sp-sm);
}

.post-body strong {
  font-weight: 700;
  color: var(--navy);
}

.post-body em {
  font-style: italic;
}

.post-body a:not(.btn) {
  color: var(--cta);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--ease);
}

.post-body a:not(.btn):hover {
  opacity: 0.8;
}

.post-body ul,
.post-body ol {
  padding-left: 0;
  margin-bottom: var(--sp-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}

.post-body ul li,
.post-body ol li {
  padding-left: 2rem;
  position: relative;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--on-surface);
}

.post-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1.125rem;
  height: 1.125rem;
  background-color: var(--cta);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolyline fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolyline fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
}

.post-body ol {
  counter-reset: post-ol;
}

.post-body ol li::before {
  content: counter(post-ol);
  counter-increment: post-ol;
  position: absolute;
  left: 0;
  top: 0.075rem;
  width: 1.375rem;
  height: 1.375rem;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-headline);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.post-body blockquote {
  border-left: 4px solid var(--amber);
  padding: var(--sp-sm) var(--sp-md);
  margin-block: var(--sp-md);
  background: var(--surface-low);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.post-body blockquote p {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--on-surface-var);
  margin: 0;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--sp-md);
  font-size: 0.9375rem;
  border-radius: var(--radius);
  overflow: clip;
}

.post-body th {
  background: var(--navy);
  color: var(--on-navy);
  font-family: var(--font-headline);
  font-weight: 700;
  padding: 0.875rem 1rem;
  text-align: left;
}

.post-body td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--surface-high);
  vertical-align: top;
}

.post-body tr:nth-child(even) td {
  background: var(--surface-low);
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--surface-high);
  margin-block: var(--sp-lg);
}

/* ── Banner CTA inline (en el markdown del artículo) ── */

.post-cta-banner {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: var(--sp-md) var(--sp-lg);
  margin-block: var(--sp-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-sm);
}

.post-cta-banner :is(h2, h3) {
  color: var(--on-navy);
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  margin: 0;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.post-cta-banner p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  max-width: 50ch;
}


/* ══════════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════════ */

.post-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + var(--sp-md));
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

/* ── CTA Card ── */

.sidebar-cta {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 3px solid var(--amber);
  box-shadow: var(--shadow-float);
}

.sidebar-cta__label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0;
}

.sidebar-cta__price {
  font-family: var(--font-headline);
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}

.sidebar-cta__period {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  margin: -0.5rem 0 0;
}

.sidebar-cta__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-cta__text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  margin: 0;
}

.sidebar-cta__assurance {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

.sidebar-cta__assurance .sys-icon {
  width: 1rem;
  height: 1rem;
  color: var(--cta);
  flex-shrink: 0;
  stroke-width: 2;
}

/* ── Tags ── */

.sidebar-tags {
  background: var(--surface-lowest);
  border: 1px solid var(--surface-high);
  border-radius: var(--radius-lg);
  padding: var(--sp-sm);
}

.sidebar-tags__title {
  font-family: var(--font-headline);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.75rem;
}

.sidebar-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sidebar-tag {
  background: var(--surface-container);
  color: var(--on-surface-var);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

/* ── Servicios relacionados ── */

.sidebar-links {
  background: var(--surface-lowest);
  border: 1px solid var(--surface-high);
  border-radius: var(--radius-lg);
  padding: var(--sp-sm);
}

.sidebar-links__title {
  font-family: var(--font-headline);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.75rem;
}

.sidebar-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-links ul li {
  border-bottom: 1px solid var(--surface-container);
  padding-left: 0;
}

.sidebar-links ul li:last-child {
  border-bottom: none;
}

.sidebar-links ul li::before {
  display: none;
}

.sidebar-links ul li a {
  display: block;
  padding: 0.625rem 0;
  font-size: 0.875rem;
  color: var(--on-surface-var);
  transition: color var(--ease);
  text-decoration: none;
}

.sidebar-links ul li a:hover {
  color: var(--navy);
}


/* ══════════════════════════════════════════
   NEWSLETTER
   ══════════════════════════════════════════ */

.post-newsletter {
  background: var(--navy);
  padding-block: var(--sp-xl);
}

.post-newsletter__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
  align-items: center;
}

.post-newsletter .section-label {
  color: var(--amber);
}

.post-newsletter__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--on-navy);
  margin: var(--sp-xs) 0 var(--sp-sm);
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.post-newsletter__text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
  margin: 0;
}

.post-newsletter__form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.post-newsletter__field {
  display: flex;
  border-radius: var(--radius);
  overflow: clip;
  box-shadow: var(--shadow-float);
}

.post-newsletter__field input[type="email"] {
  flex: 1;
  padding: 0.9375rem 1.25rem;
  border: none;
  background: #fff;
  font-size: 0.9375rem;
  color: var(--on-surface);
  outline: none;
  min-width: 0;
}

.post-newsletter__field input[type="email"]::placeholder {
  color: var(--outline);
}

.post-newsletter__field .btn {
  border-radius: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.post-newsletter__privacy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.38);
  margin: 0;
}

/* ── Accessibility helper ── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ══════════════════════════════════════════
   ARTÍCULOS RELACIONADOS
   ══════════════════════════════════════════ */

.post-related {
  background: var(--surface-low);
  padding-block: var(--sp-xl);
}

.post-related__header {
  text-align: center;
  margin-bottom: var(--sp-lg);
}

.post-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}


/* ══════════════════════════════════════════
   POST CARDS (blog preview + relacionados)
   ══════════════════════════════════════════ */

.post-card {
  background: var(--surface-lowest);
  border-radius: 40px;
  corner-shape: squircle;
  overflow: clip;
  box-shadow: var(--shadow-ambient);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--ease), transform var(--ease);
}

.post-card:hover {
  box-shadow: var(--shadow-float);
  transform: translateY(-4px);
}

.post-card__image-wrap {
  display: block;
  aspect-ratio: 5 / 3;
  overflow: clip;
}

.post-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.post-card:hover .post-card__image-wrap img {
  transform: scale(1.04);
}

.post-card__body {
  padding: var(--sp-sm);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.post-card__cat {
  display: inline-block;
  background: var(--amber);
  color: var(--on-amber);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  align-self: flex-start;
}

.post-card__date {
  font-size: 0.8125rem;
  color: var(--outline);
  display: block;
}

.post-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.post-card__title a {
  color: var(--navy);
  text-decoration: none;
}

.post-card__title a:hover {
  color: var(--cta);
}

.post-card__excerpt {
  font-size: 0.9rem;
  color: var(--on-surface-var);
  line-height: 1.6;
  margin: 0;
}

.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  border-top: 1px solid var(--surface-container);
  padding-top: 0.625rem;
  margin-top: auto;
}

.post-card__read {
  font-size: 0.8125rem;
  color: var(--outline);
}


/* ══════════════════════════════════════════
   BLOG PREVIEW — sección en home
   ══════════════════════════════════════════ */

.blog-preview {
  background: var(--surface-lowest);
  padding-block: var(--sp-xl);
}

.blog-preview__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-md);
  margin-bottom: var(--sp-lg);
  flex-wrap: wrap;
}

.blog-preview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}

@media (max-width: 900px) {
  .blog-preview__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .blog-preview__grid {
    grid-template-columns: 1fr;
  }
}


/* ══════════════════════════════════════════
   BLOG INDEX — listado de artículos
   ══════════════════════════════════════════ */

.blog-index {
  padding-block: var(--sp-xl);
}

.blog-index__header {
  text-align: center;
  margin-bottom: var(--sp-lg);
}

.blog-index__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--sp-md);
}

.blog-hero {
  background: var(--navy);
  padding-block: var(--sp-xl);
  text-align: center;
}

.blog-index__empty {
  text-align: center;
  color: var(--on-surface-var);
  padding-block: var(--sp-xl);
}

.blog-hero__label {
  color: var(--amber);
}

.blog-hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--on-navy);
  letter-spacing: -0.03em;
  margin: var(--sp-xs) 0 var(--sp-sm);
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.blog-hero__subtitle {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.68);
  max-width: 52ch;
  margin-inline: auto;
  line-height: 1.65;
}


/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */

@media (max-width: 1024px) {
  .post-grid {
    grid-template-columns: 1fr 18rem;
    gap: var(--sp-md);
  }

  .post-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-newsletter__inner {
    gap: var(--sp-md);
  }
}

@media (max-width: 768px) {
  .post-grid {
    grid-template-columns: 1fr;
  }

  .post-sidebar {
    position: static;
  }

  .post-hero {
    min-height: 60vh;
    align-items: center;
  }

  .post-hero__inner {
    justify-content: flex-start;
  }

  .post-hero__card {
    max-width: 100%;
  }

  .post-hero--full {
    min-height: 72vh;
  }

  .post-newsletter__inner {
    grid-template-columns: 1fr;
  }

  .post-related__grid {
    grid-template-columns: 1fr;
  }

  .post-cta-banner {
    padding: var(--sp-md);
  }
}

@media (max-width: 480px) {
  .post-hero__card {
    padding: var(--sp-sm);
  }

  .post-newsletter__field {
    flex-direction: column;
    border-radius: var(--radius);
    overflow: visible;
    gap: 0.5rem;
  }

  .post-newsletter__field input[type="email"] {
    border-radius: var(--radius);
  }

  .post-newsletter__field .btn {
    border-radius: var(--radius);
  }
}

/* ══════════════════════════════════════════
   REUSABLE FAQ — Static Card Grid
   ══════════════════════════════════════════ */

.faqs {
  padding-block: var(--sp-xl);
  background-color: var(--surface-low); /* Slight contrast background */
}

.faqs__header {
  text-align: center;
  margin-block-end: var(--sp-lg);
}

.faqs__list {
  display: grid;
  /* 2 columns on desktop, 1 on mobile */
  grid-template-columns: repeat(auto-fit, minmax(Min(100%, 480px), 1fr));
  gap: var(--sp-md);
  align-items: start;
}

/* ══════════════════════════════════════════
   FAQ CARD
   ══════════════════════════════════════════ */

.faq-card {
  background-color: var(--surface-lowest);
  padding: var(--sp-md);
  border-radius: 40px;
  corner-shape: squircle;
  box-shadow: var(--shadow-ambient);
  transition: transform var(--ease), box-shadow var(--ease);
  height: 100%;
}

.faq-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}

.faq-card__question {
  margin: 0 0 var(--sp-sm) 0;
  font-family: var(--font-headline);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.faq-card__answer {
  color: var(--on-surface-var);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.faq-card__answer p {
  margin: 0;
}

/* ================================================
   FOOTER CSS
   ================================================ */

.site-footer {
  background-color: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  padding-top: var(--sp-lg);
  padding-bottom: var(--sp-md);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: var(--sp-lg);
}

/* Brand column */
.site-footer__brand-name {
  font-family: var(--font-headline);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-sm);
}

.site-footer__brand-name span {
  color: var(--amber);
}

.site-footer__brand-text {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 28ch;
  margin-bottom: var(--sp-md);
}

/* Column headings */
.site-footer__col-title {
  font-family: var(--font-headline);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.25rem;
}

/* Links */
.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.site-footer__link {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--ease);
}

.site-footer__link:hover {
  color: var(--amber);
}

/* Contact items */
.site-footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.site-footer__contact-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.site-footer__contact-item .material-symbols-outlined,
.site-footer__contact-item .sys-icon {
  color: var(--cta);
  font-size: 1.1em;
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

/* Bottom bar */
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--sp-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer__copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
}

.site-footer__legal {
  display: flex;
  gap: 1.5rem;
}

.site-footer__legal-link {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--ease);
}
.site-footer__legal-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Responsive */
@media (max-width: 900px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 540px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ================================================
   TYPEFORM-STYLE DIALOG — form-modal.css
   Solo visible al abrir: dialog[open]
   ================================================ */

/* ── Base dialog — OCULTO por defecto ── */
.tf-dialog {
  /* El navegador aplica display:none cuando no tiene [open].
     Solo sobreescribimos cuando SÍ está abierto. */
  border: none;
  padding: 0;
  margin: auto;
  width: min(92vw, 38rem);
  max-height: min(92svh, 46rem);
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 80px rgba(13, 28, 50, 0.24);
  overflow: hidden;
  background: var(--surface-lowest);
}

/* Solo cuando está abierto */
.tf-dialog[open] {
  display: flex;
  flex-direction: column;
}

.tf-dialog::backdrop {
  background: rgba(13, 28, 50, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ── Progress bar ── */
.tf-progress {
  height: 3px;
  background-color: var(--surface-container);
  flex-shrink: 0;
}

.tf-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--cta));
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

/* ── Close button ── */
.tf-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--surface-low);
  border: none;
  cursor: pointer;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-surface-var);
  transition: background-color var(--ease), color var(--ease);
  z-index: 10;
}

.tf-close:hover {
  background-color: var(--surface-container);
  color: var(--navy);
}

/* ── Body: steps container ── */
.tf-body {
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* ── Individual step ── */
.tf-step {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2.5rem 1rem;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.32s ease, transform 0.32s ease;
  pointer-events: none;
}

.tf-step.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
  position: relative;
}

.tf-step.exit {
  opacity: 0;
  transform: translateX(-40px);
  pointer-events: none;
  position: absolute;
}

.tf-step__inner {
  width: 100%;
  max-width: 28rem;
}

/* Step number */
.tf-step__num {
  display: block;
  font-family: var(--font-headline);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

/* Question label */
.tf-step__question {
  display: block;
  font-family: var(--font-headline);
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 1.75rem;
  letter-spacing: -0.02em;
}

/* ── Text/Tel/Date/Time inputs ── */
.tf-input {
  width: 100%;
  border: none;
  border-bottom: 2px solid var(--outline-var);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--on-surface);
  padding: 0.625rem 0;
  outline: none;
  transition: border-color var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.tf-input:focus {
  border-color: var(--amber);
}

.tf-input::placeholder {
  color: var(--outline-var);
}

.tf-input[aria-invalid="true"] {
  border-color: #ba1a1a;
}

.tf-input--date,
.tf-input--time {
  font-size: 1.5rem;
  font-family: var(--font-headline);
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}

/* Hint text */
.tf-hint {
  font-size: 0.8125rem;
  color: var(--on-surface-var);
  line-height: 1.55;
  margin-top: 0.875rem;
}

.tf-error {
  font-size: 0.8rem;
  color: #ba1a1a;
  margin-top: 0.375rem;
  display: block;
}

/* ── Radio option cards (service selection) ── */
.tf-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
}

.tf-option {
  cursor: pointer;
}

.tf-option input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.tf-option__box {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--outline-var);
  background: var(--surface-lowest);
  transition: border-color var(--ease), background-color var(--ease);
}

.tf-option__box .material-symbols-outlined,
.tf-option__box .sys-icon {
  font-size: 1.3em;
  width: 1.3em;
  height: 1.3em;
  color: var(--on-surface-var);
  transition: color var(--ease);
}

.tf-option__label {
  font-family: var(--font-headline);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.tf-option__sub {
  font-size: 0.725rem;
  color: var(--on-surface-var);
}

/* Selected state */
.tf-option input:checked + .tf-option__box {
  border-color: var(--amber);
  background-color: rgba(248, 168, 37, 0.08);
}

.tf-option input:checked + .tf-option__box .material-symbols-outlined,
.tf-option input:checked + .tf-option__box .sys-icon {
  color: var(--amber);
}

.tf-option:hover .tf-option__box {
  border-color: rgba(248, 168, 37, 0.5);
}

/* ── Confirmation step ── */
.tf-step__inner--confirm {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tf-summary {
  background-color: var(--surface-low);
  border-radius: var(--radius);
  padding: 1.125rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--on-surface-var);
}

.tf-summary strong {
  color: var(--navy);
  font-weight: 600;
}

.tf-trust {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.tf-trust__item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--on-surface-var);
}

.tf-trust__item .material-symbols-outlined,
.tf-trust__item .sys-icon {
  color: var(--cta);
  font-size: 1em;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

/* ── Success screen */
.tf-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  gap: 1rem;
  min-height: 18rem;
}

.tf-success:not([hidden]) {
  display: flex;
}

.tf-success__icon {
  font-size: 4rem;
  color: var(--cta);
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 48;
}

.tf-success__title {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--navy);
}

.tf-success__text {
  color: var(--on-surface-var);
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 26ch;
}

/* ── Footer: back + next buttons ── */
.tf-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--surface-container);
  flex-shrink: 0;
  gap: 1rem;
}

.tf-btn-back {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--on-surface-var);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  transition: background-color var(--ease), color var(--ease);
  flex-shrink: 0;
}

.tf-btn-back:hover:not(:disabled) {
  background-color: var(--surface-low);
  color: var(--navy);
}

.tf-btn-back:disabled {
  opacity: 0.28;
  cursor: default;
}

.tf-btn-next {
  flex: 1;
  max-width: 16rem;
  margin-left: auto;
  justify-content: center;
}

.tf-btn-close-success {
  flex: 1;
  max-width: 16rem;
  margin-left: auto;
  justify-content: center;
  background-color: var(--cta);
  border-color: var(--cta);
  color: white;
}

.tf-btn-close-success:hover {
  background-color: var(--cta-dark);
  border-color: var(--cta-dark);
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .tf-dialog {
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 92svh;
    position: fixed;
    bottom: 0;
    top: auto;
    margin: 0;
  }

  .tf-step {
    padding: 2rem 1.5rem 1rem;
  }

  .tf-options {
    grid-template-columns: 1fr;
  }

  .tf-footer {
    padding: 0.875rem 1.25rem 1.25rem;
  }
}


