/* ================================================================
   1. VARIABLES Y BASE
   ================================================================ */

:root {
  --mobile-logo-mask: url("assets/logo-delnorte.webp");
  
  color-scheme: light;

  --font-body:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro Text",
    "Poppins",
    "Segoe UI",
    sans-serif;

  --ink: #151412;
  --ink-soft: #625d58;
  --bronze: #8b7560;
  --bronze-deep: #6f5b49;
  --paper: #ffffff;

  --glass-fill: rgb(255 255 255 / 24%);
  --glass-border-top: rgb(255 255 255 / 88%);
  --glass-border-bottom: rgb(139 117 96 / 24%);
  --glass-shadow: rgb(84 65 48 / 11%);

  --control-dark: rgb(18 18 17 / 92%);
  --control-dark-hover: rgb(18 18 17 / 82%);

  --header-height: 82px;
  --ease-liquid: cubic-bezier(.22, .8, .2, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

html {
  background: #f3ebe3;
}

body {
  position: relative;
  isolation: isolate;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    linear-gradient(
      128deg,
      #ffffff 0%,
      #fcfaf7 42%,
      #f5eee7 70%,
      #e9ddd1 100%
    );
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ================================================================
   2. SISTEMA DE CRISTAL LÍQUIDO
   ================================================================ */

.liquid-glass {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 0;

  background: var(--glass-fill);

  box-shadow:
    0 18px 42px var(--glass-shadow),
    inset 0 1px 0 rgb(255 255 255 / 34%);

  -webkit-backdrop-filter: blur(12px) saturate(120%);
  backdrop-filter: blur(12px) saturate(120%);
}

.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 1px solid transparent;
  border-radius: inherit;
  pointer-events: none;

  background:
    linear-gradient(
      180deg,
      var(--glass-border-top),
      var(--glass-border-bottom)
    )
    border-box;

  -webkit-mask:
    linear-gradient(#000 0 0) padding-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;

  mask:
    linear-gradient(#000 0 0) padding-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.liquid-glass::after {
  content: none;
}

.liquid-glass > * {
  position: relative;
  z-index: 2;
}

.liquid-control {
  transition:
    transform .25s var(--ease-liquid),
    box-shadow .35s ease,
    background-color .35s ease;
}

.liquid-control:hover {
  transform: translateY(-2px);
}

.liquid-control:active {
  transform: translateY(0) scale(.985);
}

/* ================================================================
   3. BOTONES Y ENLACES
   ================================================================ */

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 22px;
  border: 0;
  border-radius: 7px;
  font-weight: 600;
  cursor: pointer;
}

.button--dark {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      90% 120% at 28% 0%,
      rgb(255 255 255 / 16%),
      transparent 52%
    ),
    var(--control-dark);
  color: var(--paper);

  box-shadow:
    0 12px 30px rgb(0 0 0 / 19%),
    inset 0 1px 0 rgb(255 255 255 / 22%);
}

.button--dark::after {
  content: "";
  position: absolute;
  inset: -70% auto -70% -38%;
  width: 34%;
  transform: skewX(-18deg);
  background:
    linear-gradient(
      90deg,
      transparent,
      rgb(255 255 255 / 18%),
      transparent
    );
  transition: left .65s var(--ease-liquid);
}

.button--dark:hover {
  background-color: var(--control-dark-hover);
}

.button--dark:hover::after {
  left: 112%;
}

.text-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid currentColor;
  font-weight: 500;
}

.text-link i,
.service-choice__link i,
.large-choice > span:last-child i {
  transition: transform .25s ease;
}

.text-link:hover i,
.service-choice:hover .service-choice__link i,
.large-choice:hover > span:last-child i {
  transform: translateX(5px);
}

/* ================================================================
   4. HEADER Y CONTROLES EXTERIORES
   ================================================================ */

.site-header {
  position: fixed;
  top: 22px;
  left: 50%;
  z-index: 100;
  width: min(1160px, calc(100% - 430px));
  height: var(--header-height);
  display: grid;
  grid-template-columns: 180px 1fr 170px;
  align-items: center;
  gap: 24px;
  padding: 10px 12px 10px 18px;
  border-radius: 18px;
  transform: translateX(-50%);
}

.site-header::before {
  background:
    radial-gradient(
      95% 85% at 12% 0%,
      rgb(255 255 255 / 26%),
      transparent 60%
    ),
    linear-gradient(
      118deg,
      transparent 26%,
      rgb(255 255 255 / 9%) 48%,
      transparent 70%
    );
}

.brand {
  width: 166px;
  display: flex;
  align-items: center;
}

.brand img {
  width: 100%;
  height: 57px;
  object-fit: contain;
}

.desktop-nav {
  --nav-index: 0;
  position: relative;
  height: 52px;
  display: grid;
  grid-template-columns: repeat(5, minmax(92px, 1fr));
  align-items: center;
}

.desktop-nav a {
  position: relative;
  z-index: 3;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .25s ease;
}

.desktop-nav a[aria-current="page"] {
  color: var(--ink);
}

.desktop-nav__indicator {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  z-index: 1;
  width: 20%;
  border: 1px solid rgb(255 255 255 / 34%);
  border-radius: 9px;

  background:
    radial-gradient(
      120% 100% at 50% -18%,
      rgb(255 255 255 / 33%),
      transparent 58%
    ),
    linear-gradient(
      150deg,
      rgb(255 255 255 / 18%),
      rgb(255 255 255 / 6%)
    );

  box-shadow:
    0 8px 24px rgb(65 46 30 / 10%),
    inset 0 1px 0 rgb(255 255 255 / 43%),
    inset 0 -1px 0 rgb(255 255 255 / 8%);

  transform: translateX(calc(var(--nav-index) * 100%));
  transition: transform .58s cubic-bezier(.22, 1, .36, 1);

  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}

.header-consult {
  min-height: 54px;
  text-align: center;
}

.menu-toggle {
  display: none;
}

.header-controls {
  position: fixed;
  inset: 0;
  z-index: 105;
  pointer-events: none;
}

/* Horario */

.schedule-shell {
  position: absolute;
  top: 22px;
  left: max(18px, calc(50% - 795px));
  width: 190px;
  pointer-events: auto;
}

.schedule-pill {
  width: 100%;
  height: var(--header-height);
  display: grid;
  grid-template-columns: 10px 1fr 12px;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 18px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.schedule-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.schedule-copy strong {
  font-size: 12px;
  font-weight: 600;
}

.schedule-copy small {
  max-width: 130px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 400;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-pill > i {
  color: var(--ink-soft);
  font-size: 10px;
  transition: transform .25s ease;
}

.schedule-pill[aria-expanded="true"] > i {
  transform: rotate(180deg);
}

.schedule-popover {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 340px;
  padding: 18px;
  border-radius: 14px;
}

.schedule-popover[hidden] {
  display: none;
}

.schedule-popover__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.schedule-popover__heading span {
  font-weight: 600;
}

.schedule-popover__heading small {
  color: var(--ink-soft);
  font-size: 10px;
}

.schedule-list {
  display: grid;
  gap: 2px;
  margin: 0;
}

.schedule-list div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  padding: 7px 8px;
  color: var(--ink-soft);
  font-size: 11px;
}

.schedule-list div.is-today {
  background: rgb(255 255 255 / 16%);
  color: var(--ink);
  font-weight: 600;
}

.schedule-list dt,
.schedule-list dd {
  margin: 0;
}

/* ================================================================
   5. SPA HORIZONTAL
   ================================================================ */

.app-viewport {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.page-track {
  width: 100%;
  height: 100%;
  display: block;
}

.page-panel {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-top: 126px;
  scrollbar-width: thin;
  scrollbar-color: rgb(139 117 96 / 45%) transparent;
}

.page-panel[hidden] {
  display: none;
}

.page-container {
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--bronze-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
}

/* ================================================================
   6. INICIO
   ================================================================ */

.page-panel--home {
  background: transparent;
}

.home-atmosphere {
  display: none;
}

.home-layout {
  position: relative;
  min-height: calc(100dvh - 126px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr);
  grid-template-rows: 1fr auto;
  gap: 28px 56px;
  padding: clamp(54px, 8vh, 92px) 0 34px;
}

.home-copy {
  align-self: center;
  max-width: 620px;
}

.home-copy h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(54px, 5vw, 86px);
  font-weight: 400;
  line-height: 1.03;
  white-space: nowrap;
}

.home-lead {
  max-width: 480px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.55;
}

.home-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 32px;
}

/* Brújula */

.compass-visual {
  position: relative;
  align-self: center;
  justify-self: center;
  width: min(100%, 560px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.compass-aura {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border: 1px solid rgb(255 255 255 / 36%);
  border-radius: 50%;
  background: rgb(255 255 255 / 6%);
  box-shadow: 0 34px 70px rgb(69 42 22 / 22%);

  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.compass-art {
  position: relative;
  width: 80%;
  aspect-ratio: 1;
  filter: drop-shadow(0 28px 24px rgb(58 37 20 / 26%));
}

.compass-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.compass-art__circle {
  animation: compass-breathe 7s ease-in-out infinite;
}

.compass-art__arrows {
  animation: compass-float 5.5s ease-in-out infinite;
}

@keyframes compass-breathe {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.018);
  }
}

@keyframes compass-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* Tarjetas de inicio */

.home-services {
  grid-column: 1 / -1;
}

.home-services h2 {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 400;
}

.service-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.service-choice {
  min-height: 150px;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  border-radius: 16px;
}

.service-choice > i {
  color: var(--bronze-deep);
  font-size: 30px;
}

.service-choice__copy {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.service-choice__copy strong {
  font-size: 23px;
  font-weight: 500;
}

.service-choice__copy small {
  color: var(--ink-soft);
  font-size: 13px;
}

.service-choice__link {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* ================================================================
   7. PÁGINAS INTERIORES
   ================================================================ */

.page-panel--services,
.page-panel--detail,
.page-panel--about,
.page-panel--blog,
.page-panel--contact {
  background: transparent;
}

.section-layout {
  min-height: calc(100dvh - 126px);
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  align-items: center;
  gap: 78px;
  padding: 60px 0;
}

.section-heading h2,
.detail-card h2 {
  margin: 0;
  font-size: clamp(42px, 4.4vw, 70px);
  font-weight: 400;
  line-height: 1.08;
}

.section-heading > p:last-child,
.detail-card > p:not(.eyebrow) {
  max-width: 540px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
}

.large-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.large-choice {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 34px;
  border-radius: 18px;
}

.large-choice__number {
  align-self: flex-end;
  color: var(--ink-soft);
  font-size: 12px;
}

.large-choice > i {
  margin-top: 32px;
  color: var(--bronze-deep);
  font-size: 34px;
}

.large-choice strong {
  margin-top: 26px;
  font-size: 24px;
  font-weight: 500;
}

.large-choice p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.large-choice > span:last-child {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  font-size: 12px;
  font-weight: 600;
}

/* Detalles de servicios */

.detail-layout {
  min-height: calc(100dvh - 126px);
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 22px;
  padding: 60px 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.detail-card {
  width: min(860px, 100%);
  padding: clamp(34px, 6vw, 78px);
  border-radius: 20px;
}

.detail-card .button {
  margin-top: 32px;
}

/* Sobre nosotros */

.about-layout {
  min-height: calc(100dvh - 126px);
  display: grid;
  grid-template-columns: 1.08fr .72fr;
  align-items: center;
  gap: 90px;
  padding: 60px 0;
}

.about-card {
  padding: 42px;
  border-radius: 18px;
}

.about-card p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

.about-card .text-link {
  margin-top: 12px;
}

/* Blog */

.empty-state {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 18px;
  text-align: center;
}

.empty-state i {
  color: var(--bronze-deep);
  font-size: 38px;
}

.empty-state strong {
  font-size: 24px;
  font-weight: 500;
}

.empty-state span {
  color: var(--ink-soft);
}

/* ================================================================
   8. CONTACTO Y FOOTER
   ================================================================ */

.contact-layout {
  min-height: calc(100dvh - 126px);
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 42px 78px;
  padding: 58px 0 26px;
}

.contact-card {
  display: grid;
  grid-template-columns: 1.3fr .8fr 1.3fr;
  gap: 20px;
  padding: 36px;
  border-radius: 18px;
}

.contact-card > div {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.contact-card i {
  margin-top: 4px;
  color: var(--bronze-deep);
}

.contact-card a:hover {
  color: var(--ink);
}

.site-footer {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 30px;
  padding-top: 22px;
  border-top: 1px solid rgb(139 117 96 / 28%);
  font-size: 11px;
}

/* Animación original del logo */

.footer-animated-logo {
  --logo-ease: cubic-bezier(.2, .8, .2, 1);

  position: relative;
  display: block;
  width: 180px;
  aspect-ratio: 2000 / 1300;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.footer-logo-frame,
.footer-logo-layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.footer-logo-layer {
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.footer-logo-layer--circle {
  z-index: 1;
  opacity: 0;
  filter: blur(4px);
  clip-path: inset(0 35% 0 0);
  transform: translateX(-5.5%) scale(.82);
  transform-origin: 32.5% 50%;

  transition:
    clip-path 680ms var(--logo-ease),
    filter 680ms var(--logo-ease),
    opacity 520ms ease,
    transform 680ms var(--logo-ease);
}

.footer-logo-layer--arrows {
  z-index: 2;
  opacity: 0;
  filter: blur(3px);
  transform: translateX(-5.5%) rotate(-16deg) scale(.88);
  transform-origin: 32.5% 50%;

  transition:
    filter 680ms var(--logo-ease),
    opacity 520ms ease,
    transform 680ms var(--logo-ease);
}

.footer-logo-layer--letters {
  z-index: 3;
  transform: translateX(-29%) scale(1.1);
  transform-origin: 64% 50%;
  transition: transform 720ms var(--logo-ease);
}

.footer-animated-logo.is-active .footer-logo-layer--circle,
.footer-animated-logo:focus-visible .footer-logo-layer--circle {
  opacity: 1;
  filter: blur(0);
  clip-path: inset(0);
  transform: translateX(0) scale(1);
}

.footer-animated-logo.is-active .footer-logo-layer--arrows,
.footer-animated-logo:focus-visible .footer-logo-layer--arrows {
  opacity: 1;
  filter: blur(0);
  transform: translateX(0) rotate(0) scale(1);
}

.footer-animated-logo.is-active .footer-logo-layer--letters,
.footer-animated-logo:focus-visible .footer-logo-layer--letters {
  transform: translateX(0) scale(1);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: var(--ink-soft);
}

.footer-links a:hover,
.footer-copy a:hover {
  color: var(--ink);
}

.footer-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  color: var(--ink-soft);
}

/* ================================================================
   9. MENÚ MÓVIL
   ================================================================ */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgb(18 16 14 / 42%);
  opacity: 0;
  visibility: hidden;

  transition:
    opacity .3s ease,
    visibility .3s ease;

  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__panel {
  width: min(520px, 100%);
  max-height: calc(100dvh - 32px);
  padding: 20px;
  border-radius: 20px;
  transform: translateY(18px) scale(.98);
  transition: transform .36s var(--ease-liquid);
}

.mobile-menu.is-open .mobile-menu__panel {
  transform: translateY(0) scale(1);
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.mobile-menu__top img {
  width: 150px;
  height: 56px;
  object-fit: contain;
}

.mobile-menu__top button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

.mobile-menu nav {
  display: grid;
  border-top: 1px solid rgb(255 255 255 / 20%);
}

.mobile-menu nav a {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border-bottom: 1px solid rgb(255 255 255 / 16%);
  font-size: 18px;
}

.mobile-menu nav i {
  font-size: 12px;
}

.mobile-menu__panel > .button {
  width: 100%;
  margin-top: 20px;
}

/* ================================================================
   10. PRESENTACIÓN MÓVIL
   ================================================================ */

.mobile-intro {
  display: none;
}

/* ================================================================
   11. RESPONSIVE
   ================================================================ */

@media (max-width: 1450px) {
  .site-header {
    width: calc(100% - 410px);
    grid-template-columns: 158px 1fr 154px;
    gap: 14px;
  }

  .brand {
    width: 150px;
  }

  .desktop-nav {
    grid-template-columns: repeat(5, minmax(82px, 1fr));
  }

  .desktop-nav a {
    padding: 0 6px;
    font-size: 12px;
  }

  .schedule-shell {
    left: 18px;
    width: 180px;
  }

}

@media (max-width: 1160px) {
  .site-header {
    width: calc(100% - 244px);
    grid-template-columns: 146px 1fr 52px;
  }

  .header-consult {
    width: 52px;
    padding: 0;
    font-size: 0;
  }

  .header-consult::before {
    content: "\f095";
    font: var(--fa-font-solid);
    font-size: 16px;
  }

  .schedule-shell {
    top: 22px;
    width: 156px;
  }

  .schedule-copy small {
    display: none;
  }

  .home-layout {
    grid-template-columns: 1fr .86fr;
    gap: 24px 34px;
  }

  .service-choice {
    grid-template-columns: 44px 1fr;
  }

  .service-choice__link {
    grid-column: 2;
  }

  .section-layout {
    gap: 42px;
  }

  .large-choice {
    min-height: 360px;
    padding: 28px;
  }
}

@media (max-width: 960px) {
  :root {
    --header-height: 66px;
  }

  /* Header móvil */
  .site-header {
    top: 14px;
    width: calc(100% - 28px);
    height: 66px;
    display: flex;
    align-items: center;
    padding: 7px 184px 7px 16px;
    border-radius: 16px;
    transition: background 0.35s ease;
  }

  /* Color de toda la barra según el horario */
  .site-header.is-open {
    background:
      linear-gradient(
        115deg,
        rgb(255 255 255 / 30%),
        rgb(91 151 107 / 16%)
      ),
      var(--glass-fill);
  }

  .site-header.is-closed {
    background:
      linear-gradient(
        115deg,
        rgb(255 255 255 / 30%),
        rgb(178 89 84 / 15%)
      ),
      var(--glass-fill);
  }

  .site-header.is-soon {
    background:
      linear-gradient(
        115deg,
        rgb(255 255 255 / 30%),
        rgb(193 139 66 / 16%)
      ),
      var(--glass-fill);
  }

  /* Logo del header */
  .brand {
    width: min(128px, 100%);
  }

  .brand img {
    width: 100%;
    height: 48px;
    object-fit: contain;
  }

  /* Elementos de escritorio ocultos en móvil */
  .desktop-nav,
  .header-consult,
  .menu-toggle {
    display: none;
  }

  /* Horario integrado dentro del header */
  .schedule-shell {
    position: fixed;
    top: 14px;
    right: 14px;
    left: auto;
    width: 168px;
  }

  .schedule-pill {
    height: 66px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 12px;
    align-items: center;
    gap: 6px;
    padding: 8px 13px 8px 8px;
    border: 0;
    border-radius: 0 16px 16px 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .schedule-pill.liquid-glass::before,
  .schedule-pill::after {
    content: none;
  }

  .schedule-pill.is-open,
  .schedule-pill.is-closed,
  .schedule-pill.is-soon {
    background: transparent;
  }

  .schedule-copy {
    min-width: 0;
    text-align: center;
  }

  .schedule-copy strong {
    display: block;
    font-size: 12px;
    line-height: 1.15;
  }

  .schedule-copy small {
    display: block;
    max-width: 118px;
    margin: 2px auto 0;
    font-size: 9px;
    line-height: 1.2;
    white-space: normal;
  }

  .schedule-popover {
    width: min(340px, calc(100vw - 28px));
  }

  /* Estructura general móvil */
  .page-panel {
    padding-top: 152px;
  }

  .page-container {
    width: min(calc(100% - 36px), 740px);
  }

  .home-layout,
  .section-layout,
  .about-layout,
  .contact-layout {
    min-height: calc(100dvh - 152px);
  }

  /* Inicio */
  .home-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    padding: 38px 0 28px;
  }

  .home-copy {
    max-width: 620px;
  }

  .compass-visual {
    position: relative;
    top: auto;
    right: auto;
    width: min(62vw, 240px);
    margin: -8px auto 0;
    opacity: 1;
  }

  /* Apartados interiores */
  .section-layout,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 38px;
  }

  .contact-layout {
    grid-template-rows: auto auto auto;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-copy {
    align-items: center;
  }
}

@media (max-width: 680px) {
  /* Ajustes del header en móviles pequeños */
  .site-header {
    padding-right: 174px;
  }

  .brand {
    width: 120px;
  }

  .schedule-shell {
    width: 164px;
  }

  .schedule-copy small {
    max-width: 105px;
  }

  /* Contenedor general */
  .page-container {
    width: calc(100% - 28px);
  }

  /* Textos destacados */
  .eyebrow {
    margin-bottom: 16px;
    font-size: 10px;
    letter-spacing: 2px;
  }

  .home-copy h1 {
    font-size: clamp(42px, 13vw, 58px);
    white-space: normal;
  }

  .home-lead {
    margin-top: 18px;
    font-size: 16px;
  }

  /* Acciones de inicio */
  .home-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
  }

  .home-actions .text-link {
    justify-content: space-between;
  }

  /* Servicios */
  .home-services h2 {
    font-size: 22px;
  }

  .service-choice-grid,
  .large-choice-grid {
    grid-template-columns: 1fr;
  }

  .service-choice {
    min-height: 132px;
    grid-template-columns: 38px 1fr;
    gap: 14px;
    padding: 20px;
    border-radius: 14px;
  }

  .service-choice__copy strong {
    font-size: 20px;
  }

  .service-choice__link {
    grid-column: 2;
  }

  /* Apartados interiores */
  .section-layout,
  .about-layout,
  .contact-layout,
  .detail-layout {
    align-content: start;
    padding: 46px 0 30px;
  }

  .section-heading h2,
  .detail-card h2 {
    font-size: 38px;
  }

  .section-heading > p:last-child,
  .detail-card > p:not(.eyebrow) {
    font-size: 15px;
  }

  .large-choice {
    min-height: 300px;
  }

  .detail-card,
  .about-card,
  .contact-card {
    padding: 26px;
  }

  /* Footer */
  .footer-links {
    flex-wrap: wrap;
    gap: 14px 22px;
  }

  /* Pantalla introductoria móvil */
  .mobile-intro {
    position: fixed;
    inset: 0;
    z-index: 600;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding:
      40px
      26px
      max(30px, env(safe-area-inset-bottom));
    background: transparent;
    color: var(--ink);

    transition:
      transform 0.8s cubic-bezier(0.76, 0, 0.24, 1),
      visibility 0.8s;

    touch-action: pan-y;
  }

  .mobile-intro.is-dismissed {
    transform: translateY(-105%);
    visibility: hidden;
  }

  .mobile-intro__wash {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(
        125deg,
        rgb(255 255 255 / 24%),
        transparent 38%
      ),
      linear-gradient(
        180deg,
        transparent 55%,
        rgb(0 0 0 / 14%)
      );
  }

  .mobile-intro__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .mobile-intro__logo {
    width: min(82vw, 330px);
    max-height: 150px;
    object-fit: contain;
  }

  .mobile-intro__content p {
    max-width: 330px;
    margin: 26px 0 30px;
    font-size: 16px;
    line-height: 1.6;
  }

  .mobile-intro__swipe {
    position: absolute;
    bottom: max(26px, env(safe-area-inset-bottom));
    left: 50%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 11px;
    letter-spacing: 1px;
    transform: translateX(-50%);
    cursor: pointer;
  }

  .mobile-intro__swipe i {
    animation: intro-cue 1.6s ease-in-out infinite;
  }

  @keyframes intro-cue {
    0%,
    100% {
      transform: translateY(3px);
      opacity: 0.45;
    }

    50% {
      transform: translateY(-4px);
      opacity: 1;
    }
  }
}

@media (min-width: 681px) {
  .mobile-intro {
    display: none !important;
  }
}

@media (max-height: 950px) and (min-width: 961px) {
  .home-layout {
    padding-top: 28px;
  }

  .home-copy h1 {
    font-size: clamp(48px, 4.4vw, 72px);
  }

  .compass-visual {
    width: min(100%, 430px);
  }

  .service-choice {
    min-height: 122px;
  }
}

/* ================================================================
   EXPERIENCIA MÓVIL
   ================================================================ */

.mobile-bottom-nav,
.mobile-hero-logo,
.mobile-home-about {
  display: none;
}

@media (max-width: 960px) {
  /* Cabecera superior */

  .site-header {
    top: 14px;
    width: calc(100% - 28px);
    height: 66px;
    display: flex;
    align-items: center;
    padding: 7px 182px 7px 14px;
    border-radius: 16px;
  }

  .brand {
    width: min(142px, 100%);
  }

  .brand img {
    width: 100%;
    height: 50px;
    object-fit: contain;
  }

  .desktop-nav,
  .header-consult,
  .menu-toggle,
  .mobile-menu {
    display: none;
  }

  /* Horario integrado */

  .schedule-shell {
    position: fixed;
    top: 14px;
    right: 14px;
    left: auto;
    width: 168px;
  }

  .schedule-pill {
    height: 66px;
    grid-template-columns: 8px minmax(0, 1fr) 10px;
    gap: 8px;
    padding: 8px 11px;
    border: 0;
    border-radius: 0 16px 16px 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .schedule-pill.liquid-glass::before {
    content: none;
  }

  .schedule-pill::after {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 0;
    width: 1px;
    background: rgb(139 117 96 / 20%);
  }

  .schedule-pill.is-open {
    background:
      linear-gradient(
        135deg,
        rgb(96 153 111 / 16%),
        rgb(255 255 255 / 6%)
      );
  }

  .schedule-pill.is-closed {
    background:
      linear-gradient(
        135deg,
        rgb(177 91 86 / 15%),
        rgb(255 255 255 / 6%)
      );
  }

  .schedule-pill.is-soon {
    background:
      linear-gradient(
        135deg,
        rgb(193 139 66 / 16%),
        rgb(255 255 255 / 6%)
      );
  }

  .schedule-copy strong {
    font-size: 10px;
  }

  .schedule-copy small {
    display: block;
    max-width: 118px;
    font-size: 8px;
    line-height: 1.2;
    white-space: normal;
  }

  .schedule-popover {
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    width: min(350px, calc(100vw - 28px));
    max-height: calc(100dvh - 112px);
    overflow-y: auto;
  }

  /* Contenido */

  .page-panel {
    padding-top: 98px;
    padding-bottom: calc(94px + env(safe-area-inset-bottom));
  }

  .home-layout {
    min-height: auto;
    display: block;
    padding: 26px 0 30px;
  }

  .home-copy {
    max-width: none;
  }

  .home-copy > .eyebrow {
    margin-bottom: 8px;
  }

  .home-copy h1,
  .home-actions,
  .compass-visual {
    display: none;
  }

  /* Logo animado */

  .mobile-hero-logo {
    position: relative;
    display: block;
    width: min(100%, 390px);
    aspect-ratio: 4 / 3;
    margin: 4px auto 0;
    perspective: 1300px;
  }

  .mobile-hero-logo__coin {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transform-origin: 50% 50%;
    animation:
      mobile-logo-turn
      8s
      cubic-bezier(.45, .05, .55, .95)
      infinite;
    will-change: transform;
  }

  .mobile-hero-logo__image,
  .mobile-hero-logo__depth,
  .mobile-hero-logo__reflection {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .mobile-hero-logo__image {
    z-index: 4;
    object-fit: contain;
    transform: translateZ(16px);
    user-select: none;
    -webkit-user-drag: none;
  }

  .mobile-hero-logo__depth,
  .mobile-hero-logo__reflection {
    pointer-events: none;
    -webkit-mask:
      var(--mobile-logo-mask)
      center / contain no-repeat;
    mask:
      var(--mobile-logo-mask)
      center / contain no-repeat;
  }

  .mobile-hero-logo__depth--back {
    z-index: 1;
    background: #574538;
    opacity: .28;
    transform: translateZ(-16px);
  }

  .mobile-hero-logo__depth--middle {
    z-index: 2;
    background:
      linear-gradient(
        90deg,
        #5d4939,
        #b69b84 48%,
        #49382d
      );
    opacity: .34;
    transform: translateZ(-7px);
  }

  .mobile-hero-logo__reflection {
    z-index: 5;
    background:
      linear-gradient(
        105deg,
        transparent 36%,
        rgb(255 255 255 / 24%) 48%,
        transparent 61%
      );
    background-size: 230% 100%;
    mix-blend-mode: screen;
    opacity: .28;
    transform: translateZ(20px);
    animation: mobile-logo-reflection 8s ease-in-out infinite;
  }

  .mobile-hero-logo__shadow {
    position: absolute;
    right: 8%;
    bottom: 7%;
    left: 8%;
    height: 5%;
    border-radius: 50%;
    background: rgb(61 47 36 / 27%);
    filter: blur(11px);
    transform: scaleX(.9);
    animation: mobile-logo-shadow 8s ease-in-out infinite;
  }

  .home-lead {
    max-width: 100%;
    margin: 2px 0 0;
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.55;
    text-align: left;
  }

  /* Servicios y Sobre nosotros */

  .home-services {
    margin-top: 36px;
  }

  .mobile-home-about {
    display: block;
    margin-top: 42px;
    padding-top: 38px;
    border-top: 1px solid rgb(139 117 96 / 18%);
  }

  .mobile-home-about > h2 {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
  }

  .mobile-home-about__card {
    padding: 28px;
    border-radius: 16px;
  }

  .mobile-home-about__card p {
    margin: 0 0 16px;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.7;
  }

  .mobile-home-about__more {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition:
      grid-template-rows 0.45s var(--ease-liquid),
      opacity 0.3s ease;
  }

  .mobile-home-about__more > div {
    overflow: hidden;
  }

  .mobile-home-about__more.is-expanded {
    grid-template-rows: 1fr;
    opacity: 1;
  }

  .mobile-home-about__toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
  }

  .mobile-home-about__toggle i {
    font-size: 11px;
    transition: transform 0.3s ease;
  }

  .mobile-home-about__toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
  }

  /* Barra inferior */

  .mobile-bottom-nav {
    --mobile-nav-index: 0;

    position: fixed;
    right: 14px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 14px;
    z-index: 300;

    height: 72px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 7px;
    border-radius: 18px;
  }

  .mobile-bottom-nav__indicator {
    position: absolute;
    top: 7px;
    bottom: 7px;
    left: 7px;
    z-index: 1;
    width: calc((100% - 14px) / 4);
    border: 1px solid rgb(255 255 255 / 70%);
    border-radius: 13px;
    background: rgb(255 255 255 / 22%);

    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 58%),
      0 7px 18px rgb(76 58 43 / 9%);

    transform:
      translateX(
        calc(var(--mobile-nav-index) * 100%)
      );

    transition:
      transform
      .48s
      cubic-bezier(.22, 1, .36, 1);
  }

  .mobile-bottom-nav a {
    position: relative;
    z-index: 2;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--ink-soft);
    font-size: 10px;
    font-weight: 500;
  }

  .mobile-bottom-nav a i {
    font-size: 17px;
  }

  .mobile-bottom-nav a[aria-current="page"] {
    color: var(--ink);
  }

  @keyframes mobile-logo-turn {
    0%,
    100% {
      transform: rotateY(-5deg);
    }

    50% {
      transform: rotateY(2.5deg);
    }
  }

  @keyframes mobile-logo-reflection {
    0%,
    100% {
      background-position: 130% 0;
      opacity: .18;
    }

    50% {
      background-position: -30% 0;
      opacity: .3;
    }
  }

  @keyframes mobile-logo-shadow {
    0%,
    100% {
      opacity: .68;
      transform: scaleX(.88);
    }

    50% {
      opacity: .86;
      transform: scaleX(.96);
    }
  }
}

@media (max-width: 680px) {
  .site-header {
    padding-right: 174px;
  }

  .brand {
    width: 120px;
  }

  .schedule-shell {
    width: 164px;
  }

  .schedule-copy small {
    max-width: 105px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
