/* ===== Variables ===== */
:root {
  --bg-dark: #1a0f08;
  --bar: rgba(26, 15, 8, 0.92);
  --ember: #e8742a;
  --gold: #f0b35a;
  --cream: #fbe9cf;

  --font-title: "Rye", serif;
  --font-body: "Cormorant Garamond", Georgia, serif;
  --font-logo: "Pinyon Script", cursive;

  --bar-h: 76px;

  /* Cuando tengas tu foto del desierto, ponla aquí y agrega
     la clase "hero--photo" a la sección #inicio en el HTML. */
  --hero-photo: url("img/desierto-sonora.webp");
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 0; }
body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }

/* ===== Barra superior ===== */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 7vw, 160px);
  background: var(--bar);
  border-bottom: 1px solid rgba(240, 179, 90, 0.18);
  backdrop-filter: blur(6px);
  transition: background 0.3s;
}
.logo { display: flex; align-items: center; }
.logo img { height: 90px; width: auto; display: block; }
.logo__text {
  font-family: var(--font-logo);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.nav { display: flex; gap: clamp(20px, 2.6vw, 44px); }
.nav a {
  font-family: var(--font-title);
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.02em;
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav a:hover::after,
.nav a:focus-visible::after { transform: scaleX(1); }

.menu-btn {
  display: none;
  width: 44px; height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
}
.menu-btn span {
  display: block;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(10.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10.5px) rotate(-45deg); }

/* ===== Portada ===== */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 460px;
  display: grid;
  place-items: center;
  padding: calc(var(--bar-h) + 10px) 24px 70px;
  overflow: hidden;
  isolation: isolate;
}

/* Cielo de atardecer (relleno) */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -4;
  background:
    linear-gradient(to bottom,
      #241532 0%,
      #5a2d4d 22%,
      #b9494a 42%,
      #ee7f3a 60%,
      #f7b25e 72%,
      #fbd38a 80%);
}
.hero--photo .hero__bg {
  background: var(--hero-photo) left center / cover no-repeat;
  inset: 0;
}

/* Sol */
.hero__sun {
  position: absolute;
  left: 50%;
  bottom: 24%;
  width: min(900px, 120vw);
  aspect-ratio: 1;
  transform: translate(-50%, 50%);
  z-index: -3;
  background: radial-gradient(circle,
    rgba(255, 238, 190, 0.95) 0%,
    rgba(255, 190, 100, 0.65) 14%,
    rgba(238, 127, 58, 0.28) 38%,
    rgba(238, 127, 58, 0) 66%);
  pointer-events: none;
}
.hero--photo .hero__sun,
.hero--photo .hero__scene { display: none; }

/* Siluetas del desierto */
.hero__scene {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 52%;
  z-index: -2;
}
.mesa--far { fill: #7a3a3c; }
.mesa--near { fill: #4a2230; }
.ground { fill: #1d0e0c; }
.cactus { fill: #1d0e0c; }

/* Oscurecido para que el texto se lea con cualquier foto */
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(20, 8, 4, 0.55) 0%, rgba(20, 8, 4, 0) 60%),
    linear-gradient(to bottom, rgba(20, 8, 4, 0.55) 0%, rgba(20, 8, 4, 0) 30%, rgba(20, 8, 4, 0) 70%, rgba(20, 8, 4, 0.6) 100%);
}

.hero__content {
  text-align: center;
  max-width: 1100px;
  transform: translateY(-6vh);
}
.hero__title {
  margin: 0;
  line-height: 0;
  animation: rise 0.9s ease both;
}
.hero__title-img {
  display: block;
  margin: 0 auto;
  width: auto;
  max-width: min(820px, 88vw);
  max-height: 80vh;
  height: auto;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.55));
}
.hero__tag {
  margin: -3vh 0 clamp(14px, 3vh, 30px);
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
  animation: rise 0.9s 0.15s ease both;
}

.hero__tag,
.btn {
  position: relative;
  top: -15vh;
}

.btn {
  display: inline-block;
  padding: 15px 34px;
  background: var(--gold);
  color: var(--bg-dark);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 2px solid var(--gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  animation: rise 0.9s 0.3s ease both;
}
.btn:hover,
.btn:focus-visible {
  background: transparent;
  color: var(--gold);
  transform: translateY(-2px);
}

/* Flechita para bajar */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 28px; height: 44px;
  transform: translateX(-50%);
  border: 2px solid rgba(251, 233, 207, 0.7);
  border-radius: 16px;
}
.hero__scroll span {
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--cream);
  animation: wheel 1.8s infinite;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes wheel {
  0%   { opacity: 0; transform: translateY(0); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(16px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
}

/* ===== Celular ===== */
@media (max-width: 860px) {
  :root { --bar-h: 64px; }
  .logo__text { font-size: 1.8rem; }
  .logo img { height: 40px; }
  .menu-btn { display: flex; }

  .nav {
    position: fixed;
    top: var(--bar-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(26, 15, 8, 0.98);
    border-bottom: 1px solid rgba(240, 179, 90, 0.18);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav.open { max-height: 360px; }
  .nav a {
    padding: 18px 24px;
    font-size: 1.05rem;
    border-top: 1px solid rgba(240, 179, 90, 0.1);
  }
  .nav a::after { display: none; }

  .hero__scene { height: 38%; }
  .hero { padding-bottom: 100px; }
}

/* ===== Redes sociales (barra lateral) ===== */
.social {
  position: fixed;
  left: clamp(12px, 2vw, 32px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  background: rgba(26, 15, 8, 0.55);
  border: 1px solid rgba(240, 179, 90, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--gold);
  opacity: 0.9;
  transition: color 0.2s, transform 0.2s, opacity 0.2s;
}
.social svg { width: 21px; height: 21px; display: block; }
.social a:hover,
.social a:focus-visible {
  color: var(--ember);
  opacity: 1;
  transform: scale(1.18);
}

@media (max-width: 860px) {
  .social { left: 8px; padding: 8px 4px; gap: 2px; }
  .social a { width: 34px; height: 34px; }
  .social svg { width: 18px; height: 18px; }
  .hero { padding-left: 48px; padding-right: 48px; }
  .hero__title-img { max-width: 100%; }
}

/* ===== Integrantes ===== */
.members {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;          /* el texto se queda arriba */
  box-sizing: border-box;
  padding: calc(var(--bar-h) + 18px) clamp(20px, 5vw, 70px) 50px clamp(100px, 7vw, 130px);
  background: url("img/madera.webp") center / cover no-repeat;
  background-color: #6b3a1f;
  scroll-margin-top: 0;
  overflow: hidden;
}
.members__head {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;                   /* centra "Los De Sonora" e "Integrantes" */
}
.members__kicker {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  color: #f0b35a;
  margin: 0;
}
.members__title {
  font-family: "Rye", serif;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--gold, #f0b35a);
  margin: 4px 0 0;
}

.members__grid {
  width: 100%;
  max-width: 1500px;                    /* antes 1200px */
  margin: auto;                         /* centra las fotos en el espacio que queda debajo del texto */
  padding: 24px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.2vw, 36px);
  align-items: center;
}

.member {
  position: relative;
  display: block;
  text-align: center;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1);
}
.member.is-visible { opacity: 1; transform: none; }
.member:nth-child(1) { --tilt: -2deg;   --drop: 6px;   transition-delay: 0s; }
.member:nth-child(2) { --tilt: 1.5deg;  --drop: -10px; transition-delay: 0.12s; }
.member:nth-child(3) { --tilt: -1.5deg; --drop: 12px;  transition-delay: 0.24s; }
.member:nth-child(4) { --tilt: 2deg;    --drop: -4px;  transition-delay: 0.36s; }

.member__frame {
  display: block;
  background: #efe3c8;
  padding: 10px;
  border-radius: 4px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.member__frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.9);
}
.member:hover .member__frame,
.member:focus-visible .member__frame {
  transform: scale(1.06) rotate(0deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}
.member:focus-visible .member__frame { outline: 3px solid var(--gold, #f0b35a); }
.member__name { display: none; }

/* ===== Visor ===== */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 3vw, 40px);
  padding: 20px;
  background: rgba(10, 5, 2, 0.92);
  backdrop-filter: blur(6px);
}
.viewer[hidden] { display: none; }
.viewer__fig { margin: 0; text-align: center; animation: viewerIn 0.3s ease; }
.viewer__frame {
  background: #efe3c8;
  padding: 12px;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}
.viewer__frame img {
  display: block;
  max-width: min(78vw, 480px);
  max-height: 68vh;
  object-fit: contain;
}
.viewer__name {
  margin-top: 18px;
  font-family: "Rye", serif;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  color: var(--gold, #f0b35a);
}
.viewer__close,
.viewer__arrow {
  all: unset;
  cursor: pointer;
  color: var(--gold, #f0b35a);
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
}
.viewer__close { position: absolute; top: 16px; right: 22px; font-size: 2.6rem; }
.viewer__arrow { font-size: 3.4rem; padding: 8px; }
.viewer__close:hover, .viewer__arrow:hover,
.viewer__close:focus-visible, .viewer__arrow:focus-visible {
  color: var(--ember, #e0702a);
  transform: scale(1.15);
}
@keyframes viewerIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .members { padding-left: 56px; padding-right: 20px; }
  .members__grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .viewer__arrow { font-size: 2.4rem; padding: 2px; }
}

/* ===== Eventos ===== */
.events {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  padding: 110px clamp(20px, 5vw, 70px) 60px clamp(90px, 6vw, 110px);
  background:
    linear-gradient(rgba(18, 5, 3, 0.35), rgba(18, 5, 3, 0.6)),
    url("img/rojo.webp") center / cover no-repeat;
  background-color: #4a120c;
  scroll-margin-top: 0;
}
.events__head,
.events__grid,
.events__cta { width: 100%; max-width: 1500px; margin-left: auto; margin-right: auto; }
.events__head { margin-bottom: 40px; text-align: center; }
.events__lead {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.9rem);
  line-height: 1.15;
  color: var(--cream);
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.5);
}
.events__lead span { color: var(--gold); }

.events__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 36px);
}

.vcard {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  background: rgba(20, 6, 4, 0.6);
  border: 1px solid rgba(240, 179, 90, 0.35);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease var(--d, 0s),
              transform 0.7s cubic-bezier(.2,.7,.2,1) var(--d, 0s),
              border-color 0.25s, box-shadow 0.25s;
}
.vcard.is-visible { opacity: 1; transform: none; }
.vcard:nth-child(2) { --d: 0.12s; }
.vcard:nth-child(3) { --d: 0.24s; }
.vcard:hover,
.vcard:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.65);
}
.vcard:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.vcard--soon { cursor: default; }

.vcard__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #1a0f08;
  overflow: hidden;
}
.vcard__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.vcard:hover .vcard__thumb img { transform: scale(1.05); }

.vcard__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(to top, rgba(20, 8, 4, 0.5), rgba(20, 8, 4, 0.05));
}
.vcard__play svg {
  width: 68px;
  height: 68px;
  padding: 17px;
  box-sizing: border-box;
  fill: var(--bg-dark);
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s, background 0.25s;
}
.vcard:hover .vcard__play svg,
.vcard:focus-visible .vcard__play svg { transform: scale(1.12); background: var(--ember); }

.vcard__soon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--gold);
  background: linear-gradient(135deg, #3a1f0e, #1a0f08);
}

.vcard__body { display: block; padding: 20px 22px 24px; }
.vcard__tag {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.vcard__title {
  display: block;
  margin-top: 6px;
  font-family: var(--font-title);
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  line-height: 1.2;
  color: var(--cream);
}
.vcard__text {
  display: block;
  margin-top: 10px;
  font-size: 1.12rem;
  line-height: 1.4;
  color: rgba(251, 233, 207, 0.8);
}

/* Botón dorado al pie de cada tarjeta con video */
.vcard[data-video] .vcard__body::after {
  content: "Ver video";
  display: block;
  margin-top: 18px;
  padding: 12px;
  text-align: center;
  font-family: var(--font-title);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--bg-dark);
  background: var(--gold);
  border-radius: 4px;
  transition: background 0.2s;
}
.vcard[data-video]:hover .vcard__body::after,
.vcard[data-video]:focus-visible .vcard__body::after { background: var(--ember); }

.events__cta { margin-top: 36px; text-align: center; font-size: 1.25rem; color: var(--cream); }
.events__cta a { color: var(--gold); font-weight: 600; border-bottom: 2px solid var(--ember); }

/* ===== Reproductor de videos ===== */
.vplayer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 5, 2, 0.92);
  backdrop-filter: blur(6px);
}
.vplayer[hidden] { display: none; }
.vplayer__box {
  width: min(92vw, 1000px);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  animation: viewerIn 0.3s ease;
}
.vplayer__box iframe { display: block; width: 100%; height: 100%; border: 0; }
.vplayer__close {
  all: unset;
  position: absolute;
  top: 16px;
  right: 22px;
  cursor: pointer;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--gold, #f0b35a);
  transition: color 0.2s, transform 0.2s;
}
.vplayer__close:hover,
.vplayer__close:focus-visible { color: var(--ember, #e0702a); transform: scale(1.15); }

@media (max-width: 860px) {
  .events { padding-left: 56px; padding-right: 20px; }
  .events__grid { grid-template-columns: 1fr; }
}

/* ===== Música ===== */
.music {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  box-sizing: border-box;
  padding: 110px clamp(20px, 5vw, 70px) 60px;
  background-color: #14100d;
  scroll-margin-top: 0;
  overflow: hidden;
}

/* Foto, desplazada a la derecha con el borde izquierdo difuminado */
.music::before {
  content: "";
  position: absolute;
  inset: 0 0 0 clamp(0px, 0vw, 70px);   /* <- sube este número para moverla más a la derecha */
  z-index: -2;
  background: url("img/fondomusica.webp") left center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 160px);
          mask-image: linear-gradient(to right, transparent 0, #000 160px);
}


.music__panel {
  width: min(780px, 100%);
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1);
}
.music__panel.is-visible { opacity: 1; transform: none; }

.music__title {
  margin: 0 0 22px;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--gold);
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.6);
}

.music__player {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.music__player iframe { display: block; border: 0; }

.music__links {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 26px;
}
.music__links a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--gold);
  transition: color 0.2s, transform 0.2s;
}
.music__links svg { width: 28px; height: 28px; }
.music__links a:hover,
.music__links a:focus-visible { color: var(--ember); transform: scale(1.15); }

@media (max-width: 860px) {
  .music {
    justify-content: center;
    padding-left: 56px;
    padding-right: 20px;
  }
  .music::before {
    inset: 0;
    background-position: 15% center;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .music::after {
    background: linear-gradient(rgba(10, 6, 4, 0.55), rgba(10, 6, 4, 0.7));
  }
}
.social a[aria-label="Apple Music"] svg,
.music__links a[aria-label="Apple Music"] svg { transform: scale(1.1); }

/* ===== Eventos: tarjetas de categoría ===== */
.ecat {
  display: flex;
  flex-direction: column;
  background: rgba(20, 6, 4, 0.6);
  border: 1px solid rgba(240, 179, 90, 0.35);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease var(--d, 0s),
              transform 0.7s cubic-bezier(.2,.7,.2,1) var(--d, 0s),
              border-color 0.25s, box-shadow 0.25s;
}
.ecat.is-visible { opacity: 1; transform: none; }
.ecat:nth-child(2) { --d: 0.12s; }
.ecat:nth-child(3) { --d: 0.24s; }
.ecat:hover { border-color: var(--gold); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.65); }

.ecat__media {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #1a0f08;
  overflow: hidden;
}
.ecat__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.ecat__media:hover img { transform: scale(1.05); }
.ecat__media:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.ecat__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(to top, rgba(20, 8, 4, 0.5), rgba(20, 8, 4, 0.05));
}
.ecat__play svg {
  width: 68px; height: 68px; padding: 17px;
  box-sizing: border-box;
  fill: var(--bg-dark);
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s, background 0.25s;
}
.ecat__media:hover .ecat__play svg,
.ecat__media:focus-visible .ecat__play svg { transform: scale(1.12); background: var(--ember); }
.ecat__media--soon {
  cursor: default;
  display: grid;
  place-items: center;
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--gold);
  background: linear-gradient(135deg, #3a1f0e, #1a0f08);
}

.ecat__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 24px; }
.ecat__title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.2;
  color: var(--cream);
}
.ecat__text { margin: 10px 0 0; flex: 1; font-size: 1.12rem; line-height: 1.4; color: rgba(251, 233, 207, 0.8); }
.ecat__btn {
  display: block;
  margin-top: 18px;
  padding: 12px;
  text-align: center;
  font-family: var(--font-title);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--bg-dark);
  background: var(--gold);
  border-radius: 4px;
  transition: background 0.2s;
}
.ecat__btn:hover,
.ecat__btn:focus-visible { background: var(--ember); }

/* ===== Páginas de catálogo ===== */
.cat {
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px clamp(20px, 5vw, 70px) 70px;
  background:
    linear-gradient(rgba(18, 5, 3, 0.35), rgba(18, 5, 3, 0.6)),
    url("img/rojo.webp") center / cover no-repeat;
  background-color: #4a120c;
}
.cat__inner { max-width: 1200px; margin: 0 auto; }
.cat__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 32px;
  margin-bottom: 28px;
  font-family: var(--font-title);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--bg-dark);
  background: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.cat__back:hover,
.cat__back:focus-visible {
  background: var(--ember);
  border-color: var(--ember);
  transform: translateY(-2px);
}
.cat__back:hover,
.cat__back:focus-visible { border-color: var(--ember); }
.cat__kicker { margin: 0; font-size: 1.3rem; color: var(--gold); }
.cat__title {
  margin: 4px 0 0;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--cream);
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.5);
}
.cat__intro { max-width: 680px; margin: 14px 0 34px; font-size: 1.25rem; color: rgba(251, 233, 207, 0.85); }
.cat__sub {
  margin: 48px 0 18px;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--gold);
}
.cat__cta { margin-top: 36px; text-align: center; font-size: 1.25rem; color: var(--cream); }
.cat__cta a { color: var(--gold); font-weight: 600; border-bottom: 2px solid var(--ember); }

/* Video destacado */
.cfeat {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  background: #1a0f08;
  border: 1px solid rgba(240, 179, 90, 0.35);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}
.cfeat img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.cfeat:hover img { transform: scale(1.03); }
.cfeat:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.cfeat__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 4, 2, 0.85), rgba(10, 4, 2, 0) 55%);
}
.cfeat__play { position: absolute; inset: 0; display: grid; place-items: center; }
.cfeat__play svg {
  width: 84px; height: 84px; padding: 22px;
  box-sizing: border-box;
  fill: var(--bg-dark);
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s, background 0.25s;
}
.cfeat:hover .cfeat__play svg,
.cfeat:focus-visible .cfeat__play svg { transform: scale(1.1); background: var(--ember); }
.cfeat__cap { position: absolute; left: 26px; bottom: 22px; right: 26px; text-align: left; }
.cfeat__tag {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.cfeat__name {
  display: block;
  margin-top: 4px;
  font-family: var(--font-title);
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  color: var(--cream);
}

/* Carrusel */
.ccar { position: relative; }
.ccar__track {
  display: flex;
  gap: clamp(14px, 2vw, 24px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 2px 18px;
  scrollbar-width: none;
}
.ccar__track::-webkit-scrollbar { display: none; }

.citem {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  flex: 0 0 clamp(240px, 28vw, 340px);
  scroll-snap-align: start;
  display: block;
  background: rgba(20, 6, 4, 0.6);
  border: 1px solid rgba(240, 179, 90, 0.3);
  border-radius: 6px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.7,.2,1), border-color 0.25s;
}
.citem.is-visible { opacity: 1; transform: none; }
.citem.is-visible:hover { transform: translateY(-4px); border-color: var(--gold); }
.citem:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.citem__thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #1a0f08; overflow: hidden; }
.citem__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.citem__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(to top, rgba(20, 8, 4, 0.5), rgba(20, 8, 4, 0.05));
}
.citem__play svg {
  width: 52px; height: 52px; padding: 13px;
  box-sizing: border-box;
  fill: var(--bg-dark);
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s, background 0.25s;
}
.citem:hover .citem__play svg { transform: scale(1.12); background: var(--ember); }
.citem__title { display: block; padding: 14px 16px 2px; font-family: var(--font-title); font-size: 1.1rem; line-height: 1.25; color: var(--cream); }
.citem__meta { display: block; padding: 0 16px 16px; font-size: 1.05rem; color: rgba(251, 233, 207, 0.7); }
.citem--soon { cursor: default; }
.citem--soon .citem__title { padding-bottom: 16px; }
.citem--soon.is-visible:hover { transform: none; border-color: rgba(240, 179, 90, 0.3); }
.citem__soon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-title);
  color: var(--gold);
  background: linear-gradient(135deg, #3a1f0e, #1a0f08);
}

.ccar__arrow {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding-bottom: 4px;
  font-size: 2rem;
  line-height: 1;
  color: var(--gold);
  background: rgba(20, 6, 4, 0.85);
  border: 1px solid var(--gold);
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}
.ccar__arrow[hidden] { display: none; }
.ccar__arrow--prev { left: -16px; }
.ccar__arrow--next { right: -16px; }
.ccar__arrow:hover,
.ccar__arrow:focus-visible { background: var(--gold); color: var(--bg-dark); }

@media (max-width: 860px) {
    .cat__back {
    display: flex;
    width: 100%;
    min-height: 58px;
    font-size: 1.15rem;
  }
  .cfeat { aspect-ratio: 16 / 9; }
  .cfeat__play svg { width: 64px; height: 64px; padding: 16px; }
  .ccar__arrow { display: none; }   /* en celular se desliza con el dedo */
}

/* ===== Videos ===== */
.vids {
  --rest: 380px;                       /* alto que ocupan menú, textos, flechas y botón */
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;                 /* centrado vertical */
  justify-content: center;
  box-sizing: border-box;
  padding: calc(var(--bar-h) + 12px) clamp(20px, 5vw, 70px) 20px clamp(100px, 7vw, 130px);
  background: url("img/fondopapel.webp") center / cover no-repeat;
  background-color: #f3ece0;
  scroll-margin-top: 0;
  overflow: hidden;
}
.vids__inner {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1);
}
.vids__inner.is-visible { opacity: 1; transform: none; }

.vids__kicker { margin: 0; font-size: 1.15rem; color: #6b3a1f; }
.vids__heading {
  margin: 2px 0 14px;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  color: #2a170c;
}

/* El ancho del video depende del alto disponible: siempre cabe completo */
.vids__player {
  width: min(100%, 1100px, max(280px, calc((100vh - var(--rest)) * 16 / 9)));
  width: min(100%, 1100px, max(280px, calc((100svh - var(--rest)) * 16 / 9)));
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(58, 31, 14, 0.45);
}
.vids__player iframe { display: block; width: 100%; height: 100%; border: 0; }

.vids__title {
  max-width: 100%;
  margin: 14px 0 0;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.3;
  color: #2a170c;
  white-space: nowrap;                 /* una sola línea para que el alto no cambie */
  overflow: hidden;
  text-overflow: ellipsis;
}

.vids__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
}
.vids__arrow {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding-bottom: 4px;
  font-size: 2.1rem;
  line-height: 1;
  color: #2a170c;
  border: 2px solid #2a170c;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.vids__arrow:hover,
.vids__arrow:focus-visible { background: #2a170c; color: var(--gold); transform: scale(1.08); }

.vids__dots { display: flex; gap: 10px; }
.vids__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(42, 23, 12, 0.25);
  transition: background 0.2s, transform 0.2s;
}
.vids__dot.is-active { background: #b8480f; transform: scale(1.25); }

.vids__more {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 32px;
  font-family: var(--font-title);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--bg-dark);
  background: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(58, 31, 14, 0.3);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.vids__more:hover,
.vids__more:focus-visible { background: var(--ember); border-color: var(--ember); transform: translateY(-2px); }

/* Pantallas bajas (laptops chicas, ventanas pequeñas): todo un poco más compacto */
@media (max-height: 820px) {
  .vids { --rest: 330px; padding-bottom: 14px; }
  .vids__heading { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 10px; }
  .vids__title { margin-top: 10px; font-size: clamp(1.1rem, 1.8vw, 1.35rem); }
  .vids__nav { margin-top: 10px; }
  .vids__arrow { width: 40px; height: 40px; font-size: 1.8rem; }
  .vids__more { margin-top: 12px; padding: 10px 26px; font-size: 0.95rem; }
}
@media (max-height: 680px) {
  .vids__kicker { display: none; }
  .vids { --rest: 300px; }
}

@media (max-width: 860px) {
  .vids { padding-left: 56px; padding-right: 20px; }
  .vids__more { padding: 14px 32px; }
}

/* ===== Contrataciones + pie de página ===== */
.contact {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;                   /* misma altura que las demás secciones */
  display: flex;
  flex-direction: column;
  justify-content: center;              /* contenido centrado en la pantalla */
  box-sizing: border-box;
  padding: calc(var(--bar-h) + 16px) clamp(20px, 5vw, 70px) 20px clamp(100px, 7vw, 130px);
  background: url("img/fondocontacto.webp") center / cover no-repeat;
  background-color: #3a2316;
  scroll-margin-top: 0;
  overflow: hidden;
}
.contact__inner { width: 100%; max-width: 1300px; margin: 0 auto; }

.contact__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(240, 179, 90, 0.25);
}
.contact__kicker { margin: 0; font-size: 1.2rem; color: var(--gold); }
.contact__title {
  margin: 2px 0 0;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--cream);
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.5);
}
.contact__lead { max-width: 560px; margin: 12px 0 0; font-size: 1.2rem; color: rgba(251, 233, 207, 0.85); }

.contact__cta {
  display: inline-block;
  padding: 16px 38px;
  font-family: var(--font-title);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--bg-dark);
  background: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.contact__cta:hover,
.contact__cta:focus-visible { background: var(--ember); border-color: var(--ember); transform: translateY(-2px); }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.7fr 1fr;
  align-items: start;
  gap: clamp(28px, 5vw, 70px);
  padding: 36px 0 30px;
}
.contact__logo { display: inline-block; }
.contact__logo img { display: block; height: 80px; width: auto; }
.contact__brand p { max-width: 360px; margin: 14px 0 0; font-size: 1.12rem; color: rgba(251, 233, 207, 0.8); }

.contact__social {
  display: grid;
  grid-template-columns: repeat(4, 42px);
  gap: 10px 18px;
  margin: 18px 0 0 -10px;
}
.contact__social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--gold);
  transition: color 0.2s, transform 0.2s;
}
.contact__social svg { width: 22px; height: 22px; display: block; }
.contact__social a:hover,
.contact__social a:focus-visible { color: var(--ember); transform: scale(1.18); }

.contact__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.contact__col h3 {
  margin: 0 0 6px;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--gold);
}
.contact__col a,
.contact__col span { font-size: 1.15rem; color: var(--cream); overflow-wrap: anywhere; }
.contact__col a { border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.contact__col a:hover,
.contact__col a:focus-visible { color: var(--gold); border-color: var(--ember); }

.contact__copy {
  margin: 0;
  padding-top: 20px;
  text-align: center;
  font-size: 1rem;
  color: rgba(251, 233, 207, 0.65);
  border-top: 1px solid rgba(240, 179, 90, 0.18);
}

.contact__about h3 {
  margin: 0 0 10px;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--gold);
}
.contact__about p {
  margin: 0 0 12px;
  font-size: 1.08rem;
  line-height: 1.55;
  color: rgba(251, 233, 207, 0.85);
}
.contact__about p:last-child { margin-bottom: 0; }

@media (max-height: 820px) {
  .contact__top { padding-bottom: 22px; }
  .contact__grid { padding: 22px 0 18px; }
  .contact__logo img { height: 64px; }
  .contact__about p { font-size: 1rem; line-height: 1.45; }
}

@media (max-width: 860px) {
  .contact { padding-left: 56px; padding-right: 20px; }
  .contact__top { flex-direction: column; align-items: flex-start; }
  .contact__cta { display: block; width: 100%; padding: 18px; text-align: center; }
  .contact__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ===== Portada en celular: sin encimados y sin ícono de mouse ===== */
@media (max-width: 860px), (hover: none) and (pointer: coarse) {
  .hero__scroll { display: none; }            /* el mouse solo se ve en computadora */
}

@media (max-width: 860px) {
  .hero__content { transform: none; }         /* quita el desplazamiento hacia arriba */
  .hero__tag,
  .btn { top: 0; }                            /* ya no se sube encima del título */
  .hero__tag {
    margin: 16px 0 20px;
    font-size: 1rem;
    letter-spacing: 0.1em;
  }
  .btn { padding: 14px 30px; }
}

/* ===== Carrusel infinito automático (se activa con data-marquee) ===== */
.ccar--marquee .ccar__track {
  display: block;
  overflow: hidden;
  scroll-snap-type: none;
  /* desvanecido suave en las orillas (si no lo quieres, borra estas dos líneas) */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}
.ccar__belt {
  position: relative;
  display: flex;
  gap: clamp(14px, 2vw, 24px);
  width: max-content;
    will-change: transform;          /* el movimiento lo hace el JS */
}
.ccar--marquee .ccar__track { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ccar--marquee .ccar__track img { -webkit-user-drag: none; pointer-events: none; }
.ccar--drag .ccar__track { cursor: grabbing; }

.ccar--marquee .ccar__arrow { display: none; }          /* con movimiento automático ya no hacen falta */
.ccar--marquee .citem { opacity: 1; transform: none; }  /* sin la animación de aparecer */
.ccar--marquee .citem:hover { transform: translateY(-4px); border-color: var(--gold); }

@media (max-width: 860px) {
  .cat { padding-left: 52px; }   /* deja espacio a la barra de redes */
}

/* ===== Barra de redes en pantallas bajas (celular acostado) ===== */
@media (max-height: 560px) {
  .social {
    top: calc(var(--bar-h) + 8px);          /* siempre debajo del menú */
    transform: none;                         /* ya no se centra, así no se sube */
    max-height: calc(100vh - var(--bar-h) - 16px);
    max-height: calc(100svh - var(--bar-h) - 16px);
    overflow-y: auto;                        /* si aun así no cupiera, se desliza */
    overscroll-behavior: contain;
    scrollbar-width: none;
    gap: 0;
    padding: 6px 3px;
  }
  .social::-webkit-scrollbar { display: none; }
  .social a { width: 28px; height: 28px; }
  .social svg { width: 16px; height: 16px; }
}

/* ===== Integrantes: pila de polaroids ===== */
.members__grid {
  max-width: 1440px;
  gap: clamp(28px, 4vw, 64px);            /* más aire entre integrantes */
}

.member {
  position: relative;
  display: block;
  text-align: center;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1);
}
.member:hover,
.member:focus-within { z-index: 5; }       /* el integrante que miras queda por encima de los vecinos */
.member.is-visible { opacity: 1; transform: none; }
.member:nth-child(1) { --tilt: -2deg;   --drop: 6px;   transition-delay: 0s; }
.member:nth-child(2) { --tilt: 1.5deg;  --drop: -10px; transition-delay: 0.12s; }
.member:nth-child(3) { --tilt: -1.5deg; --drop: 12px;  transition-delay: 0.24s; }
.member:nth-child(4) { --tilt: 2deg;    --drop: -4px;  transition-delay: 0.36s; }

.member__stack {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  position: relative;
  display: block;
  width: 88%;                              /* baja este número para pilas más chicas */
  margin: 0 auto;
  transform: translateY(var(--drop, 0px)) rotate(var(--tilt, 0deg));
  transition: transform 0.3s ease;
}
.member__stack:focus-visible { outline: 3px solid var(--gold); outline-offset: 8px; }

.member__card {
  display: block;
  background: #efe3c8;
  padding: 10px;
  border-radius: 4px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1), box-shadow 0.3s, filter 0.3s;
}
.member__card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.9);
}
.member__card--1 { position: relative; z-index: 3; }

/* Las de atrás: más oscuras, con menos giro y sombra suave, para que no distraigan */
.member__card--2,
.member__card--3 {
  position: absolute;
  inset: 0;
  filter: brightness(0.68);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}
.member__card--2 { z-index: 2; transform: rotate(-3deg) translate(-5px, 3px); }
.member__card--3 { z-index: 1; transform: rotate(3deg) translate(6px, 2px); }

/* Al pasar el mouse: se abren en abanico, pero discretas */
.member__stack:hover .member__card--1,
.member__stack:focus-visible .member__card--1 { transform: translateY(-4px) scale(1.02); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.65); }
.member__stack:hover .member__card--2,
.member__stack:focus-visible .member__card--2 { transform: rotate(-8deg) translate(-16px, 5px); filter: brightness(0.9); }
.member__stack:hover .member__card--3,
.member__stack:focus-visible .member__card--3 { transform: rotate(7deg) translate(18px, 4px); filter: brightness(0.9); }

.member__count {
  position: absolute;
  z-index: 4;
  right: 14px;
  bottom: 14px;
  padding: 3px 10px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
  background: rgba(26, 15, 8, 0.82);
  border-radius: 999px;
}

/* La arroba siempre por encima de las fotos */
.member__ig {
  position: relative;
  z-index: 6;
  display: inline-block;
  max-width: 100%;
  margin-top: 36px;
  padding: 7px 16px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cream);
  background: rgba(26, 15, 8, 0.78);
  border: 1px solid rgba(240, 179, 90, 0.5);
  border-radius: 999px;
  overflow-wrap: anywhere;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.member__ig:hover,
.member__ig:focus-visible { color: var(--gold); border-color: var(--ember); background: rgba(26, 15, 8, 0.92); }

@media (max-width: 860px) {
  .members__grid { gap: 36px 16px; }
}

/* ===== Integrantes: visor de fotos ===== */
.mview {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 5, 2, 0.94);
  backdrop-filter: blur(6px);
}
.mview[hidden] { display: none; }
.mview__panel {
  width: min(100%, 680px);
  max-height: 100%;
  overflow-y: auto;
  text-align: center;
  scrollbar-width: none;
  animation: viewerIn 0.3s ease;
}
.mview__panel::-webkit-scrollbar { display: none; }

.mview__stage { display: flex; align-items: center; justify-content: center; gap: clamp(4px, 2vw, 16px); }
.mview__frame {
  background: #efe3c8;
  padding: 12px;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}
.mview__frame img {
  display: block;
  max-width: min(62vw, 480px);          /* antes min(58vw, 400px) */
  max-height: min(66vh, 680px);         /* antes min(54vh, 520px) */
  width: auto;
  height: auto;
  object-fit: contain;
}
.mview__frame img.is-new { animation: viewerIn 0.3s ease; }

.mview__close,
.mview__arrow {
  all: unset;
  cursor: pointer;
  color: var(--gold);
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
}
.mview__close { position: absolute; top: 16px; right: 22px; font-size: 2.6rem; z-index: 2; }
.mview__arrow { font-size: 3.2rem; padding: 6px; }
.mview__close:hover, .mview__arrow:hover,
.mview__close:focus-visible, .mview__arrow:focus-visible { color: var(--ember); transform: scale(1.15); }

.mview__thumbs { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
.mview__thumb {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  width: 58px;
  padding: 4px;
  background: #efe3c8;
  border-radius: 3px;
  opacity: 0.55;
  outline: 2px solid transparent;
  transform: rotate(var(--r, 0deg));
  transition: opacity 0.2s, transform 0.2s, outline-color 0.2s;
}
.mview__thumb:nth-child(1) { --r: -4deg; }
.mview__thumb:nth-child(2) { --r: 3deg; }
.mview__thumb:nth-child(3) { --r: -2deg; }
.mview__thumb img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.mview__thumb:hover,
.mview__thumb:focus-visible { opacity: 1; }
.mview__thumb.is-active { opacity: 1; transform: rotate(0deg) scale(1.12); outline-color: var(--gold); }

.mview__name {
  margin: 18px 0 0;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  color: var(--gold);
}
.mview__ig {
  display: inline-block;
  margin-top: 10px;
  padding: 9px 22px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--bg-dark);
  background: var(--gold);
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}
.mview__ig:hover,
.mview__ig:focus-visible { background: var(--ember); transform: translateY(-2px); }

.mview__members { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.mview__member {
  all: unset;
  cursor: pointer;
  padding: 8px 4px;
  font-size: 1.05rem;
  color: rgba(251, 233, 207, 0.75);
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.mview__member:hover,
.mview__member:focus-visible { color: var(--gold); border-color: var(--ember); }

@media (max-width: 860px) {
  .member__ig { font-size: 0.95rem; padding: 6px 12px; }
  .mview__arrow { font-size: 2.4rem; padding: 2px; }
  .mview__thumb { width: 100px; }
}
@media (max-height: 620px) {
  .mview__frame img { max-height: 50vh; }   /* antes 40vh */
  .mview__name { margin-top: 10px; }
}


