/* ── My Kinder · Design tokens ── */
:root {
  --cream: #faf7f2;
  --cream-dark: #f0ebe3;
  --logo-bg: #fdf5f3;
  --sage: #6b9e4e;
  --sage-dark: #5a8640;
  --sage-light: #8fbc6a;
  --sage-blob: #7cb342;
  --pink: #e8788a;
  --pink-soft: #f4c4cc;
  --yellow: #f5c842;
  --orange: #f0a030;
  --blue: #5b9fd4;
  --purple: #b07cc6;
  --text: #2c2c2c;
  --text-soft: #5a5a5a;
  --white: #ffffff;
  --shadow: 0 8px 32px rgba(44, 44, 44, 0.08);
  --shadow-lg: 0 20px 60px rgba(44, 44, 44, 0.12);
  --radius: 20px;
  --radius-sm: 12px;
  --font: 'Nunito', system-ui, sans-serif;
  --script: 'Caveat', cursive;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* Grain sutil */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  background: rgba(253, 245, 243, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: box-shadow 0.4s var(--ease);
}

.header.scrolled { box-shadow: var(--shadow); }

.logo {
  display: flex;
  align-items: center;
  line-height: 1;
}

.logo-img {
  height: 58px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  display: block;
  border-radius: 10px;
  background: var(--logo-bg);
}

.logo-img--sm {
  height: 48px;
  max-width: 108px;
}

.logo-my {
  font-family: var(--script);
  font-size: 1.1rem;
  color: var(--pink);
  font-weight: 600;
}

.logo-kinder {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.k { display: inline-block; }
.k-g { color: var(--sage); }
.k-i { color: var(--yellow); }
.k-n { color: var(--orange); }
.k-d { color: var(--pink); }
.k-e { color: var(--purple); }
.k-r { color: var(--blue); }

.logo-sub {
  font-family: var(--script);
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-top: 2px;
}

.logo--sm .logo-kinder { font-size: 1.1rem; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: color 0.25s;
}

.nav a:hover { color: var(--sage-dark); }

.nav-portal {
  background: var(--sage);
  color: var(--white) !important;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  transition: background 0.25s, transform 0.25s !important;
}

.nav-portal:hover {
  background: var(--sage-dark);
  transform: translateY(-1px);
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.menu-btn.open span:first-child { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:last-child { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--cream);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transform: translateY(-110%);
  transition: transform 0.4s var(--ease);
}

.mobile-nav.open { transform: translateY(0); }
.mobile-nav a { font-weight: 700; font-size: 1.1rem; padding: 0.5rem 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--sage);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(107, 158, 78, 0.35);
}

.btn-primary:hover {
  background: var(--sage-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(107, 158, 78, 0.4);
}

.btn-ghost {
  background: rgba(255,255,255,0.7);
  color: var(--text);
  border: 1.5px solid rgba(0,0,0,0.08);
  backdrop-filter: blur(4px);
}

.btn-ghost:hover { background: var(--white); }

.btn-block { width: 100%; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 2rem) clamp(1.25rem, 5vw, 3rem) 3rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--cream-dark);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1.1s var(--ease), transform 6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    105deg,
    rgba(20, 30, 15, 0.72) 0%,
    rgba(20, 30, 15, 0.35) 45%,
    rgba(20, 30, 15, 0.55) 100%
  );
}

.hero-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 0.45rem;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: transform 0.25s, background 0.25s;
}

.hero-dot.is-active {
  background: var(--white);
  transform: scale(1.25);
}

/* Carrusel rápido bajo hero */
.foto-carrusel {
  overflow: hidden;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 0.65rem 0;
}

.foto-carrusel-track {
  display: flex;
  gap: 0.55rem;
  width: max-content;
  will-change: transform;
}

.foto-carrusel-track img {
  width: clamp(100px, 18vw, 140px);
  height: clamp(130px, 22vw, 175px);
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}

@keyframes carruselScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* IG Reels grid */
.ig-reels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ig-reel-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  min-height: 480px;
}

.ig-reel-item iframe {
  width: 100%;
  height: 520px;
  border: 0;
  display: block;
}

@media (max-width: 900px) {
  .ig-reels-grid { grid-template-columns: 1fr; }
  .ig-reel-item { min-height: auto; }
  .ig-reel-item iframe { height: 480px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: opacity 0.4s; transform: none !important; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  color: var(--white);
}

.hero-blob {
  background: var(--sage-blob);
  padding: 1.25rem 1.5rem 1.5rem;
  border-radius: 28px 28px 28px 8px;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-blob::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 24px;
  width: 16px;
  height: 16px;
  background: var(--sage-blob);
  border-radius: 0 0 0 8px;
  transform: rotate(45deg);
}

.hero-tag {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.92;
  margin-bottom: 0.35rem;
}

.hero-content h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.hero-lead {
  font-size: 1.05rem;
  opacity: 0.92;
  margin-bottom: 1.5rem;
  max-width: 480px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.scroll-hint {
  position: absolute;
  bottom: 3.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-hint span {
  display: block;
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 12px;
  position: relative;
}

.scroll-hint span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.3; transform: translateX(-50%) translateY(10px); }
}

/* ── Sections ── */
.section {
  position: relative;
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 5vw, 3rem);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage);
  margin-bottom: 0.5rem;
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
}

/* ── Hero extras (bio IG) ── */
.hero-bio-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  opacity: 0.95;
  text-shadow: 0 1px 6px rgba(0,0,0,0.25);
}

.hero-bio-strip .dot { opacity: 0.6; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
}

.badge-en { background: rgba(91, 159, 212, 0.35); }
.badge-cam { background: rgba(0,0,0,0.2); }

.section-sub {
  color: var(--text-soft);
  margin-top: 0.35rem;
  font-size: 0.95rem;
}

/* ── Propuesta bilingüe ── */
.propuesta { background: var(--white); }

.propuesta-grid,
.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.bilingual-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.25rem 0;
  padding: 1rem;
  background: linear-gradient(135deg, var(--cream) 0%, #eef6e8 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(107, 158, 78, 0.15);
}

.bi-col strong {
  display: block;
  font-size: 0.85rem;
  color: var(--sage-dark);
  margin-bottom: 0.35rem;
}

.bi-col p {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.bi-col-en {
  border-left: 2px solid rgba(91, 159, 212, 0.35);
  padding-left: 0.75rem;
}

.bi-col-en strong { color: var(--blue); }

.propuesta-text h2,
.nosotros-text h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.propuesta-copy {
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ── Reels ── */
.reels {
  background: var(--cream-dark);
  overflow: hidden;
}

.reels-track {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0 1.25rem;
  scrollbar-width: none;
  cursor: grab;
}

.reels-track:active { cursor: grabbing; }
.reels-track::-webkit-scrollbar { display: none; }

.reel-card {
  flex: 0 0 clamp(150px, 32vw, 200px);
  scroll-snap-align: start;
}

.reel-frame {
  position: relative;
  aspect-ratio: 9/16;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #111;
}

.reel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.28s ease, transform 8s ease;
  animation: reelDrift 8s ease-in-out infinite alternate;
}

.reel-img.fade { opacity: 0.15; }

@keyframes reelDrift {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.08) translate(-2%, -1%); }
}

.reel-play {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 28px;
  height: 28px;
  background: rgba(0,0,0,0.45);
  color: white;
  border-radius: 50%;
  font-size: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.reel-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 0.75rem 0.75rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
}

.ig-embeds {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.ig-embed-wrap {
  width: min(100%, 320px);
  min-height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.ig-embed-wrap iframe {
  width: 100%;
  height: 440px;
  border: 0;
}

.reels-cta {
  text-align: center;
  margin-top: 0.5rem;
}

/* ── Music toast ── */
.music-toast {
  position: fixed;
  bottom: 5.5rem;
  right: 1.25rem;
  z-index: 91;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  background: var(--white);
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  font-weight: 600;
  animation: toastIn 0.5s var(--ease);
}

.music-toast button {
  background: var(--sage);
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
}

.toast-close {
  background: none !important;
  color: var(--text-soft) !important;
  padding: 0 0.25rem !important;
  font-size: 1.1rem !important;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .propuesta-grid,
  .nosotros-grid { grid-template-columns: 1fr; }

  .bilingual-box { grid-template-columns: 1fr; }

  .bi-col-en {
    border-left: none;
    padding-left: 0;
    border-top: 2px solid rgba(91, 159, 212, 0.25);
    padding-top: 0.75rem;
  }

  .music-toast {
    left: 1rem;
    right: 1rem;
    bottom: 5rem;
    border-radius: var(--radius-sm);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reel-img { animation: none !important; }
}


.nosotros-visual,
.propuesta-visual { position: relative; }

.photo-stack {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.photo-stack img:first-child {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.stack-float {
  position: absolute;
  bottom: -1.5rem;
  right: -1rem;
  width: 45%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
  animation: floatY 5s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.deco-flower {
  position: absolute;
  top: -1rem;
  left: -0.5rem;
  font-size: 2rem;
  opacity: 0.6;
  animation: spinSlow 12s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.nosotros-text h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.nosotros-text p {
  color: var(--text-soft);
  margin-bottom: 1rem;
}

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.pillars li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--cream);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
}

.pillars span { font-size: 1.1rem; }

/* ── Momentos / Clips ── */
.momentos {
  background: var(--cream-dark);
  overflow: hidden;
}

.momentos-bg {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  pointer-events: none;
}

.momentos-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px);
}

.clips-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0 1.5rem;
  scrollbar-width: none;
  cursor: grab;
}

.clips-track:active { cursor: grabbing; }
.clips-track::-webkit-scrollbar { display: none; }

.clip-card {
  flex: 0 0 clamp(160px, 28vw, 220px);
  scroll-snap-align: start;
}

.clip-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 9/14;
  box-shadow: var(--shadow);
  background: var(--white);
}

.clip-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurns 12s ease-in-out infinite alternate;
  will-change: transform;
}

.clip-card:nth-child(even) .clip-img { animation-duration: 14s; animation-direction: alternate-reverse; }
.clip-card:nth-child(3n) .clip-img { animation-duration: 10s; }

@keyframes kenBurns {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.12) translate(-2%, -2%); }
}

.clip-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 0.85rem 0.85rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
}

.momentos-note {
  text-align: center;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.momentos-note a {
  color: var(--sage-dark);
  font-weight: 700;
}

.momentos-note a:hover { text-decoration: underline; }

/* ── Contacto ── */
.contacto { background: var(--white); }

.contacto-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: var(--cream);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.contacto-info {
  padding: clamp(2rem, 4vw, 3rem);
}

.contacto-info h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.contacto-bio {
  color: var(--text-soft);
  margin-bottom: 1.5rem;
}

.contacto-links { display: flex; flex-direction: column; gap: 0.75rem; }

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--sage-dark);
  transition: gap 0.25s;
}

.contact-link:hover { gap: 0.85rem; }

.contacto-portal {
  background: var(--sage);
  color: var(--white);
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contacto-portal h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0.75rem 0 0.5rem;
}

.contacto-portal p {
  opacity: 0.9;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.contacto-portal .btn-primary {
  background: var(--white);
  color: var(--sage-dark);
  box-shadow: none;
}

.contacto-portal .btn-primary:hover {
  background: var(--cream);
}

.portal-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255,255,255,0.2);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  width: fit-content;
}

/* ── Footer ── */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem clamp(1.25rem, 5vw, 3rem);
  font-size: 0.85rem;
  color: var(--text-soft);
  border-top: 1px solid rgba(0,0,0,0.05);
}

.footer a { font-weight: 600; }
.footer a:hover { color: var(--sage); }

/* ── Music toggle ── */
.music-toggle {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 9990;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage);
  transition: transform 0.25s, background 0.25s;
}

.music-toggle:hover { transform: scale(1.08); background: var(--cream); }
.music-toggle.playing { color: var(--pink); animation: pulse 2s ease-in-out infinite; }

@keyframes pulse {
  0%, 100% { box-shadow: var(--shadow); }
  50% { box-shadow: 0 0 0 8px rgba(232, 120, 138, 0.15); }
}

/* ── Portal page ── */
.portal-page {
  min-height: 100svh;
  background: linear-gradient(160deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.header--portal {
  position: sticky;
  background: rgba(250, 247, 242, 0.95);
}

.portal-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 2rem) 4rem;
}

.portal-login {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100svh - var(--header-h) - 4rem);
}

.portal-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3rem);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px;
}

.portal-card h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0.75rem 0 0.5rem;
}

.portal-card > p {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.login-form label span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-soft);
}

.login-form input {
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-sm);
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form input:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(107, 158, 78, 0.15);
}

.form-error {
  color: #c0392b;
  font-size: 0.85rem;
  font-weight: 600;
}

.portal-back {
  display: block;
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-soft);
  font-weight: 600;
}

.portal-back:hover { color: var(--sage); }

.streams-head {
  text-align: center;
  margin-bottom: 2rem;
}

.streams-head h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
}

.streams-head p { color: var(--text-soft); }

.streams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.25rem;
}

.stream-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.stream-card h3 {
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--cream);
}

.stream-embed {
  position: relative;
  padding-bottom: 56.25%;
  background: #111;
}

.stream-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.streams-empty {
  text-align: center;
  color: var(--text-soft);
  padding: 2rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav { display: none; }
  .menu-btn { display: flex; }

  .nosotros-grid,
  .contacto-card {
    grid-template-columns: 1fr;
  }

  .stack-float {
    right: 0.5rem;
    bottom: -1rem;
    width: 40%;
  }

  .pillars { grid-template-columns: 1fr; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-img, .clip-img, .reel-img { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
