/* =========================================================
   Con La Ley · Migraciones (conlaley.com/migraciones)
   Coastal Editorial Legal Design System
   Warm Sand (#FAF8F4) + Deep Atlantic (#0F293A) + Terracotta (#B86B35)
   ========================================================= */

:root {
  --bg-page: #FAF8F4;
  --bg-surface: #F1ECE3;
  --bg-card: #FFFFFF;
  --bg-atlantic: #0F293A;
  --bg-atlantic-soft: #173B52;

  --ink-primary: #10212D;
  --ink-muted: #4A5D6A;
  --ink-faint: #788894;
  --ink-on-dark: #F7F5F0;
  --ink-on-dark-muted: #C2D1DB;

  --accent-terracotta: #B86B35;
  --accent-bronze: #965324;
  --accent-sand: #DFB06A;

  --rule: rgba(16, 33, 45, 0.12);
  --rule-strong: rgba(16, 33, 45, 0.24);
  --rule-dark: rgba(247, 245, 240, 0.16);

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --text-heading: clamp(2rem, 3.5vw, 3rem);
  --text-body: 1rem;
  --text-sm: 0.875rem;
  --text-xs: 0.78rem;

  --maxw: 1240px;
  --pad-x: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 12px 32px rgba(15, 41, 58, 0.06);
  --shadow-hover: 0 20px 44px rgba(15, 41, 58, 0.12);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-atlantic);
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.62;
  color: var(--ink-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  color: var(--ink-on-dark);
  background-color: rgba(15, 41, 58, 0.22);
  border-bottom: 1px solid transparent;
  transition: background-color 220ms var(--ease), border-color 220ms var(--ease);
}

.site-header.is-scrolled,
.site-header.is-solid {
  background-color: rgba(15, 41, 58, 0.95);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--rule-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.48rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ink-on-dark);
}

.brand-sub {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-sand);
  padding-left: 0.55rem;
  border-left: 1px solid rgba(247, 245, 240, 0.28);
  line-height: 1;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.3vw, 1.45rem);
}

.nav-desktop a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-on-dark-muted);
  position: relative;
  padding-block: 0.25rem;
  white-space: nowrap;
  transition: color 180ms var(--ease);
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background-color: var(--accent-sand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease);
}

.nav-desktop a:hover,
.nav-desktop a:focus-visible {
  color: var(--ink-on-dark);
  outline: none;
}

.nav-desktop a:hover::after,
.nav-desktop a:focus-visible::after {
  transform: scaleX(1);
}

.nav-desktop a.nav-cross {
  padding-left: 0.9rem;
  border-left: 1px solid rgba(247, 245, 240, 0.22);
  color: var(--ink-on-dark);
}

.nav-desktop a.nav-cross-secondary {
  color: var(--ink-on-dark);
}

.nav-desktop a.nav-cross:hover,
.nav-desktop a.nav-cross-secondary:hover {
  color: var(--accent-sand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(247, 245, 240, 0.24);
  border-radius: 6px;
  padding: 2px;
  background-color: rgba(15, 41, 58, 0.45);
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--ink-on-dark-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.3rem 0.58rem;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1.2;
  transition: background-color 180ms var(--ease), color 180ms var(--ease);
}

.lang-switch button:hover {
  color: var(--ink-on-dark);
}

.lang-switch button.is-active {
  background-color: var(--accent-sand);
  color: var(--bg-atlantic);
}

.btn-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.54rem 1.05rem;
  border-radius: 6px;
  background-color: var(--accent-sand);
  color: var(--bg-atlantic);
  white-space: nowrap;
  transition: background-color 180ms var(--ease), transform 180ms var(--ease);
}

.btn-header:hover {
  background-color: #ECD19F;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(247, 245, 240, 0.26);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.menu-line {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 1.5px;
  margin-left: -9px;
  margin-top: -0.75px;
  background-color: var(--ink-on-dark);
  transform-origin: center;
  transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}

.menu-line:first-child { transform: translateY(-4px); }
.menu-line:last-child { transform: translateY(4px); }

.menu-toggle[aria-expanded="true"] .menu-line:first-child {
  transform: translateY(0) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-line:last-child {
  transform: translateY(0) rotate(-45deg);
}

@media (min-width: 1081px) {
  .mobile-nav { display: none !important; }
}

.mobile-nav {
  background-color: var(--bg-atlantic);
  border-top: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
  padding-block: 1.4rem 1.85rem;
}

.mobile-nav[hidden] { display: none; }

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
}

.mobile-nav nav a {
  padding-block: 0.82rem;
  border-bottom: 1px solid var(--rule-dark);
  color: var(--ink-on-dark);
  font-size: var(--text-body);
  font-weight: 500;
}

.mobile-nav nav a.nav-cross-mobile {
  color: var(--accent-sand);
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.88rem 1.65rem;
  border-radius: 6px;
  border: 1px solid transparent;
  background-color: var(--bg-atlantic);
  color: var(--ink-on-dark);
  font-size: var(--text-body);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 180ms var(--ease), transform 180ms var(--ease), border-color 180ms var(--ease);
}

.btn-primary:hover {
  background-color: var(--bg-atlantic-soft);
  transform: translateY(-1px);
}

.btn-hero,
.btn-on-dark {
  background-color: var(--accent-sand);
  color: var(--bg-atlantic);
}

.btn-hero:hover,
.btn-on-dark:hover {
  background-color: #ECD19F;
}

.btn-secondary-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.88rem 1.45rem;
  border-radius: 6px;
  border: 1px solid rgba(247, 245, 240, 0.36);
  background-color: rgba(15, 41, 58, 0.42);
  color: var(--ink-on-dark);
  font-size: var(--text-body);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease);
}

.btn-secondary-hero:hover {
  border-color: var(--accent-sand);
  background-color: rgba(15, 41, 58, 0.72);
}

.btn-full { width: 100%; }

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 7.5rem;
  background-color: var(--bg-atlantic);
  color: var(--ink-on-dark);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 41, 58, 0.56) 0%, rgba(15, 41, 58, 0.14) 30%, rgba(15, 41, 58, 0.84) 100%),
    linear-gradient(90deg, rgba(15, 41, 58, 0.88) 0%, rgba(15, 41, 58, 0.54) 50%, rgba(15, 41, 58, 0.1) 85%);
}

.hero-stage {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(2.5rem, 5vh, 4rem);
}

.hero-copy {
  max-width: min(46rem, 64vw);
}

.hero-kicker {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-sand);
  margin-bottom: 0.9rem;
  animation: hero-rise 620ms var(--ease) both;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.85rem, 5.8vw, 5.15rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.028em;
  color: var(--ink-on-dark);
  margin-bottom: 1.35rem;
  animation: hero-rise 680ms 40ms var(--ease) both;
}

.hero-sub {
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--ink-on-dark-muted);
  max-width: 52ch;
  margin-bottom: 2rem;
  animation: hero-rise 680ms 100ms var(--ease) both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  animation: hero-rise 680ms 150ms var(--ease) both;
}

.hero-strip {
  position: relative;
  z-index: 1;
  background-color: rgba(15, 41, 58, 0.78);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--rule-dark);
}

.hero-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  padding-block: 1.15rem;
}

.strip-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.strip-item strong {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-sand);
}

.strip-item span {
  font-size: var(--text-xs);
  color: var(--ink-on-dark-muted);
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   SECTIONS & HEADINGS
   ========================================================= */

.section {
  padding-block: clamp(4.25rem, 7.5vw, 6.75rem);
  scroll-margin-top: 78px;
}

.section-light {
  background-color: var(--bg-page);
  color: var(--ink-primary);
}

.section-surface {
  background-color: var(--bg-surface);
  color: var(--ink-primary);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.section-atlantic {
  background-color: var(--bg-atlantic);
  color: var(--ink-on-dark);
}

.section-kicker {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bronze);
  margin-bottom: 0.75rem;
}

.section-atlantic .section-kicker {
  color: var(--accent-sand);
}

.section h2 {
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 28ch;
}

.section-intro {
  font-size: var(--text-body);
  color: var(--ink-muted);
  max-width: 60ch;
  margin-top: 1rem;
}

.section-header-left {
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}

/* =========================================================
   ORIENTADOR Y CALCULADOR UNIFICADO (#guia)
   ========================================================= */

.advisor-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.92fr);
  gap: clamp(1.75rem, 3.5vw, 3rem);
  align-items: start;
  background-color: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-card);
}

.advisor-steps {
  display: flex;
  flex-direction: column;
  gap: 1.65rem;
}

.advisor-mode-tabs {
  display: inline-flex;
  align-self: flex-start;
  gap: 0.35rem;
  padding: 0.28rem;
  background-color: var(--bg-surface);
  border-radius: 8px;
  border: 1px solid var(--rule);
}

.mode-tab {
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.5rem 0.95rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 180ms var(--ease), color 180ms var(--ease);
}

.mode-tab:hover {
  color: var(--ink-primary);
}

.mode-tab.is-active {
  background-color: var(--bg-atlantic);
  color: var(--ink-on-dark);
}

.advisor-q-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
}

.advisor-q-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 0.7rem;
}

.advisor-q-head .advisor-q-label {
  margin-bottom: 0;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.7rem;
}

.choice-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.25rem;
  padding: 0.85rem 0.95rem;
  border-radius: 8px;
  border: 1px solid var(--rule-strong);
  background-color: var(--bg-page);
  cursor: pointer;
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease);
}

.choice-card:hover {
  border-color: var(--bg-atlantic);
  background-color: #FFFFFF;
}

.choice-card.is-selected {
  border-color: var(--bg-atlantic);
  background-color: rgba(15, 41, 58, 0.06);
  box-shadow: inset 0 0 0 1px var(--bg-atlantic);
}

.choice-card strong {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink-primary);
}

.choice-card span {
  font-size: var(--text-xs);
  color: var(--ink-muted);
  line-height: 1.45;
}

.advisor-extras-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.extra-chip {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  width: 100%;
  min-height: 58px;
  text-align: left;
  padding: 0.78rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--rule-strong);
  background-color: var(--bg-page);
  cursor: pointer;
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease);
}

.extra-chip:hover {
  border-color: var(--bg-atlantic);
  background-color: #FFFFFF;
}

.extra-chip.is-checked {
  border-color: var(--bg-atlantic);
  background-color: rgba(15, 41, 58, 0.06);
  box-shadow: inset 0 0 0 1px var(--bg-atlantic);
}

.extra-chip-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.extra-chip-left {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  flex: 1 1 auto;
  min-width: 0;
}

.extra-check {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  border-radius: 4px;
  border: 1.5px solid var(--rule-strong);
  background-color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: transparent;
  flex-shrink: 0;
}

.extra-chip.is-checked .extra-check {
  background-color: var(--bg-atlantic);
  border-color: var(--bg-atlantic);
  color: var(--accent-sand);
}

.extra-chip-title {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink-primary);
  text-align: left;
  line-height: 1.32;
}

.extra-chip-price {
  flex-shrink: 0;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--ink-primary);
  white-space: nowrap;
  text-align: right;
  line-height: 1.32;
  font-variant-numeric: tabular-nums;
}

.extra-chip-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.6rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(15, 41, 58, 0.12);
}

.extra-chip-qty-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-muted);
  white-space: nowrap;
}

.mini-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  background-color: #FFFFFF;
  padding: 2px;
}

.mini-stepper button {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 4px;
  background-color: var(--bg-surface);
  color: var(--ink-primary);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 150ms var(--ease), color 150ms var(--ease);
}

.mini-stepper button:hover:not(:disabled) {
  background-color: var(--bg-atlantic);
  color: var(--ink-on-dark);
}

.mini-stepper button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.mini-stepper span {
  min-width: 1.35rem;
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--ink-primary);
  font-variant-numeric: tabular-nums;
}

.advisor-result {
  position: sticky;
  top: 102px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  background-color: var(--bg-atlantic);
  color: var(--ink-on-dark);
  border-radius: 8px;
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
}

.advisor-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg-atlantic);
  background-color: var(--accent-sand);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.advisor-result h3 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink-on-dark);
  margin-bottom: 0.55rem;
}

.advisor-result-desc {
  font-size: var(--text-sm);
  color: var(--ink-on-dark-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.advisor-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.52rem;
  padding-block: 0.95rem;
  border-top: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
}

.bd-subtitle {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-sand);
  margin-top: 0.4rem;
}

.bd-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.85rem;
  font-size: var(--text-xs);
  color: var(--ink-on-dark-muted);
}

.bd-line strong {
  color: var(--ink-on-dark);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.bd-line.is-savings strong {
  color: var(--accent-sand);
}

.advisor-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.95rem;
}

.advisor-total-row span {
  font-size: var(--text-sm);
  color: var(--ink-on-dark-muted);
}

.advisor-total-row strong {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 700;
  color: var(--accent-sand);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

.advisor-price-note {
  display: block;
  font-size: var(--text-xs);
  color: var(--ink-on-dark-muted);
  margin-top: 0.35rem;
  line-height: 1.45;
}

/* =========================================================
   TARJETAS VISUALES DE RESIDENCIAS (#residencias)
   ========================================================= */

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.res-pair-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.res-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}

.res-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--rule-strong);
}

.res-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--bg-atlantic);
}

.res-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms var(--ease);
}

.res-card:hover .res-card-media img {
  transform: scale(1.03);
}

.res-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-bronze);
  margin-bottom: 0.45rem;
}

.res-card-media .res-tag {
  position: absolute;
  left: 1rem;
  bottom: 0.9rem;
  margin-bottom: 0;
  background-color: rgba(15, 41, 58, 0.88);
  color: var(--accent-sand);
  padding: 0.28rem 0.65rem;
  border-radius: 4px;
  backdrop-filter: blur(6px);
}

.res-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.45rem 1.5rem 1.55rem;
}

.res-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 500;
  line-height: 1.18;
  color: var(--ink-primary);
  margin-bottom: 0.55rem;
}

.res-card-desc {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  margin-bottom: 1rem;
  line-height: 1.55;
}

.res-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  margin-bottom: 1rem;
  font-size: var(--text-xs);
  color: var(--ink-primary);
}

.res-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.48rem;
}

.res-highlights li::before {
  content: "✓";
  color: var(--accent-terracotta);
  font-weight: 700;
  flex-shrink: 0;
}

.res-included-box {
  margin-top: auto;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--rule);
  margin-bottom: 0.9rem;
}

.res-included-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 0.2rem;
}

.res-included-text {
  display: block;
  font-size: 0.74rem;
  color: var(--ink-faint);
  line-height: 1.48;
}

.res-card-foot {
  margin-top: 0;
  padding-top: 0.95rem;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.res-price {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.res-dep-note {
  display: block;
  font-size: var(--text-xs);
  color: var(--accent-bronze);
  font-weight: 600;
  margin-top: 0.25rem;
}

.res-tax-note {
  display: block;
  font-size: 0.74rem;
  color: var(--ink-faint);
  margin-top: 0.12rem;
}

.res-card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

.card-cta-link {
  border: 0;
  background: transparent;
  color: var(--accent-bronze);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.card-cta-link:hover {
  color: var(--ink-primary);
}

.subcatalog-block {
  margin-top: 3.5rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--rule-strong);
}

.subcatalog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.subcatalog-head h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--ink-primary);
}

.subcatalog-sub {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  max-width: 48ch;
}

.card-cta {
  padding: 0.62rem 1.05rem;
  border-radius: 6px;
  border: 1px solid var(--bg-atlantic);
  background-color: var(--bg-atlantic);
  color: var(--ink-on-dark);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease);
}

.card-cta:hover {
  background-color: var(--accent-terracotta);
  border-color: var(--accent-terracotta);
}

/* =========================================================
   CONTROLES DE DEPENDIENTES (Integrados en #guia)
   ========================================================= */

.est-badge {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--accent-bronze);
  background-color: rgba(184, 107, 53, 0.12);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.dep-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  background-color: var(--bg-page);
  border: 1px solid var(--rule);
}

.dep-info strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-primary);
}

.dep-info span {
  display: block;
  font-size: var(--text-xs);
  color: var(--ink-muted);
  margin-top: 0.12rem;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background-color: #FFFFFF;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  padding: 0.25rem;
}

.stepper button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 4px;
  background-color: var(--bg-surface);
  color: var(--ink-primary);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms var(--ease);
}

.stepper button:hover:not(:disabled) {
  background-color: var(--bg-atlantic);
  color: var(--ink-on-dark);
}

.stepper button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.stepper span {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   OTROS SERVICIOS DOCUMENTALES (#otros-servicios)
   ========================================================= */

.other-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.other-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.45rem;
  transition: border-color 180ms var(--ease), transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.other-card:hover {
  border-color: var(--rule-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.other-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: var(--bg-surface);
  color: var(--accent-bronze);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.other-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.other-card h3 {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 0.4rem;
}

.other-card p {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.other-foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.other-price strong {
  display: block;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink-primary);
  font-variant-numeric: tabular-nums;
}

.other-price span {
  display: block;
  font-size: 0.73rem;
  color: var(--ink-faint);
}

.other-btn {
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  border: 1px solid var(--rule-strong);
  background-color: transparent;
  color: var(--ink-primary);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}

.other-btn:hover,
.other-btn.is-added {
  background-color: var(--bg-atlantic);
  border-color: var(--bg-atlantic);
  color: var(--ink-on-dark);
}

.other-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--bg-atlantic);
  border-radius: 6px;
  background-color: var(--bg-atlantic);
  padding: 2px;
}

.other-stepper button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 4px;
  background-color: rgba(247, 245, 240, 0.14);
  color: var(--ink-on-dark);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 150ms var(--ease), color 150ms var(--ease);
}

.other-stepper button:hover:not(:disabled) {
  background-color: var(--accent-sand);
  color: var(--bg-atlantic);
}

.other-stepper button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.other-stepper span {
  min-width: 1.55rem;
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--accent-sand);
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   PROCESS & FAQ
   ========================================================= */

.process-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.process-step {
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule-dark);
}

.step-index {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-heading);
  line-height: 1;
  color: var(--accent-sand);
  margin-bottom: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.process-step h3 {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--ink-on-dark);
  margin-bottom: 0.45rem;
}

.process-step p {
  font-size: var(--text-sm);
  color: var(--ink-on-dark-muted);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: 108px;
}

.faq-list {
  border-top: 1px solid var(--rule-strong);
}

.faq-item {
  border-bottom: 1px solid var(--rule);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.35rem;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--ink-primary);
  transition: color 180ms var(--ease);
}

.faq-q:hover { color: var(--accent-bronze); }

.faq-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--accent-bronze);
  transition: transform 220ms var(--ease);
}

.faq-item.is-open .faq-icon { transform: rotate(45deg); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 240ms var(--ease);
}

.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }

.faq-a p {
  padding-bottom: 1.4rem;
  font-size: var(--text-body);
  color: var(--ink-muted);
  max-width: 62ch;
}

/* =========================================================
   CONTACTO & PREGUNTAS CONTEXTUALES (#contacto)
   ========================================================= */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-meta {
  margin-top: 2.25rem;
  border-top: 1px solid var(--rule);
}

.meta-row {
  padding-block: 1rem;
  border-bottom: 1px solid var(--rule);
}

.meta-row dt {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-primary);
  margin-bottom: 0.2rem;
}

.meta-row dd {
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

.meta-row dd a {
  color: var(--ink-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pkg-summary-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background-color: var(--bg-surface);
  border-left: 3px solid var(--accent-terracotta);
  border-radius: 6px;
}

.pkg-summary-card[hidden] { display: none; }

.pkg-summary-kicker {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-bronze);
}

.pkg-summary-title {
  display: block;
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--ink-primary);
  margin-top: 0.15rem;
}

.pkg-summary-detail {
  display: block;
  font-size: var(--text-sm);
  color: var(--ink-muted);
  margin-top: 0.2rem;
}

.pkg-summary-total {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--bg-atlantic);
  margin-top: 0.35rem;
}

.pkg-summary-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex-shrink: 0;
}

.pkg-btn {
  border: 1px solid var(--rule-strong);
  background: var(--bg-card);
  color: var(--ink-primary);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.34rem 0.7rem;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.pkg-btn:hover { border-color: var(--bg-atlantic); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.form-row-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-primary);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.78rem 0.92rem;
  background-color: #FFFFFF;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  font-size: var(--text-body);
  color: var(--ink-primary);
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.field select { cursor: pointer; }
.field textarea { resize: vertical; min-height: 110px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--bg-atlantic);
  box-shadow: 0 0 0 3px rgba(15, 41, 58, 0.1);
}

.contextual-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contextual-box[hidden] { display: none; }

.contextual-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.contextual-head strong {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--bg-atlantic);
}

.contextual-head span {
  font-size: var(--text-xs);
  color: var(--ink-muted);
}

.contextual-q {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.contextual-q-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-primary);
}

.contextual-q-hint {
  font-weight: 500;
  font-size: var(--text-xs);
  color: var(--ink-muted);
  margin-left: 0.35rem;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ctx-chip {
  padding: 0.44rem 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--rule-strong);
  background-color: var(--bg-card);
  color: var(--ink-primary);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease), color 160ms var(--ease);
}

.ctx-chip:hover { border-color: var(--bg-atlantic); }

.ctx-chip.is-active {
  background-color: var(--bg-atlantic);
  border-color: var(--bg-atlantic);
  color: var(--ink-on-dark);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: 1.5;
}

.form-consent input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 0.2rem;
  accent-color: var(--bg-atlantic);
  cursor: pointer;
  flex-shrink: 0;
}

.form-consent a {
  color: var(--accent-bronze);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-sla-note {
  font-size: var(--text-xs);
  color: var(--ink-muted);
  text-align: center;
  margin-top: -0.35rem;
}

.form-success-card {
  background-color: var(--bg-card);
  border: 1px solid var(--rule-strong);
  border-top: 3px solid var(--accent-terracotta);
  border-radius: 10px;
  padding: clamp(1.5rem, 3vw, 2.15rem);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-form[hidden],
.form-success-card[hidden] {
  display: none;
}

.form-success-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg-atlantic);
  background-color: rgba(223, 176, 106, 0.28);
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
}

.form-success-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}

.form-success-lead {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: 1.6;
}

.form-success-summary {
  background-color: var(--bg-page);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.form-success-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: var(--text-sm);
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--rule);
}

.form-success-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.form-success-row span {
  color: var(--ink-muted);
}

.form-success-row strong {
  color: var(--ink-primary);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.form-success-sla {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.8rem 1rem;
  background-color: var(--bg-atlantic);
  color: var(--ink-on-dark);
  border-radius: 6px;
  font-size: var(--text-sm);
}

.form-success-sla span {
  color: var(--ink-on-dark-muted);
}

.form-success-sla strong {
  color: var(--accent-sand);
}

.form-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.2rem;
}

.btn-secondary-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.3rem;
  border-radius: 6px;
  border: 1px solid var(--rule-strong);
  background-color: var(--bg-card);
  color: var(--ink-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease);
}

.btn-secondary-light:hover {
  border-color: var(--bg-atlantic);
  background-color: var(--bg-page);
}

/* =========================================================
   LEGAL VIEWS & FOOTER
   ========================================================= */

.legal-view {
  min-height: 75vh;
  padding-block: 8.5rem 5.5rem;
  background-color: var(--bg-page);
  color: var(--ink-primary);
}

.legal-view[hidden] { display: none; }

.legal-container { max-width: 780px; }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  background: transparent;
  color: var(--accent-bronze);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 2rem;
  padding: 0;
}

.back-btn:hover { color: var(--ink-primary); }

.legal-title {
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule-strong);
}

.legal-prose h3 {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--ink-primary);
  margin-top: 2rem;
  margin-bottom: 0.55rem;
}

.legal-prose p,
.legal-prose li {
  font-size: var(--text-body);
  color: var(--ink-muted);
  max-width: 66ch;
  margin-bottom: 0.75rem;
}

.legal-prose ul {
  padding-left: 1.35rem;
  margin-bottom: 1rem;
}

.legal-prose b,
.legal-prose strong {
  color: var(--ink-primary);
  font-weight: 600;
}

.site-footer {
  background-color: var(--bg-atlantic);
  color: var(--ink-on-dark);
  padding-block: 4.5rem 2.5rem;
  border-top: 1px solid var(--rule-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--ink-on-dark-muted);
  margin-top: 1rem;
  max-width: 34ch;
}

.footer-col h3 {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-on-dark);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: var(--text-sm);
  color: var(--ink-on-dark-muted);
  margin-bottom: 0.65rem;
  transition: color 180ms var(--ease);
}

.footer-col a:hover { color: var(--accent-sand); }

.footer-bottom {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-dark);
  font-size: var(--text-sm);
  color: var(--ink-on-dark-muted);
}

.footer-bottom a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(calc(100% + 2.5rem));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 300;
  background-color: var(--bg-atlantic);
  color: var(--ink-on-dark);
  border: 1px solid rgba(223, 176, 106, 0.55);
  border-radius: 6px;
  padding: 0.85rem 1.35rem;
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  transition: transform 240ms var(--ease), opacity 200ms var(--ease), visibility 200ms var(--ease);
  max-width: calc(100vw - 2rem);
  text-align: center;
}

.toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 480ms var(--ease), transform 480ms var(--ease);
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
}

.js-ready .reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1080px) {
  .nav-desktop,
  .btn-header { display: none; }
  .menu-toggle { display: inline-flex; }

  .advisor-shell,
  .faq-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .advisor-result,
  .faq-intro { position: static; }

  .showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .other-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header-inner { height: 70px; gap: 0.45rem; }
  .brand { gap: 0.5rem; min-width: 0; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-text { gap: 0.4rem; }
  .brand-name { font-size: 1.18rem; }
  .brand-sub { font-size: 0.62rem; letter-spacing: 0.05em; padding-left: 0.4rem; }
  .header-actions { gap: 0.45rem; }
  .lang-switch button { font-size: 0.72rem; padding: 0.25rem 0.46rem; }
  .menu-toggle { width: 36px; height: 36px; }

  .hero { padding-top: 6.5rem; }
  .hero-copy { max-width: 100%; }
  .hero-photo { object-position: 62% center; }
  .hero-veil {
    background:
      linear-gradient(180deg, rgba(15, 41, 58, 0.62) 0%, rgba(15, 41, 58, 0.34) 38%, rgba(15, 41, 58, 0.92) 100%);
  }

  .hero-strip-grid,
  .showcase-grid,
  .res-pair-grid,
  .advisor-extras-grid,
  .other-grid,
  .process-grid,
  .form-row-two,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .advisor-mode-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .res-card-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .res-card-actions {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .dep-control,
  .pkg-summary-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .pkg-summary-actions {
    flex-direction: row;
  }
}

@media (max-width: 400px) {
  .brand-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js-ready .reveal { opacity: 1; transform: none; }
}
