:root {
  --brand: #0099FF;
  --brand-dark: #006699;
  --bg: #E9EDEF;
  --ink: #474747;
  --footer: #333;
}

html {
  scroll-behavior: smooth;
}

/* —— Cabecera / menú (CSS propio; compatible Firefox) —— */
.site-header {
  position: relative;
  z-index: 40;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(233, 237, 239, 0.9)),
    radial-gradient(120% 80% at 0% 0%, rgba(0, 153, 255, 0.1), transparent 55%);
  border-bottom: 1px solid rgba(0, 102, 153, 0.12);
}

.site-header-bar {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand toggle"
    "nav nav";
  align-items: center;
  column-gap: 0.75rem;
  row-gap: 0.5rem;
}

.site-brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.site-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 3px 12px rgba(0, 102, 153, 0.12);
  flex-shrink: 0;
}

.site-brand-mark img {
  display: block;
  height: 3rem;
  width: auto;
}

.site-brand-text {
  min-width: 0;
  overflow: hidden;
}

.site-brand-name {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-brand-tag {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: rgba(71, 71, 71, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav-toggle {
  grid-area: toggle;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.75rem;
  background: #333;
  color: #fff;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  cursor: pointer;
}

.site-nav-toggle-bar {
  display: block;
  width: 1.1rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav-toggle[aria-expanded="true"] .site-nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav-toggle[aria-expanded="true"] .site-nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-nav-toggle[aria-expanded="true"] .site-nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  grid-area: nav;
  display: none;
  width: 100%;
}

.site-header.is-nav-open .site-nav {
  display: block;
}

.site-nav-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  gap: 0.2rem;
  border-radius: 1rem;
  background: #222;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.site-nav-list > li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav-sep {
  height: 1px;
  margin: 0.25rem 0.35rem;
  background: rgba(255, 255, 255, 0.12);
  flex: none;
}

.site-nav-link {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: 0.65rem;
  color: #e2e8f0;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav-link:hover {
  background: rgba(0, 153, 255, 0.25);
  color: #fff;
}

.site-nav-link.is-active {
  background: var(--brand);
  color: #fff;
}

.site-nav-link--accent {
  color: #fcd34d;
}

.site-nav-link--accent:hover {
  background: rgba(251, 191, 36, 0.2);
  color: #fde68a;
}

.site-nav-link--accent.is-active {
  background: #fbbf24;
  color: #1f2937;
}

.site-nav-link--admin {
  color: #fdba74;
}

.site-nav-link--admin:hover {
  background: rgba(251, 146, 60, 0.2);
  color: #fed7aa;
}

.site-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav-cta:hover {
  background: var(--brand-dark);
}

/* Escritorio: logo izq. + menú horizontal a la derecha */
@media (min-width: 960px) {
  .site-header-bar {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "brand nav";
    column-gap: 1rem;
  }

  .site-nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    width: auto;
    justify-self: end;
    max-width: 100%;
  }

  .site-nav-list {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    width: max-content;
    max-width: 100%;
    margin: 0;
    padding: 0.28rem;
    gap: 0.08rem;
    overflow-x: auto;
  }

  .site-nav-sep {
    width: 1px;
    height: 1.25rem;
    margin: 0 0.25rem;
    align-self: center;
  }

  .site-nav-link {
    padding: 0.4rem 0.62rem;
    font-size: 0.78rem;
  }

  .site-nav-cta {
    width: auto;
  }

  .site-brand-mark img {
    height: 3.25rem;
  }

  .site-brand-name {
    font-size: 1.35rem;
  }
}

@media (min-width: 1200px) {
  .site-nav-link {
    padding: 0.45rem 0.78rem;
    font-size: 0.84rem;
  }
}

.hero-slider {
  position: relative;
  overflow: hidden;
  background: #0b1c28;
  min-height: min(72vh, 560px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.hero-slide img {
  width: 100%;
  height: min(72vh, 560px);
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 1rem 2.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  color: #fff;
}

.hero-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 5;
}

.hero-dots button {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  border: 0;
  cursor: pointer;
}

.hero-dots button.is-active {
  background: var(--brand);
  width: 1.4rem;
}

.memory-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.memory-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 102, 153, 0.12);
}

.memory-wall-locked {
  isolation: isolate;
}

.memory-wall-blur {
  filter: blur(7px);
  opacity: 0.72;
  user-select: none;
  pointer-events: none;
}

.memory-wall-gate {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.15), rgba(248, 250, 252, 0.72));
  z-index: 1;
}

.memory-wall-gate-card {
  max-width: 26rem;
  width: 100%;
  text-align: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.memory-card-preview {
  min-height: 8.5rem;
}

.memory-teaser-fade {
  pointer-events: none;
  height: 2.25rem;
  margin: 0.35rem -1.25rem -0.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 85%);
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fade-up 0.6s ease both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
