/* ==========================================================
   Escribanía Tapia & Tapia — styles.css
   Paleta: Midnight green, Sky blue, Seashell, Tea rose, Light coral
   Tipografía: Fraunces (display) · Manrope (body)
   ========================================================== */

/* -------- Tokens / Variables -------- */
:root {
  /* Paleta base */
  --c-midnight: #006078;     /* color principal, identidad */
  --c-midnight-deep: #004a5c;
  --c-midnight-ink: #003a4a;  /* para texto alto-contraste */
  --c-sky: #82BAC4;
  --c-sky-soft: #B3D4DA;
  --c-seashell: #FAEFED;      /* base clara */
  --c-seashell-warm: #F6E8E5;
  --c-rose: #FFD4D1;
  --c-rose-soft: #FFE6E3;
  --c-coral: #E37C78;         /* CTA / acento cálido */
  --c-coral-deep: #9C3934;    /* Variante deep para CTAs con texto claro */

  /* Semánticos */
  --bg: var(--c-seashell);
  --surface: #ffffff;
  --surface-warm: var(--c-rose-soft);
  --ink: #102B33;
  --ink-soft: #3D4F58;
  --ink-muted: #56646B;
  --line: rgba(16, 43, 51, 0.10);
  --line-strong: rgba(16, 43, 51, 0.22);

  /* Tipografía */
  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Escalas */
  --step--2: clamp(0.72rem, 0.7rem + 0.2vw, 0.78rem);
  --step--1: clamp(0.86rem, 0.82rem + 0.25vw, 0.96rem);
  --step-0:  clamp(1rem, 0.94rem + 0.3vw, 1.12rem);
  --step-1:  clamp(1.18rem, 1.08rem + 0.5vw, 1.35rem);
  --step-2:  clamp(1.4rem, 1.2rem + 1vw, 1.75rem);
  --step-3:  clamp(1.8rem, 1.4rem + 2vw, 2.4rem);
  --step-4:  clamp(2.2rem, 1.6rem + 3vw, 3.4rem);
  --step-5:  clamp(2.8rem, 2rem + 4.6vw, 4.6rem);

  /* Layout */
  --container: 1200px;
  --container-tight: 1080px;
  --radius: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(0, 59, 73, 0.08);
  --shadow-md: 0 18px 40px -22px rgba(0, 59, 73, 0.35);
  --shadow-lg: 0 30px 70px -30px rgba(0, 59, 73, 0.45);

  --ease-out-quart: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-move:       cubic-bezier(0.25, 1, 0.5, 1);

  --t-fast: 160ms;
  --t-med:  280ms;
  --t-slow: 520ms;

  /* Z-index scale */
  --z-sticky: 30;
  --z-mobile-nav: 60;
  --z-modal: 80;
  --z-tooltip: 90;
}

/* -------- Reset / Base -------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

section[id], main > section {
  scroll-margin-top: 90px;
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { line-height: 1.12; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
p { text-wrap: pretty; }
em { font-style: italic; color: var(--c-coral-deep); font-family: var(--font-display); font-weight: 500; }
::selection { background: var(--c-midnight); color: var(--c-seashell); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 3vw, 2rem);
}

/* -------- Accesibilidad -------- */
.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  background: var(--c-midnight);
  color: var(--c-seashell);
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
  z-index: var(--z-tooltip);
}
.skip-link:focus { inset-inline-start: 0; }

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

/* -------- Topbar -------- */
.topbar {
  background: var(--c-midnight-ink);
  color: rgba(250, 239, 237, 0.85);
  font-size: var(--step--2);
  letter-spacing: 0.01em;
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  align-items: center;
  justify-content: center;
  padding-block: 0.6rem;
}
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}
.topbar__item i { color: var(--c-sky); font-size: 0.95em; }
.topbar__item--cta {
  color: var(--c-seashell);
  font-weight: 600;
  padding-inline: 0.8rem;
  padding-block: 0.3rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--c-coral), var(--c-coral-deep));
  transition: transform var(--t-fast) var(--ease-out-quart);
}
.topbar__item--cta:hover { transform: translateY(-1px); }

@media (max-width: 720px) {
  .topbar__inner { gap: 0.4rem 1rem; font-size: 0.78rem; }
  .topbar__item:nth-child(2) { display: none; }
}

/* -------- Header / Navegación -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background var(--t-med) var(--ease-out-quart),
              box-shadow var(--t-med) var(--ease-out-quart);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px -18px rgba(0, 59, 73, 0.25);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.brand__mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--c-midnight) 0%, var(--c-midnight-deep) 100%);
  color: var(--c-seashell);
  font-size: 1.15rem;
  box-shadow: 0 6px 18px -8px rgba(0, 96, 120, 0.55);
  position: relative;
  overflow: hidden;
}
.brand__mark::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 0% 0%, rgba(255, 212, 209, 0.35), transparent 55%);
  pointer-events: none;
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--c-midnight-ink);
}
.brand__name .amp { color: var(--c-coral); font-style: italic; font-weight: 500; }
.brand__tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  margin-top: 4px;
  font-weight: 500;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.6vw, 1.6rem);
}
.nav-link {
  position: relative;
  display: inline-block;
  padding-block: 0.5rem;
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color var(--t-fast) var(--ease-out-quart);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0.3rem;
  height: 2px;
  background: var(--c-coral);
  transition: right var(--t-med) var(--ease-out-quart);
}
.nav-link:hover { color: var(--c-midnight-ink); }
.nav-link:hover::after { right: 0; }
.nav-link--accent {
  background: var(--c-midnight);
  color: var(--c-seashell);
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: transform var(--t-fast) var(--ease-out-quart),
              box-shadow var(--t-med) var(--ease-out-quart),
              background var(--t-fast) var(--ease-out-quart);
}
.nav-link--accent::after { display: none; }
.nav-link--accent:hover {
  transform: translateY(-1px);
  background: var(--c-midnight-deep);
  box-shadow: 0 12px 24px -10px rgba(0, 96, 120, 0.55);
}

/* Botón hamburger */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  position: relative;
  transition: background var(--t-fast) var(--ease-out-quart);
}
.nav-toggle:hover { background: rgba(0, 96, 120, 0.06); }
.nav-toggle__bar {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--c-midnight-ink);
  border-radius: 2px;
  transition: transform var(--t-med) var(--ease-out-quart),
              opacity var(--t-fast) var(--ease-out-quart),
              top var(--t-med) var(--ease-out-quart);
}
.nav-toggle__bar:nth-child(1) { top: 15px; }
.nav-toggle__bar:nth-child(2) { top: 21px; }
.nav-toggle__bar:nth-child(3) { top: 27px; }

.nav-toggle.is-open .nav-toggle__bar:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle__bar:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* -------- Botones -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.4rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease-out-quart),
              box-shadow var(--t-med) var(--ease-out-quart),
              background var(--t-fast) var(--ease-out-quart),
              color var(--t-fast) var(--ease-out-quart);
  white-space: nowrap;
}
.btn i { font-size: 0.95em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--c-coral) 0%, var(--c-coral-deep) 100%);
  color: var(--c-seashell);
  box-shadow: 0 14px 30px -12px rgba(196, 94, 90, 0.55);
}
.btn--primary:hover { box-shadow: 0 18px 38px -10px rgba(196, 94, 90, 0.65); }

.btn--ghost {
  background: transparent;
  color: var(--c-midnight-ink);
  border: 1.5px solid rgba(0, 96, 120, 0.25);
}
.btn--ghost:hover { border-color: var(--c-midnight); background: rgba(0, 96, 120, 0.06); }

.btn--coral {
  background: var(--c-coral);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(196, 94, 90, 0.55);
}
.btn--coral:hover { background: var(--c-coral-deep); }

.btn--ghost-light {
  background: transparent;
  color: var(--c-seashell);
  border: 1.5px solid rgba(250, 239, 237, 0.4);
}
.btn--ghost-light:hover { background: rgba(250, 239, 237, 0.1); border-color: var(--c-seashell); }

/* -------- Eyebrow / Kicker (usado solo de a uno por sección) -------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--c-midnight-ink);
  margin-bottom: 1.2rem;
}
.eyebrow__dot {
  width: 28px; height: 2px;
  background: var(--c-coral);
  display: inline-block;
  border-radius: 2px;
}
.eyebrow--light { color: var(--c-rose); }
.eyebrow--light .eyebrow__dot { background: var(--c-rose); }

/* -------- Secciones -------- */
.section {
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
  position: relative;
}
.section--alt {
  background:
    radial-gradient(80% 60% at 80% 0%, rgba(130, 186, 196, 0.20), transparent 60%),
    var(--c-seashell-warm);
}
.section--dark {
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(130, 186, 196, 0.18), transparent 60%),
    linear-gradient(180deg, var(--c-midnight) 0%, var(--c-midnight-deep) 100%);
  color: var(--c-seashell);
}

.section__head {
  max-width: 60ch;
  margin-bottom: clamp(2.4rem, 4vw, 3.6rem);
}

.section__title {
  font-size: var(--step-4);
  color: var(--c-midnight-ink);
  font-weight: 600;
  letter-spacing: -0.035em;
}
.section__title--light { color: var(--c-seashell); }
.section__title--light em { color: var(--c-rose); }

.section__lead {
  margin-top: 1.2rem;
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 56ch;
}
.section--dark .section__lead { color: rgba(250, 239, 237, 0.88); }

/* -------- HERO -------- */
.hero {
  position: relative;
  padding-block: clamp(4rem, 7vw, 6.5rem) clamp(4rem, 8vw, 7rem);
  background:
    linear-gradient(180deg, var(--c-seashell) 0%, var(--c-seashell-warm) 100%);
  overflow: hidden;
}
.hero__bg-shape {
  position: absolute;
  width: 60vw; height: 60vw;
  max-width: 720px; max-height: 720px;
  right: -20vw; top: -20vw;
  background: radial-gradient(circle at 50% 50%, var(--c-rose) 0%, transparent 65%);
  opacity: 0.7;
  pointer-events: none;
  filter: blur(8px);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__title {
  font-size: var(--step-5);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--c-midnight-ink);
  margin-top: 0.6rem;
}
.hero__title-accent {
  color: var(--c-coral-deep);
  font-style: italic;
}
.hero__lead {
  margin-top: 1.4rem;
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 50ch;
}
.hero__cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero__metrics {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}
.hero__metrics > div { display: flex; flex-direction: column; gap: 0.2rem; }
.hero__metrics dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.hero__metrics dd {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-3);
  color: var(--c-midnight-ink);
  letter-spacing: -0.02em;
}

/* Foto + decoración del hero */
.hero__art { position: relative; }
.hero__photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  background: var(--c-rose-soft);
}
.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.2s var(--ease-out-expo);
}
.hero__photo:hover img { transform: scale(1.06); }
.hero__seal {
  position: absolute;
  top: -22px; left: -22px;
  width: 72px; height: 72px;
  background: var(--c-midnight);
  color: var(--c-seashell);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.7rem;
  box-shadow: var(--shadow-md);
  animation: spin 22s linear infinite;
  transform-origin: center;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.hero__chip {
  position: absolute;
  right: -16px; bottom: 22px;
  background: var(--c-seashell);
  color: var(--c-midnight-ink);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  display: flex; align-items: center; gap: 0.7rem;
  box-shadow: var(--shadow-md);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  max-width: 220px;
}
.hero__chip i { color: var(--c-coral); font-size: 1.1rem; }
.hero__chip em { font-style: normal; font-weight: 500; font-size: 0.78rem; color: var(--ink-muted); display: block; }

.hero__quote {
  margin-top: 1.4rem;
  margin-inline-start: clamp(0px, 4vw, 50px);
  background: var(--c-rose);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  color: var(--c-midnight-ink);
  position: relative;
  max-width: 420px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-style: italic;
}
.hero__quote p { margin: 0; }
.hero__quote span {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.8rem;
  color: var(--c-coral-deep);
  font-weight: 600;
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 480px; margin-inline: auto; }
  .hero__photo { aspect-ratio: 5 / 4; }
  .hero__metrics { gap: 0.8rem; }
  .hero__metrics dd { font-size: var(--step-2); }
}

/* -------- Banda de confianza -------- */
.trustband {
  background: var(--c-midnight);
  color: var(--c-seashell);
  padding-block: 3.5rem;
  position: relative;
}
.trustband::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 90% at 10% 50%, rgba(130, 186, 196, 0.18), transparent 60%),
    radial-gradient(40% 90% at 90% 50%, rgba(255, 212, 209, 0.10), transparent 60%);
  pointer-events: none;
}
.trustband__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  position: relative;
}
.trustband__item {
  position: relative;
}
.trustband__item + .trustband__item::before {
  content: "";
  position: absolute;
  left: -1rem; top: 12%;
  bottom: 12%;
  width: 1px;
  background: rgba(250, 239, 237, 0.12);
}
.trustband__item i {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(250, 239, 237, 0.08);
  color: var(--c-rose);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.trustband__item h3 {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 0.35rem;
  color: var(--c-seashell);
}
.trustband__item p {
  font-size: 0.92rem;
  color: rgba(250, 239, 237, 0.82);
  line-height: 1.55;
}
@media (max-width: 900px) {
  .trustband__grid { grid-template-columns: repeat(2, 1fr); }
  .trustband__item { border-inline-start: 0; padding-inline-start: 0; }
}
@media (max-width: 480px) {
  .trustband__grid { grid-template-columns: 1fr; }
}

/* -------- Nosotros -------- */
.about__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about__media {
  position: relative;
  aspect-ratio: 4 / 5;
}
.about__media img {
  position: absolute;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.about__media img:first-of-type {
  inset: 0 30% 18% 0;
  width: 70%;
  height: 100%;
}
.about__media-secondary {
  inset: auto 0 0 30%;
  width: 60%;
  height: 50%;
  border: 6px solid var(--bg);
}
.about__year {
  position: absolute;
  top: -10px; left: -10px;
  background: var(--c-rose);
  color: var(--c-midnight-ink);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem 1rem;
  font-family: var(--font-display);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.about__year-num { font-size: var(--step-4); font-weight: 600; }
.about__year-text { font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.3rem; font-family: var(--font-body); font-weight: 600; color: var(--c-midnight-ink); }

.about__content p { margin-top: 1rem; color: var(--ink-soft); font-size: var(--step-0); }
.about__list {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.about__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.96rem;
  color: var(--ink-soft);
}
.about__list i {
  color: var(--c-midnight);
  background: var(--c-rose-soft);
  border-radius: 50%;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  font-size: 0.72rem;
  flex-shrink: 0;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 480px; margin-inline: auto; }
}

/* -------- Servicios -------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
}
.service {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  border: 1px solid var(--line);
  transition: transform var(--t-med) var(--ease-out-quart),
              box-shadow var(--t-med) var(--ease-out-quart),
              border-color var(--t-fast) var(--ease-out-quart);
  position: relative;
}
.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service__icon {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--c-rose) 0%, var(--c-rose-soft) 100%);
  color: var(--c-coral-deep);
  font-size: 1.2rem;
  margin-bottom: 1.1rem;
  transition: transform var(--t-med) var(--ease-out-quart);
}
.service:hover .service__icon { transform: rotate(-6deg) scale(1.05); }
.service h3 {
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--c-midnight-ink);
  margin-bottom: 0.5rem;
}
.service p {
  font-size: 0.93rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* -------- Por qué elegirnos -------- */
.why__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.why__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}
.why__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out-expo);
}
.why__media:hover img { transform: scale(1.05); }
.why__pill {
  position: absolute;
  left: 1.4rem; right: 1.4rem; bottom: 1.4rem;
  background: var(--c-seashell);
  color: var(--c-midnight-ink);
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius);
  font-size: 0.93rem;
  box-shadow: var(--shadow-md);
}
.why__pill i { color: var(--c-coral); font-size: 1.2rem; margin-bottom: 0.4rem; }
.why__pill p { font-family: var(--font-display); font-style: italic; line-height: 1.4; }
.why__pill span { display: block; margin-top: 0.5rem; font-family: var(--font-body); font-style: normal; font-size: 0.78rem; color: var(--c-coral-deep); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

.why__list {
  margin-top: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.why__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: flex-start;
}
.why__num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--c-coral);
  font-weight: 600;
  line-height: 1;
  border-top: 2px solid var(--c-coral);
  padding-top: 0.5rem;
  min-width: 50px;
}
.why__item h3 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 600; color: var(--c-midnight-ink); margin-bottom: 0.3rem; }
.why__item p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; }

@media (max-width: 900px) {
  .why__grid { grid-template-columns: 1fr; }
  .why__media { max-width: 480px; margin-inline: auto; }
}

/* -------- Ubicación (dark) -------- */
.location__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.location__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lg);
  background: rgba(250, 239, 237, 0.08);
}
.location__map iframe {
  width: 100%; height: 100%;
  border: 0;
  filter: saturate(0.85) contrast(1.02);
}

.location__cards {
  margin-top: 1.8rem;
  display: grid;
  gap: 1rem;
}
.infocard {
  background: rgba(250, 239, 237, 0.06);
  border: 1px solid rgba(250, 239, 237, 0.10);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  transition: background var(--t-fast) var(--ease-out-quart),
              border-color var(--t-fast) var(--ease-out-quart),
              transform var(--t-med) var(--ease-out-quart);
}
.infocard:hover {
  background: rgba(250, 239, 237, 0.10);
  border-color: rgba(250, 239, 237, 0.22);
  transform: translateY(-2px);
}
.infocard__icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--c-rose), var(--c-coral));
  color: var(--c-midnight-ink);
  font-size: 1rem;
}
.infocard h3 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--c-rose);
  margin-bottom: 0.5rem;
}
.infocard p { font-size: 1rem; line-height: 1.5; }
.infocard p + p { margin-top: 0.4rem; }
.infocard__hint { font-size: 0.88rem !important; color: rgba(250, 239, 237, 0.82); font-style: italic; }
.infocard__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-rose);
  border-bottom: 1px solid rgba(255, 212, 209, 0.35);
  padding-bottom: 2px;
  transition: color var(--t-fast) var(--ease-out-quart), border-color var(--t-fast) var(--ease-out-quart);
}
.infocard__link:hover { color: var(--c-seashell); border-color: var(--c-seashell); }

.hours {
  display: grid;
  gap: 0.2rem;
}
.hours li {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: 0.96rem;
  border-bottom: 1px dashed rgba(250, 239, 237, 0.12);
  padding-block: 0.45rem;
}
.hours li:last-child { border-bottom: 0; }
.hours span { color: rgba(250, 239, 237, 0.82); }
.hours strong { font-weight: 600; color: var(--c-seashell); }
.hours--off strong { color: var(--c-rose); }

.biglink {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--c-seashell);
  border-bottom: 2px solid var(--c-rose);
  padding-bottom: 2px;
  display: inline-block;
  transition: color var(--t-fast) var(--ease-out-quart), border-color var(--t-fast) var(--ease-out-quart);
}
.biglink:hover { color: var(--c-rose); border-color: var(--c-seashell); }

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

/* -------- CTA Final -------- */
.finalcta {
  background: linear-gradient(135deg, var(--c-rose) 0%, var(--c-rose-soft) 100%);
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
  position: relative;
  overflow: hidden;
}
.finalcta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 80% at 100% 100%, rgba(0, 96, 120, 0.10), transparent 70%);
  pointer-events: none;
}
.finalcta__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.finalcta h2 {
  font-size: var(--step-3);
  color: var(--c-midnight-ink);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.finalcta p {
  color: var(--c-midnight-ink);
  font-size: var(--step-0);
  max-width: 60ch;
  opacity: 0.85;
}
.finalcta__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

@media (max-width: 760px) {
  .finalcta__inner { grid-template-columns: 1fr; }
  .finalcta__actions { justify-content: flex-start; }
}

/* -------- Footer -------- */
.site-footer {
  background: var(--c-midnight-ink);
  color: rgba(250, 239, 237, 0.78);
  padding-top: clamp(3rem, 5vw, 4.5rem);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(250, 239, 237, 0.10);
}
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.site-footer__brand .brand__mark { width: 40px; height: 40px; font-size: 1rem; border-radius: 10px; }
.site-footer__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--c-seashell);
  letter-spacing: -0.02em;
}
.site-footer__sub { font-size: 0.82rem; margin-top: 2px; }
.site-footer__col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--c-rose);
  margin-bottom: 1rem;
}
.site-footer__col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.site-footer__col a {
  color: rgba(250, 239, 237, 0.7);
  font-size: 0.94rem;
  transition: color var(--t-fast) var(--ease-out-quart);
}
.site-footer__col a:hover { color: var(--c-seashell); }

.site-footer__bar { padding-block: 1.4rem; font-size: 0.82rem; }
.site-footer__bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer__credit a { color: var(--c-rose); font-weight: 500; }
.site-footer__credit a:hover { color: var(--c-seashell); }

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

/* -------- Reveal / Animaciones -------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease-out-quart),
              transform 700ms var(--ease-out-quart);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------- Menú móvil (overlay) -------- */
@media (max-width: 900px) {
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-toggle {
    display: inline-block;
    z-index: calc(var(--z-mobile-nav) + 1);
  }
  .nav-toggle.is-open .nav-toggle__bar { background: var(--c-seashell); }
  .nav-toggle.is-open:hover { background: rgba(250, 239, 237, 0.08); }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: var(--z-mobile-nav);
    background: var(--c-midnight-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-med) var(--ease-out-quart),
                visibility var(--t-med) var(--ease-out-quart);
  }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .site-nav ul {
    flex-direction: column;
    gap: 1.2rem;
    text-align: center;
  }
  .nav-link {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--c-seashell);
    padding: 0.5rem 0;
    letter-spacing: -0.02em;
  }
  .nav-link::after { display: none; }
  .nav-link--accent {
    margin-top: 0.8rem;
    background: var(--c-coral);
    color: var(--c-seashell);
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.8rem 1.6rem;
  }

  /* stagger al abrir menú móvil */
  .site-nav.is-open .nav-link {
    opacity: 0;
    transform: translateY(12px);
    animation: navIn 500ms var(--ease-out-quart) forwards;
  }
  .site-nav.is-open li:nth-child(1) .nav-link { animation-delay: 80ms; }
  .site-nav.is-open li:nth-child(2) .nav-link { animation-delay: 140ms; }
  .site-nav.is-open li:nth-child(3) .nav-link { animation-delay: 200ms; }
  .site-nav.is-open li:nth-child(4) .nav-link { animation-delay: 260ms; }
  .site-nav.is-open li:nth-child(5) .nav-link { animation-delay: 320ms; }
  .site-nav.is-open li:nth-child(6) .nav-link { animation-delay: 380ms; }
  @keyframes navIn {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* -------- Reduced motion -------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero__seal { animation: none !important; }
  .hero__photo img, .why__media img { transition: none !important; }
}
