/* --------------------------------------------------------------------------
   San Miguel — boutique premium · variables, reset suave, utilidades
--------------------------------------------------------------------------- */
:root {
  --ink: #0b1426;
  --ink-soft: #1c2d4a;
  --muted: rgba(15, 28, 52, 0.68);
  --line: rgba(11, 45, 92, 0.12);
  --surface: #c8e6f5;
  --surface-2: #b8dff3;
  --sky-deep: #a8d4ec;
  --sky-highlight: #e8f6fc;
  --white: #ffffff;
  --accent: #1e5a9a;
  --accent-2: #0d3d6e;
  --accent-soft: rgba(30, 90, 154, 0.12);
  --gold: #c9a962;
  --gold-soft: rgba(201, 169, 98, 0.22);
  --shadow-lg: 0 28px 80px rgba(8, 24, 56, 0.18);
  --shadow-md: 0 16px 40px rgba(8, 24, 56, 0.12);
  --shadow-sm: 0 8px 24px rgba(8, 24, 56, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-ui: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@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;
  }
}

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(255, 255, 255, 0.55), transparent 52%),
    radial-gradient(1200px 700px at 8% 10%, rgba(144, 209, 227, 0.35), transparent 52%),
    radial-gradient(900px 600px at 100% 30%, rgba(30, 140, 200, 0.12), transparent 48%),
    linear-gradient(165deg, var(--sky-highlight) 0%, var(--surface) 38%, var(--sky-deep) 100%);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--white);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 2000;
  box-shadow: var(--shadow-sm);
}
.skip-link:focus {
  left: 10px;
}

.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;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: clamp(3.5rem, 6vw, 6rem) 0;
}

/* Preloader */
.preloader__svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.preloader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 20%, rgba(30, 90, 154, 0.22), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(201, 169, 98, 0.18), transparent 40%), var(--ink);
  color: var(--white);
  transition: opacity 0.65s var(--ease-out), visibility 0.65s, transform 0.85s var(--ease-out);
}
.preloader--hide {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  pointer-events: none;
}
.preloader__inner {
  text-align: center;
  padding: 2rem;
}
/** Contenedor con silueta de nube (clip-path SVG #sm-preloader-cloud) */
.preloader__cloud-slot {
  position: relative;
  width: min(104px, 30vw);
  height: min(86px, 25vw);
  margin: 0 auto 1.05rem;
  transform-origin: center center;
  animation: prePulse 1.65s ease-in-out infinite;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 0.5px rgba(255, 255, 255, 0.45));
}
.preloader--has-logo .preloader__cloud-slot {
  animation: preFloat 2.4s ease-in-out infinite;
}
.preloader__mark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 118%;
  height: 118%;
  margin: 0;
  border: none;
  border-radius: 0;
  background: linear-gradient(
    165deg,
    rgba(144, 209, 227, 0.92) 0%,
    rgba(30, 120, 180, 0.55) 45%,
    rgba(13, 61, 110, 0.82) 100%
  );
  clip-path: url(#sm-preloader-cloud);
  -webkit-clip-path: url(#sm-preloader-cloud);
}
.preloader--has-logo .preloader__mark {
  display: none;
}
.preloader__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 118%;
  height: 118%;
  margin: 0;
  object-fit: contain;
  object-position: center center;
  clip-path: url(#sm-preloader-cloud);
  -webkit-clip-path: url(#sm-preloader-cloud);
  filter: none;
}
.preloader__text {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.82rem;
  opacity: 0.92;
}
.preloader__line {
  display: block;
  width: min(200px, 50vw);
  height: 2px;
  margin: 1.25rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  animation: preLine 1.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .preloader__cloud-slot {
    animation: none;
  }
  .preloader__line {
    animation: none;
  }
}

@keyframes prePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}
@keyframes preFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
@keyframes preLine {
  0% {
    opacity: 0.25;
    transform: scaleX(0.6);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
  100% {
    opacity: 0.25;
    transform: scaleX(0.6);
  }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), backdrop-filter 0.35s;
}
.header--scrolled {
  background: rgba(232, 246, 252, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(8, 24, 56, 0.06);
}
.header__bar {
  width: min(1200px, calc(100% - 28px));
  margin-inline: auto;
  padding: 0.85rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.header__logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.header__wordmark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav__list a {
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav__list a:hover::after,
.nav__list a:focus-visible::after {
  transform: scaleX(1);
}
.header__menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}
.header__menu-line {
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 99px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.mobile-panel {
  border-top: 1px solid var(--line);
  background: rgba(232, 246, 252, 0.97);
  backdrop-filter: blur(12px);
}
.mobile-panel__inner {
  width: min(1120px, calc(100% - 32px));
  margin: auto;
  padding: 1rem 0 1.25rem;
  display: grid;
  gap: 0.75rem;
}
.mobile-panel__inner a {
  text-decoration: none;
  font-weight: 500;
  padding: 0.35rem 0;
  color: var(--ink-soft);
}
.mobile-panel__social {
  justify-content: flex-start;
  padding-top: 0.65rem;
  margin-top: 0.35rem;
  border-top: 1px solid var(--line);
}

/* Redes — iconos boutique */
.social-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.social-icons--compact {
  gap: 0.35rem;
}
.social-icons__link {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--accent-2);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(30, 90, 154, 0.16);
  box-shadow: 0 8px 22px rgba(8, 24, 56, 0.07);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s, color 0.28s, border-color 0.28s,
    background 0.28s;
  text-decoration: none;
}
.social-icons__link:hover,
.social-icons__link:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  color: var(--accent);
  border-color: rgba(30, 90, 154, 0.38);
}
.social-icons__link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.social-icons--compact .social-icons__link {
  width: 38px;
  height: 38px;
}
.social-icons--footer .social-icons__link {
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}
.social-icons--footer .social-icons__link:hover,
.social-icons--footer .social-icons__link:focus-visible {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(201, 169, 98, 0.42);
  color: var(--white);
}

@media (max-width: 900px) {
  .nav__list,
  .nav .btn,
  .nav__social {
    display: none;
  }
  .header__menu-btn {
    display: inline-flex;
  }
}

/* Buttons */
.btn {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.72rem 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s, color 0.25s,
    border-color 0.25s;
}
.btn:active {
  transform: translateY(1px) scale(0.99);
}
.btn--sm {
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}
.btn--lg {
  padding: 0.95rem 1.6rem;
  font-size: 1rem;
}
.btn--block {
  width: 100%;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--white);
  box-shadow: 0 14px 34px rgba(13, 61, 110, 0.32);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  box-shadow: 0 18px 46px rgba(13, 61, 110, 0.42);
  transform: translateY(-1px);
}
.btn--ghost {
  border: 1px solid rgba(30, 90, 154, 0.28);
  background: rgba(255, 255, 255, 0.52);
  color: var(--accent-2);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: rgba(30, 90, 154, 0.55);
  background: var(--white);
}
.btn--light {
  background: var(--white);
  color: var(--accent-2);
  box-shadow: var(--shadow-md);
}
.btn--outline-light {
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}
.btn--ghost-light {
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: transparent;
  color: var(--white);
}
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: grid;
  align-items: end;
  color: var(--white);
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -2;
  transform: translate3d(0, var(--py, 0), 0) scale(1.06);
  will-change: transform;
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.06);
}
.hero__fallback {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
}
.hero__fallback--show {
  opacity: 1;
}
.hero__fallback--gradient {
  background-image: radial-gradient(circle at 20% 20%, rgba(30, 90, 154, 0.85), transparent 55%),
    radial-gradient(circle at 85% 10%, rgba(201, 169, 98, 0.45), transparent 45%),
    linear-gradient(145deg, #0d3d6e, #0b1426 55%, #152a48);
}
.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 18, 36, 0.15) 0%, rgba(8, 18, 36, 0.62) 48%, rgba(6, 12, 26, 0.88) 100%);
}
.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero__content {
  padding-bottom: clamp(3rem, 6vw, 5rem);
  padding-top: 6rem;
  max-width: 880px;
}
.hero__kicker {
  font-size: 0.82rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.9;
  margin: 0 0 0.75rem;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.45rem, 5.5vw, 3.85rem);
  line-height:1.06;
  margin: 0 0 1rem;
  font-weight: 600;
}
.hero__title em {
  font-style: italic;
  font-weight: 500;
  opacity: 0.94;
}
.hero__lead {
  margin: 0 0 1.75rem;
  max-width: 640px;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.9);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.pill--soft {
  background: rgba(255, 255, 255, 0.1);
}
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: 42px;
  height: 68px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(10, 22, 44, 0.38);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.hero__scroll span {
  width: 6px;
  height: 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.9);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% {
    transform: translateY(-7px);
    opacity: 0.2;
  }
  50% {
    transform: translateY(7px);
    opacity: 1;
  }
  100% {
    transform: translateY(-7px);
    opacity: 0.2;
  }
}

/* Portada editorial boutique */
.editorial-cover {
  position: relative;
  padding: 0 clamp(16px, 4vw, 40px) clamp(2.25rem, 5vw, 3.5rem);
  margin-top: -2px;
}
.editorial-cover__inner {
  width: min(1180px, 100%);
  margin-inline: auto;
  border-radius: calc(var(--radius) + 12px);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(11, 45, 92, 0.06);
  background: var(--ink);
}
.editorial-cover__media {
  position: relative;
  min-height: min(52vw, 520px);
  transform: translate3d(0, var(--py, 0), 0);
  will-change: transform;
}
.editorial-cover__img {
  width: 100%;
  height: min(52vw, 520px);
  object-fit: cover;
  object-position: center 28%;
  display: block;
}
.editorial-cover__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(6, 14, 28, 0.88) 0%,
    rgba(13, 61, 110, 0.45) 42%,
    rgba(6, 14, 28, 0.25) 100%
  );
  pointer-events: none;
}
.editorial-cover--fallback .editorial-cover__gradient {
  background: linear-gradient(125deg, rgba(13, 61, 110, 0.95) 0%, rgba(11, 20, 38, 0.92) 50%, rgba(26, 58, 99, 0.88) 100%);
}
.editorial-cover__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: clamp(1.75rem, 4vw, 3rem);
  max-width: min(560px, 92%);
  color: var(--white);
  z-index: 1;
}
.editorial-cover__line {
  display: block;
  width: 48px;
  height: 3px;
  border-radius: 99px;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--gold), rgba(255, 255, 255, 0.65));
}
.editorial-cover__kicker {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.88;
}
.editorial-cover__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  line-height: 1.08;
  font-weight: 600;
}
.editorial-cover__sub {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 480px;
}
@media (max-width: 640px) {
  .editorial-cover__media {
    min-height: 340px;
  }
  .editorial-cover__img {
    height: 340px;
    object-position: center center;
  }
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease-out) var(--d, 0ms), transform 0.9s var(--ease-out) var(--d, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease-out) var(--d, 0ms), transform 0.85s var(--ease-out) var(--d, 0ms);
}
.reveal-up.is-visible {
  opacity: 1;
  transform: none;
}

/* Stats */
.stats {
  margin-top: -3rem;
  position: relative;
  z-index: 2;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.stat {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.65);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 80%;
  background: radial-gradient(circle at 30% 0%, rgba(30, 90, 154, 0.14), transparent 60%);
  pointer-events: none;
}
.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 600;
  color: var(--accent-2);
  line-height: 1.1;
}
.stat__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
}
@media (max-width: 900px) {
  .stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .stats__grid {
    grid-template-columns: 1fr;
  }
}

/* Section heads */
.section-head {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.section-head__kicker {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.5rem;
}
.section-head__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.65rem);
  margin: 0 0 0.65rem;
  font-weight: 600;
  color: var(--ink);
}
.section-head__text {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Categories */
.categories__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (max-width: 980px) {
  .categories__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .categories__grid {
    grid-template-columns: 1fr;
  }
}
.cat-card {
  position: relative;
  background: var(--white);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(11, 45, 92, 0.06);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.cat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.cat-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.cat-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.1s var(--ease-out);
}
.cat-card:hover .cat-card__img {
  transform: scale(1.08);
}
.cat-card__ph {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 90, 154, 0.25), rgba(201, 169, 98, 0.18)),
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.35), transparent 55%);
}
.cat-card__ph--hide {
  opacity: 0;
  transition: opacity 0.5s;
}
.cat-card__shine {
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.5) 50%, transparent 60%);
  transform: translateX(-30%);
  opacity: 0;
  transition: transform 0.9s var(--ease-out), opacity 0.6s;
}
.cat-card:hover .cat-card__shine {
  opacity: 0.25;
  transform: translateX(30%);
}
.cat-card__body {
  padding: 1.25rem 1.35rem 1.4rem;
  display: grid;
  gap: 0.65rem;
}
.cat-card__title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0;
  font-weight: 600;
}
.cat-card__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Gallery — grid editorial */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 12px;
}
.gallery__item {
  grid-column: span 3;
  grid-row: span 2;
  min-height: 200px;
  margin: 0;
  border: none;
  padding: 0;
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  display: block;
}
.gallery__item--hero {
  grid-column: span 6;
  grid-row: span 3;
  min-height: 280px;
}
.gallery__item--tall {
  grid-row: span 3;
  min-height: 300px;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.95s var(--ease-out), filter 0.45s;
  filter: saturate(1.03);
}
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.2), transparent 52%);
  opacity: 0;
  transition: opacity 0.45s;
  pointer-events: none;
}
.gallery__item:hover img {
  transform: scale(1.045);
}
.gallery__item:hover::after {
  opacity: 1;
}
@media (max-width: 900px) {
  .gallery__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
  }
  .gallery__item {
    grid-column: span 3;
    grid-row: span 2;
    min-height: 180px;
  }
  .gallery__item--hero {
    grid-column: span 6;
    grid-row: span 3;
  }
}
@media (max-width: 520px) {
  .gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery__item,
  .gallery__item--hero,
  .gallery__item--tall {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 200px;
    aspect-ratio: 3 / 4;
  }
}
.gallery__hint {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 1.75rem;
}
.gallery__empty {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem;
  border-radius: var(--radius);
  border: 1px dashed rgba(30, 90, 154, 0.28);
  background: rgba(255, 255, 255, 0.72);
}

/* Why */
.why__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}
@media (max-width: 800px) {
  .why__list {
    grid-template-columns: 1fr;
  }
}
.why__item {
  display: flex;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid rgba(11, 45, 92, 0.06);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.why__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.why__icon {
  flex: 0 0 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(30, 90, 154, 0.12);
}
.why__title {
  margin: 0 0 0.25rem;
  font-size: 1.08rem;
}
.why__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* Testimonials */
.testi-slider {
  position: relative;
}
.testi-slider__viewport {
  overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(11, 45, 92, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(200, 230, 245, 0.85));
  box-shadow: var(--shadow-md);
}
.testi-slider__track {
  display: flex;
  transition: transform 0.65s var(--ease-out);
  will-change: transform;
}
.testi-slide {
  min-width: 100%;
  flex: 0 0 100%;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-sizing: border-box;
}
.testi-slide__quote {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 1.95rem);
  line-height: 1.35;
  color: var(--ink);
}
.testi-slide__cite {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-style: normal;
}
.testi-slide__name {
  font-weight: 700;
  letter-spacing: 0.02em;
}
.testi-slide__role {
  color: var(--muted);
  font-size: 0.92rem;
}
.testi-slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.1rem;
}
.testi-slider__btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(30, 90, 154, 0.2);
  background: var(--white);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--accent-2);
  transition: background 0.25s, transform 0.25s var(--ease-out);
}
.testi-slider__btn:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
}
.testi-slider__dots {
  display: flex;
  gap: 0.45rem;
}
.testi-slider__dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  border: none;
  padding: 0;
  background: rgba(30, 90, 154, 0.22);
  cursor: pointer;
  transition: transform 0.25s, background 0.25s;
}
.testi-slider__dot.is-active {
  background: var(--accent);
  transform: scale(1.25);
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  color: var(--white);
  text-align: center;
  padding: clamp(4rem, 9vw, 6.5rem) 0;
  isolation: isolate;
}
.cta-band__bg {
  position: absolute;
  inset: -12% 0 -12% 0;
  background: radial-gradient(circle at 20% 30%, rgba(30, 90, 154, 0.75), transparent 55%),
    radial-gradient(circle at 90% 20%, rgba(201, 169, 98, 0.35), transparent 45%),
    linear-gradient(125deg, #0d3d6e, #0b1426 40%, #1a3a63);
  transform: translate3d(0, var(--py, 0), 0);
  z-index: -2;
  will-change: transform;
}
.cta-band__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 14, 28, 0.05), rgba(6, 14, 28, 0.72));
  z-index: -1;
}
.cta-band__inner {
  position: relative;
  max-width: 860px;
}
.cta-band__kicker {
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 700;
  opacity: 0.82;
  margin: 0 0 0.85rem;
}
.cta-band__title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.8vw, 3.1rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  font-weight: 600;
}
.cta-band__title em {
  font-style: italic;
  font-weight: 500;
}
.cta-band__text {
  margin: 0 auto 1.75rem;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.06rem;
}
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

/* Location — foto + mapa unidos */
.location__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: min(440px, 70vh);
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(11, 45, 92, 0.1);
}
.location__photo {
  position: relative;
  margin: 0;
  min-height: 360px;
  background: linear-gradient(145deg, rgba(30, 90, 154, 0.2), rgba(201, 169, 98, 0.12)),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
.location__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  min-height: 360px;
}
.location__photo-ph {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 40% 35%, rgba(30, 90, 154, 0.25), transparent 60%),
    linear-gradient(135deg, rgba(13, 61, 110, 0.35), rgba(11, 20, 38, 0.5));
  transition: opacity 0.5s;
}
.location__photo-ph--hide {
  opacity: 0;
  pointer-events: none;
}
.location__map-shell {
  position: relative;
  min-height: 360px;
  border-left: 1px solid rgba(255, 255, 255, 0.65);
}
.location__map {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}
.location__below {
  margin-top: 1.35rem;
}
@media (max-width: 900px) {
  .location__split {
    grid-template-columns: 1fr;
    min-height: unset;
  }
  .location__map-shell {
    border-left: none;
    border-top: 1px solid rgba(11, 45, 92, 0.08);
    min-height: 280px;
  }
  .location__map {
    min-height: min(320px, 45vh);
  }
  .location__photo {
    min-height: 280px;
  }
  .location__photo-img {
    min-height: 280px;
  }
}
.glass {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
}
.location__card {
  padding: 1.5rem 1.5rem 1.35rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(11, 45, 92, 0.08);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 1rem;
}
.location__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
}
.location__address {
  margin: 0;
  font-style: normal;
  color: var(--muted);
  line-height: 1.55;
}
.location__actions {
  display: grid;
  gap: 0.6rem;
}
.location__hours {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Footer */
.footer {
  background: linear-gradient(180deg, #0b1426, #0a1220 60%, #070d18);
  color: rgba(255, 255, 255, 0.88);
  padding: 3rem 0 0;
  margin-top: 2rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  padding-bottom: 2.25rem;
}
@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}
.footer__brand {
  max-width: 320px;
}
.footer__logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 14px;
  margin-bottom: 0.6rem;
}
.footer__wordmark {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
}
.footer__tag {
  margin: 0.5rem 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
}
.footer__h {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.footer__col p {
  margin: 0 0 0.5rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  font-size: 0.95rem;
}
.footer__wa-num {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.footer__link {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}
.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.footer__links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
}
.footer__links a:hover {
  text-decoration: underline;
}
.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.25rem;
}
.footer__hours {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0 1.5rem;
}
.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.62);
}
.footer__to-top {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
}

/* FAB WhatsApp */
.fab-wa {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 250;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #25d366, #128c7e);
  color: var(--white);
  box-shadow: 0 16px 40px rgba(18, 140, 126, 0.45);
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.fab-wa:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 22px 50px rgba(18, 140, 126, 0.55);
}
.fab-wa__ring {
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  border:1px solid rgba(37, 211, 102, 0.45);
  animation: fabRing 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes fabRing {
  0% {
    transform: scale(0.92);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.18);
    opacity: 0;
  }
  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}
.fab-wa__icon {
  position: relative;
}

/* Lightbox */
body.lightbox-open {
  overflow: hidden;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(6, 12, 26, 0.88);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 1rem;
}
.lightbox__stage {
  max-width: min(1100px, 100%);
  max-height: min(86vh, 100%);
}
.lightbox__img {
  max-width: 100%;
  max-height: min(86vh, 900px);
  margin: auto;
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  animation: lbIn 0.45s var(--ease-out);
}
@keyframes lbIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  border: none;
  cursor: pointer;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  transition: background 0.25s, transform 0.25s;
}
.lightbox__close {
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  font-size: 1.6rem;
  line-height: 1;
}
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 1.8rem;
}
.lightbox__nav--prev {
  left: 12px;
}
.lightbox__nav--next {
  right: 12px;
}
.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.22);
}
.lightbox__nav:hover {
  transform: translateY(-50%) scale(1.04);
}
@media (max-width: 640px) {
  .lightbox__nav {
    display: none;
  }
}