/* ============================================================
   COFFRUT — styles.css
   Paleta de marca: morado vibrante + amarillo + crema
   ============================================================ */

:root {
  /* Colores */
  --morado-950: #1c0533;
  --morado-900: #2c0a4e;
  --morado-700: #6d12c9;   /* color del logo */
  --morado-500: #8b2fe0;
  --morado-300: #c08bf5;
  --amarillo:   #ffd428;
  --amarillo-d: #e8b800;
  --rosa:       #d6359c;   /* acento de la carta */
  --crema:      #faf7ff;
  --blanco:     #ffffff;
  --tinta:      #241433;
  --tinta-60:   rgba(36, 20, 51, 0.65);

  /* Tipografía */
  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Nunito Sans', system-ui, sans-serif;

  /* Otros */
  --radius: 22px;
  --shadow: 0 12px 32px rgba(44, 10, 78, 0.14);
  --shadow-lg: 0 20px 50px rgba(44, 10, 78, 0.22);
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  font-family: var(--font-body);
  color: var(--tinta);
  background: var(--crema);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--morado-700); }

.container { width: min(1140px, 92%); margin-inline: auto; }

/* ============ Utilidades de sección ============ */
.section-eyebrow {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--rosa);
  margin-bottom: 0.4rem;
}
.section-eyebrow--light { color: var(--amarillo); }

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.12;
  color: var(--morado-900);
  margin-bottom: 1.2rem;
}
.section-title--light { color: var(--blanco); }

/* ============ Botones ============ */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  will-change: transform;
}
.btn:hover { transform: translateY(-3px) scale(1.02); }
.btn:active { transform: translateY(-1px) scale(0.99); }

.btn--yellow {
  background: var(--amarillo);
  color: var(--morado-950);
  box-shadow: 0 8px 24px rgba(255, 212, 40, 0.35);
}
.btn--yellow:hover { background: #ffdf5c; box-shadow: 0 14px 32px rgba(255, 212, 40, 0.45); }

.btn--ghost {
  color: var(--blanco);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }

.btn--sm { padding: 0.55rem 1.3rem; font-size: 0.92rem; }

/* ============ PANTALLA DE CARGA ============ */
.splash {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-content: center;
  gap: 1.6rem;
  background:
    radial-gradient(900px 600px at 50% 30%, var(--morado-500), transparent 60%),
    linear-gradient(160deg, var(--morado-700), var(--morado-950));
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.splash--out { opacity: 0; visibility: hidden; pointer-events: none; }

.splash__logo {
  position: relative;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 10vw, 5.5rem);
  color: var(--blanco);
  line-height: 1;
  animation: splashPulse 1.8s ease-in-out infinite;
}
.splash__logo span { color: var(--amarillo); }
.splash__swoosh {
  position: absolute;
  left: 4%; bottom: -12px;
  width: 92%;
}
.splash__path {
  stroke-dasharray: 460;
  stroke-dashoffset: 460;
  animation: drawSwoosh 1.1s ease-out 0.2s forwards;
}
@keyframes splashPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.035); }
}

.splash__dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
}
.splash__dots span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--amarillo);
  animation: dotBounce 1.1s ease-in-out infinite;
}
.splash__dots span:nth-child(2) { animation-delay: 0.15s; }
.splash__dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dotBounce {
  0%, 100% { transform: translateY(0);    opacity: 0.5; }
  50%      { transform: translateY(-10px); opacity: 1; }
}

/* ============ NAVBAR ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.nav--solid {
  background: rgba(28, 5, 51, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__logo {
  position: relative;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--blanco);
  text-decoration: none;
  line-height: 1;
}
.nav__logo-u { color: var(--amarillo); }
.nav__swoosh {
  position: absolute;
  left: 2px; bottom: -8px;
  width: 92%;
  color: var(--amarillo);
}

.nav__links {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
}
.nav__links a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  position: relative;
  padding-block: 4px;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: var(--amarillo);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}
.nav__links a:hover::after,
.nav__links a.active::after { transform: scaleX(1); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav__burger span {
  width: 26px; height: 3px;
  border-radius: 3px;
  background: var(--blanco);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  color: var(--blanco);
  background:
    radial-gradient(1100px 700px at 50% 0%, var(--morado-500), transparent 60%),
    radial-gradient(900px 600px at 85% 90%, #4a0d8f, transparent 55%),
    linear-gradient(160deg, var(--morado-700) 0%, var(--morado-900) 55%, var(--morado-950) 100%);
}

/* Blobs flotantes */
.hero__blobs { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: blobFloat 14s ease-in-out infinite;
}
.blob--1 { width: 340px; height: 340px; background: #ff8c42; top: 8%;  left: -6%; }
.blob--2 { width: 260px; height: 260px; background: var(--amarillo); bottom: 12%; right: -4%; animation-delay: -4s; }
.blob--3 { width: 220px; height: 220px; background: var(--rosa); top: 55%; left: 12%; animation-delay: -8s; }
.blob--4 { width: 180px; height: 180px; background: #36d399; top: 18%; right: 16%; animation-delay: -11s; }

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -40px) scale(1.08); }
  66%      { transform: translate(-25px, 25px) scale(0.94); }
}

/* Partículas (emojis de fruta) generadas por JS */
.hero__particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.particle {
  position: absolute;
  bottom: -60px;
  font-size: var(--size, 26px);
  opacity: 0;
  animation: rise var(--dur, 16s) linear infinite;
  animation-delay: var(--delay, 0s);
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25));
}
@keyframes rise {
  0%   { transform: translateY(0) rotate(0deg);        opacity: 0; }
  8%   { opacity: 0.85; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(-115vh) rotate(340deg); opacity: 0; }
}

.hero__content { position: relative; z-index: 2; padding-block: 7rem 9rem; }

.hero__eyebrow {
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--amarillo);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.15s forwards;
}

.hero__title {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 13vw, 9rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-block: 0.6rem 0.4rem;
  opacity: 0;
  animation: popIn 0.9s cubic-bezier(0.22, 1.4, 0.36, 1) 0.35s forwards;
}
.hero__title-u { color: var(--amarillo); }

.hero__swoosh {
  position: absolute;
  left: 4%; bottom: -14px;
  width: 92%;
}
#swooshPath {
  stroke-dasharray: 460;
  stroke-dashoffset: 460;
  animation: drawSwoosh 1s ease-out 1.1s forwards;
}
@keyframes drawSwoosh { to { stroke-dashoffset: 0; } }

.hero__sub {
  max-width: 520px;
  margin-inline: auto;
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.86);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.7s forwards;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.95s forwards;
}

.hero__wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  line-height: 0;
}
.hero__wave svg { width: 100%; height: 90px; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}

/* ============ STATS ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-block: 3.5rem 1rem;
  text-align: center;
}
.stats__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--morado-700);
}
.stats__label {
  font-weight: 700;
  color: var(--tinta-60);
  font-size: 0.92rem;
}

/* ============ NOSOTROS ============ */
.about {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: 5rem;
}

/* Collage: contenedor con proporción fija y tarjetas en %
   → siempre queda contenido, nunca se monta sobre el texto */
.about__media {
  position: relative;
  width: min(440px, 100%);
  aspect-ratio: 1 / 1.08;
  margin-inline: auto;
}
.about__glow {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 212, 40, 0.55), rgba(139, 47, 224, 0.25) 60%, transparent 75%);
  filter: blur(30px);
  animation: blobFloat 12s ease-in-out infinite;
}
.about__card {
  position: absolute;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--blanco);
  border-radius: var(--radius);
  border: 5px solid var(--blanco);
  box-shadow: var(--shadow-lg);
}
.about__card img { width: 100%; height: 100%; object-fit: cover; }
.about__card.sin-foto { font-size: 3rem; }
.about__card--big {
  inset: 9% 15% 9% 21%;
  transform: rotate(-3deg);
  z-index: 1;
}
.about__card--top {
  top: 0; right: 0;
  width: 36%;
  aspect-ratio: 1;
  z-index: 2;
  animation: floatTop 5s ease-in-out infinite;
}
.about__card--bottom {
  bottom: 2%; left: 0;
  width: 32%;
  aspect-ratio: 1;
  z-index: 2;
  animation: floatBottom 6s ease-in-out -2.5s infinite;
}
@keyframes floatTop {
  0%, 100% { transform: rotate(5deg) translateY(0); }
  50%      { transform: rotate(5deg) translateY(-10px); }
}
@keyframes floatBottom {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50%      { transform: rotate(-6deg) translateY(-8px); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

.about__text p { margin-bottom: 1rem; color: var(--tinta-60); font-size: 1.04rem; }
.about__text strong { color: var(--morado-700); }

.about__pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}
.about__pills button {
  font: inherit;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--tinta);
  background: var(--blanco);
  border: 2px solid #efe6fb;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.about__pills button:hover,
.about__pills button:focus-visible {
  transform: translateY(-3px);
  border-color: var(--morado-300);
  box-shadow: 0 8px 18px rgba(109, 18, 201, 0.15);
}

/* ============ CARRUSEL FAVORITOS ============ */
.favs {
  background:
    radial-gradient(800px 500px at 15% 10%, rgba(139, 47, 224, 0.35), transparent 60%),
    linear-gradient(165deg, var(--morado-900), var(--morado-950));
  padding-block: 5rem 4rem;
  overflow: hidden;
}

.carousel {
  position: relative;
  margin-top: 2.5rem;
}
.carousel__viewport {
  overflow: hidden;
  width: min(1140px, 92%);
  margin-inline: auto;
  cursor: grab;
}
.carousel__viewport.dragging { cursor: grabbing; }

.carousel__track {
  display: flex;
  gap: 1.4rem;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.fav-card {
  flex: 0 0 calc((100% - 2.8rem) / 3);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--blanco);
  backdrop-filter: blur(6px);
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
  user-select: none;
}
.fav-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 212, 40, 0.5);
}
/* Imagen como banner grande en la parte superior */
.fav-card__emoji {
  display: grid;
  place-items: center;
  width: 100%;
  height: 200px;
  font-size: 4rem;
  background: linear-gradient(145deg, var(--morado-500), var(--rosa));
  border-bottom: 3px solid var(--amarillo);
}
.fav-card__emoji img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.fav-card__body { padding: 1.2rem 1.4rem 1.5rem; }
.fav-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.fav-card p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
  min-height: 3em;
}
.fav-card__price {
  display: inline-block;
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--amarillo);
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
  background: var(--amarillo);
  color: var(--morado-950);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, background 0.25s ease;
}
.carousel__btn:hover { transform: translateY(-50%) scale(1.12); background: #ffdf5c; }
.carousel__btn--prev { left: clamp(4px, 2vw, 24px); }
.carousel__btn--next { right: clamp(4px, 2vw, 24px); }

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.8rem;
}
.carousel__dots button {
  width: 10px; height: 10px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.3);
  transition: width 0.3s ease, background 0.3s ease;
}
.carousel__dots button.active {
  width: 28px;
  background: var(--amarillo);
}

/* ============ CARTA ============ */
.menu { padding-block: 5rem; }

.menu__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-block: 1.8rem 2.2rem;
}
.menu__tab {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  border: 2px solid #e9defa;
  background: var(--blanco);
  color: var(--morado-900);
  cursor: pointer;
  transition: all 0.28s ease;
}
.menu__tab:hover { border-color: var(--morado-300); transform: translateY(-2px); }
.menu__tab.active {
  background: var(--morado-700);
  border-color: var(--morado-700);
  color: var(--blanco);
  box-shadow: 0 8px 20px rgba(109, 18, 201, 0.3);
}

.menu__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.4rem;
}

.dish {
  background: var(--blanco);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  animation: dishIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i) * 60ms);
}
@keyframes dishIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.dish:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.dish__img {
  height: 150px;
  display: grid;
  place-items: center;
  font-size: 3.6rem;
  background: linear-gradient(145deg, #f3e9ff, #ffeefb);
  border-bottom: 4px solid var(--rosa);
  transition: transform 0.4s ease;
  overflow: hidden;
}
.dish__img img { width: 100%; height: 100%; object-fit: cover; }
.fav-card__emoji img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 20px;
}
.dish:hover .dish__img { transform: scale(1.06); }

.dish__body { padding: 1.1rem 1.2rem 1.3rem; }
.dish__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
}
.dish__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--morado-900);
  line-height: 1.25;
}
.dish__price {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--rosa);
  white-space: nowrap;
}
.dish__desc {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--tinta-60);
}

.menu__note {
  margin-top: 2.2rem;
  text-align: center;
  color: var(--tinta-60);
  font-size: 0.95rem;
}

/* ============ SEDES ============ */
.visit {
  background: linear-gradient(160deg, var(--morado-700), var(--morado-950));
  color: var(--blanco);
  padding-block: 5rem;
}
.visit__intro {
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  margin-bottom: 2rem;
}

.sedes__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

.sede-card {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(6px);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.sede-card:hover { transform: translateY(-6px); }
.sede-card--activa {
  border-color: var(--amarillo);
  box-shadow: 0 16px 40px rgba(255, 212, 40, 0.18);
}
.sede-card__badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  background: var(--amarillo);
  color: var(--morado-950);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
.sede-card__map { height: 220px; }
.sede-card__map iframe {
  width: 100%; height: 100%;
  border: 0;
  display: block;
  filter: saturate(0.9);
}
.sede-card__body { padding: 1.3rem 1.5rem 1.6rem; }
.sede-card__body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--amarillo);
}
.sede-card__dir { font-weight: 700; margin-top: 0.3rem; }
.sede-card__ref { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }
.sede-card__actions { margin-top: 1rem; }

.visit__extra {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.6rem;
}
.visit__block h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: var(--amarillo);
}
.visit__block p, .visit__hours { color: rgba(255, 255, 255, 0.85); }
.visit__hours { border-collapse: collapse; }
.visit__hours td { padding: 0.25rem 0; }
.visit__hours td:first-child { padding-right: 2rem; font-weight: 700; }
.visit__social { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 0.4rem; }

/* ============ BARRA DE SEDE EN LA CARTA ============ */
.menu__sede {
  position: relative;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  background: var(--blanco);
  border: 2px solid #efe6fb;
  border-left: 6px solid var(--amarillo);
  border-radius: 16px;
  padding: 0.9rem 1.3rem;
  margin-top: 1.6rem;
  box-shadow: var(--shadow);
}
.menu__sede strong { color: var(--morado-700); }
.menu__sede-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.menu__sede-cambiar {
  font: inherit;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--rosa);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem 0;
}
.menu__sede-cambiar:hover { text-decoration: underline; }

/* Desplegable de sedes */
.sede-drop { position: relative; }
.sede-drop__list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  min-width: 280px;
  list-style: none;
  background: var(--blanco);
  border: 2px solid #efe6fb;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  animation: dropIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.sede-drop__list button {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  font-weight: 800;
  color: var(--morado-900);
  background: none;
  border: none;
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  transition: background 0.18s ease;
}
.sede-drop__list button:hover { background: #f6efff; }
.sede-drop__list button.activa { color: var(--morado-700); background: #f3e9ff; }
.sede-drop__list button small {
  display: block;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--tinta-60);
}
.sede-drop__ver {
  border-top: 1px solid #f0e8fb;
  margin-top: 0.3rem;
  padding-top: 0.3rem;
}
.sede-drop__ver a {
  display: block;
  padding: 0.55rem 0.8rem;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--rosa);
  text-decoration: none;
  border-radius: 10px;
}
.sede-drop__ver a:hover { background: #fff0f9; }

/* ============ FOOTER ============ */
.footer {
  background: var(--morado-950);
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  padding-block: 2.6rem;
}
.footer__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--blanco);
  text-decoration: none;
}
.footer__logo span { color: var(--amarillo); }
.footer p { margin-top: 0.4rem; font-size: 0.94rem; }
.footer__copy { opacity: 0.6; font-size: 0.85rem !important; }
.footer__social { margin-top: 0.6rem; display: flex; justify-content: center; gap: 0.6rem; }
.footer__social a {
  color: var(--amarillo);
  font-weight: 800;
  text-decoration: none;
}
.footer__social a:hover { text-decoration: underline; }
.footer__social span { opacity: 0.5; }

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal--delay-1 { transition-delay: 0.15s; }
.reveal.visible { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about__media { order: -1; max-width: 380px; }
  .sedes__grid { grid-template-columns: 1fr; }
  .visit__extra { grid-template-columns: 1fr; gap: 1.2rem; }
  .fav-card { flex-basis: calc((100% - 1.4rem) / 2); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
}

@media (max-width: 640px) {
  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(28, 5, 51, 0.97);
    backdrop-filter: blur(14px);
    padding-block: 0.5rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .nav__links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav__links a { padding: 0.9rem 6%; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .fav-card { flex-basis: 100%; }
  .sede-drop { position: static; }
  .sede-drop__list { left: 12px; right: 12px; min-width: 0; }
  /* En móvil se navega deslizando (swipe) + puntos; las flechas tapaban la tarjeta */
  .carousel__btn { display: none; }

}

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