/* ============================================================
   Altice · Madres 2026 — approval gallery
   ============================================================ */

@font-face {
  font-family: "Altice";
  src: url("resources/madres/typeface/Altice%20Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Altice";
  src: url("resources/madres/typeface/Altice%20Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Altice";
  src: url("resources/madres/typeface/Altice%20Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-900: #050a33;
  --navy-800: #0a1250;
  --navy-700: #121c6b;
  --navy-600: #1a2a8a;
  --ink: #0b1450;

  --cyan: #00b9e8;
  --cyan-bright: #34d2ff;
  --cyan-deep: #0082c8;

  --lime: #e5f60c;
  --pink: #ff4fa3;
  --magenta: #e71e8c;

  --white: #ffffff;
  --fog: rgba(255, 255, 255, 0.72);
  --mist: rgba(255, 255, 255, 0.52);
  --haze: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.1);

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.35);

  --font-sans: "Altice", "Inter", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --nav-h: 64px;
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-sans);
  color: var(--white);
  background:
    radial-gradient(
      1200px 800px at 85% -10%,
      rgba(0, 185, 232, 0.28),
      transparent 60%
    ),
    radial-gradient(
      900px 700px at -10% 110%,
      rgba(231, 30, 140, 0.22),
      transparent 55%
    ),
    linear-gradient(180deg, #060b3a 0%, #030724 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.005em;
}
body.locked {
  overflow: hidden;
}
body.modal-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Password gate ---------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(
      600px 400px at 50% 0%,
      rgba(0, 185, 232, 0.18),
      transparent 70%
    ),
    linear-gradient(180deg, #040836 0%, #020520 100%);
}
.gate-card {
  width: 100%;
  max-width: 460px;
  padding: 40px 36px 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.gate-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.gate-brand img {
  height: 28px;
  width: auto;
}
.gate-eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-bright);
  margin-bottom: 10px;
}
.gate-title {
  font-size: 36px;
  line-height: 1;
  font-weight: 700;
  margin: 0 0 14px;
}
.gate-body {
  color: var(--fog);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 22px;
}
.gate-form {
  display: grid;
  gap: 10px;
}
.gate-form input {
  font-family: inherit;
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border: 1px solid var(--stroke);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.gate-form input:focus {
  border-color: var(--cyan);
  background: rgba(0, 185, 232, 0.08);
}
.gate-form button {
  padding: 13px 16px;
  border-radius: var(--radius-md);
  background: var(--cyan);
  color: #00263a;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: transform 0.1s, background 0.15s;
}
.gate-form button:hover {
  background: var(--cyan-bright);
}
.gate-form button:active {
  transform: translateY(1px);
}
.gate-error {
  min-height: 18px;
  font-size: 13px;
  color: var(--pink);
}
.gate-footer {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  color: var(--mist);
  letter-spacing: 0.04em;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(4, 8, 42, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--stroke);
}
.topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 24px;
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--fog);
}
.topbar-brand img {
  height: 22px;
}
.topbar-brand span {
  padding-left: 12px;
  border-left: 1px solid var(--stroke);
}
.topbar-nav {
  display: flex;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.topbar-nav::-webkit-scrollbar {
  display: none;
}
.topbar-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--fog);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.topbar-nav a:hover {
  background: var(--glass);
  color: var(--white);
}
.topbar-nav a.active {
  background: rgba(0, 185, 232, 0.18);
  color: var(--cyan-bright);
}
.topbar-nav .count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--cyan);
  color: #001524;
  font-weight: 700;
  font-size: 11px;
  display: inline-grid;
  place-items: center;
}
.topbar-nav a.active .count {
  background: var(--lime);
  color: #1a1a00;
}
.topbar-actions {
  display: flex;
  gap: 8px;
}
.btn-ghost {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--fog);
  border: 1px solid var(--stroke);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-ghost:hover {
  background: var(--glass);
  color: var(--white);
}
.btn-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--cyan);
  color: #001524;
  font-weight: 700;
  font-size: 12px;
  display: inline-grid;
  place-items: center;
}

/* ---------- Hero ---------- */
.hero {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 28px 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-bright);
  margin-bottom: 24px;
}
.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
}
.hero-title {
  font-weight: 700;
  font-size: clamp(64px, 11vw, 160px);
  line-height: 0.88;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}
.hero-year {
  display: inline-block;
  background: linear-gradient(95deg, var(--cyan-bright) 0%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  max-width: 52ch;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.55;
  color: var(--fog);
  margin: 0 0 32px;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.stat-chip {
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--stroke);
  font-size: 13px;
  color: var(--fog);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.stat-chip b {
  color: var(--white);
  font-size: 15px;
}

.hero-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(
      400px 300px at 80% 20%,
      rgba(0, 185, 232, 0.45),
      transparent 60%
    ),
    linear-gradient(160deg, #0c2e7c 0%, #07114e 60%, #050a33 100%);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  isolation: isolate;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(transparent 95%, rgba(255, 255, 255, 0.06) 95%),
    linear-gradient(90deg, transparent 95%, rgba(255, 255, 255, 0.06) 95%);
  background-size: 40px 40px;
  opacity: 0.4;
  pointer-events: none;
}
.hero-bubble {
  position: absolute;
  padding: 12px 18px;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(180deg, #2b7cff 0%, #0f47dd 100%);
  border-radius: 22px 22px 22px 6px;
  box-shadow: 0 10px 30px rgba(0, 40, 150, 0.4);
  animation: float 6s ease-in-out infinite;
}
.hero-bubble-a {
  top: 12%;
  left: 8%;
}
.hero-bubble-b {
  top: 40%;
  left: 20%;
  background: linear-gradient(180deg, var(--cyan-bright) 0%, var(--cyan-deep) 100%);
  color: #001524;
  border-radius: 22px 22px 6px 22px;
  animation-delay: -1.5s;
}
.hero-bubble-c {
  top: 68%;
  left: 14%;
  animation-delay: -3s;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.hero-tag {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.hero-tag em {
  font-style: italic;
  color: var(--pink);
}

.hero-scripts {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.script-chip {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--glass);
  border: 1px solid var(--stroke);
  font-size: 13px;
  color: var(--fog);
  display: flex;
  align-items: center;
  gap: 10px;
}
.script-chip b {
  color: var(--cyan-bright);
  font-size: 12px;
  letter-spacing: 0.1em;
}

/* ---------- Section ---------- */
.section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 28px;
  scroll-margin-top: calc(var(--nav-h) + 8px);
}
.section + .section {
  border-top: 1px solid var(--stroke);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.section-eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-bright);
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}
.section-sub {
  max-width: 66ch;
  margin: 12px 0 0;
  color: var(--fog);
  font-size: 15px;
  line-height: 1.55;
}
.section-meta {
  font-size: 13px;
  color: var(--mist);
  display: flex;
  gap: 14px;
  align-items: center;
}
.section-meta b {
  color: var(--white);
}

.group-head {
  margin: 40px 0 16px;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-top: 1px dashed var(--stroke);
}
.group-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--cyan-bright);
  letter-spacing: 0.02em;
}
.group-count {
  font-size: 12px;
  color: var(--mist);
}

.grid {
  display: grid;
  gap: 20px;
}
.grid.portrait {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.grid.landscape {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.grid.square {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* ---------- Card ---------- */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--stroke);
  cursor: zoom-in;
  transition: transform 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 185, 232, 0.4);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}
.card-media {
  position: relative;
  width: 100%;
  background: #0a1240;
  overflow: hidden;
}
.grid.portrait .card-media {
  aspect-ratio: 3 / 4;
}
.grid.landscape .card-media {
  aspect-ratio: 16 / 10;
}
.grid.square .card-media {
  aspect-ratio: 1 / 1;
}
.card.is-overlay .card-media {
  background:
    repeating-conic-gradient(
      rgba(255, 255, 255, 0.03) 0 25%,
      transparent 0 50%
    ) 50% 50% / 24px 24px;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card.is-overlay .card-media img {
  object-fit: contain;
  padding: 18%;
}
.card:hover .card-media img {
  transform: scale(1.04);
}
.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 12px;
}
.card-id {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
}
.card-fav {
  --sz: 34px;
  width: var(--sz);
  height: var(--sz);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  color: var(--fog);
  display: grid;
  place-items: center;
  transition: transform 0.12s, background 0.15s, color 0.15s,
    border-color 0.15s;
}
.card-fav:hover {
  color: var(--pink);
  border-color: var(--pink);
  transform: scale(1.06);
}
.card.selected {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(0, 185, 232, 0.35),
    0 14px 40px rgba(0, 0, 0, 0.4);
}
.card.selected .card-fav {
  background: var(--pink);
  color: #2a0013;
  border-color: var(--pink);
}
.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--cyan);
  color: #001524;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s;
}
.card.selected .card-badge {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(2, 5, 25, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: grid;
  place-items: center;
  padding: 32px;
}
.lb-figure {
  margin: 0;
  max-width: 92vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lb-figure img {
  max-width: 92vw;
  max-height: 72vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}
.lb-figure figcaption {
  font-size: 13px;
  color: var(--fog);
  letter-spacing: 0.04em;
}
.lb-close,
.lb-prev,
.lb-next {
  position: fixed;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--stroke);
  color: var(--white);
  font-size: 28px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.15s;
}
.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
  background: rgba(255, 255, 255, 0.16);
}
.lb-close {
  top: 24px;
  right: 24px;
  font-size: 32px;
}
.lb-prev {
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
}
.lb-next {
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
}
.lb-actions {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
}
.lb-fav {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--stroke);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  transition: background 0.15s;
}
.lb-fav:hover {
  background: rgba(255, 79, 163, 0.2);
  border-color: var(--pink);
  color: var(--pink);
}
.lb-fav.is-selected {
  background: var(--pink);
  border-color: var(--pink);
  color: #2a0013;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--stroke);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  color: var(--white);
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity 0.2s, transform 0.2s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Footer ---------- */
.footer {
  padding: 40px 28px;
  border-top: 1px solid var(--stroke);
  margin-top: 40px;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--mist);
  letter-spacing: 0.04em;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-card {
    max-width: 440px;
    order: -1;
  }
  .hero-scripts {
    grid-template-columns: 1fr 1fr;
  }
  .topbar-brand span {
    display: none;
  }
}
@media (max-width: 640px) {
  .hero {
    padding: 56px 18px 24px;
  }
  .section {
    padding: 56px 18px;
  }
  .hero-scripts {
    grid-template-columns: 1fr;
  }
  .topbar-inner {
    padding: 0 14px;
  }
  .btn-ghost {
    padding: 8px 10px;
    font-size: 12px;
  }
  .lb-close,
  .lb-prev,
  .lb-next {
    width: 44px;
    height: 44px;
    font-size: 24px;
  }
}
