/* =========================
  0) GLOBAL
  1) MAQUETACION BASE 
  2) ASCENSOR (doors, elevator)
  3) PANEL (botonera)
  4) INICI
  5) SINOPSI
  6) EQUIP
  7) EL CURT
  8) COLABORA (stats, initiatives, sponsors)
  9) CONTACTE
  10)EXTRAS (spacers, helpers)
========================= */


/* ::::: GLOBAL ::::: */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: "Roboto", Helvetica;
  background: #0f0f0f;
  color: #f2f2f2;
  margin-right: 120px;
  -ms-overflow-style: none; 
}

@media screen and (max-width: 610px) {
    html, body {
          margin-right: 16vw;
    }      
}

body::-webkit-scrollbar {
  display: none;
}

/* ::::: MAQUETACION BASE ::::: */
.floor {
  min-height: 100vh;
  width: 100%;
  padding: 80px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.floor h1 {
  color: #7b0000;
  letter-spacing: 3px;
  text-transform: uppercase;
}


.floor p {
  color: #7B9CB8;
}

/* ===== COLORS PLANTES ===== */
.f0 { background: #1a1a1a; }
.f1 { background: #2e2e2e; }
.f2 { background: #3a2f2a; }
.f3 { background: #1f3b4d; }
.f4 { background: #2b1f3d; }
.f5 { background: black; }

/* :::::ASCENSOR::::: */

  /* ===== PORTES ===== */
.door {
    position: fixed;
  top: 0;
  width: 50vw;
  height: 100vh;
  z-index: 15;
  background:
    linear-gradient(
      to right,
      #2a2a2a,
      #3a3a3a 20%,
      #1e1e1e 50%,
      #3a3a3a 80%,
      #2a2a2a
    );
  box-shadow:
    inset 0 0 40px rgba(0,0,0,.8),
    inset -2px 0 0 rgba(255,255,255,.05),
    inset 2px 0 0 rgba(0,0,0,.6);
  transition: transform 1.6s cubic-bezier(.77,0,.18,1);
}

.door.left {
  left: 0;
  transform: translateX(-100%);
  border-right: 4px solid #111;
}

.door.right {
  right: 0;
  transform: translateX(100%);
  border-left: 4px solid #111;
}

.doors-closed .door.left,
.doors-closed .door.right {
  transform: translateX(0);
}

  /* ===== ASCENSOR ===== */
#elevator {
  position: relative;
  top: 0;
  height: 600vh; /* 6 plantes */
  transition: top 1.2s ease-in-out;
}

   /* ===== JUNTA CENTRAL PUERTAS ===== */
.door.left::after,
.door.right::after {
  content: '';
  position: absolute;
  top: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    #000,
    #444 30%,
    #000 60%
  );
}
.grid.left::after {
  right: -3px;
}

.grid.right::after {
  left: -3px;
}

/* textura metal */
.grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,.04) 0px,
      rgba(255,255,255,.04) 1px,
      transparent 3px,
      transparent 6px
    );
  mix-blend-mode: overlay;
  opacity: .6;
}

/* textura madera */
.grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,.05) 0px,
      rgba(255,255,255,.05) 1px,
      transparent 4px,
      transparent 8px
    );
  opacity: .4;
}

/* :::::PANEL::::: */
  /* ===== BOTONERA ===== */
.panel {
  position: fixed;
  top: 0;
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
  width: 140px;              /* 🔒 ancho fijo */
  background: linear-gradient(145deg, #2b2b2b, #151515);
  padding: 22px 18px;
  border-radius: 12px;
  border: 4px solid #555;
  box-shadow:
    inset 0 0 30px rgba(0,0,0,.9),
    0 15px 40px rgba(0,0,0,.9);
  z-index: 20;
  max-width: 20%;
}

.panel {
    position: fixed;
    top: 0; 
    right: 0;
    height: 100vh;
    width: 140px;
    background: linear-gradient(145deg, #2b2b2b, #151515);
    padding: 22px 18px;
    border-radius: 0;
    border: 4px solid #555;
    box-shadow: 
        inset 0 0 30px rgba(0,0,0,.9),
        0 15px 40px rgba(0,0,0,.9);
    z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 20%;

}

.panel-logo{
  position: absolute;
  width: 80px;
  height: auto;
  margin: 0;
  top: 20px;
  left: 20%;
  z-index: 10;
  display: block;
  max-width: 60%;
  min-height: 50px;
}

.panel h3 {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-align: center;
  color: #000;
  background: #111;
  border: 1px solid #444;
}

@media screen and (max-width: 610px) {
    .panel h3 {
        font-size: 2.7vw;
        letter-spacing: 0;
        max-width: 16.6vw;
    }
}

.buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.logo-btn{
  all: unset;          
  cursor: pointer;
  display: block;
}
.panel button {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1rem;
  color: #111;
  background:
    radial-gradient(circle at 30% 30%, #eee, #888 70%);
  border: 2px solid #333;
  box-shadow:
    inset 0 2px 3px rgba(255,255,255,.6),
    inset 0 -3px 6px rgba(0,0,0,.6),
    0 6px 10px rgba(0,0,0,.8);
  cursor: pointer;
  transition: all .15s ease;
}



#panel-title {
  display: flex;              
  justify-content: center;    
  align-items: center;
  width: 119px; 
  height: 40px; 
  background: #999; /*linear-gradient(135deg, #eee 0%, #888 70%);*/
  border-radius: 5px;        
  text-align: center;
  font-weight: bold;
}

.panel button:active,
.panel button.active {
  background:
    radial-gradient(circle at 30% 30%, #7b0000, #7b0000);
  color: #000;
  box-shadow:
    inset 0 3px 8px rgba(0,0,0,.8);
  transform: translateY(2px);
}


/* Tooltip */.panel {
  position: fixed;
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(145deg, #3a3a3a, #1b1b1b);
  padding: 26px 22px;
  border-radius: 10px;
  border: 4px solid #666;
  box-shadow:
    inset 0 0 30px rgba(0,0,0,.9),
    0 15px 50px rgba(0,0,0,.9);
  z-index: 20;
}

/* ===== Selector de idioma ===== */
.lang-switch{
  margin-top: 18px;
  display: flex !important;
  flex-direction: row !important;   
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;               
}

.lang-switch .lang-btn{
  /* CLAVE para <a>: que acepte width/height */
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.8rem;

  text-decoration: none;   /* quita subrayado de enlace */
  color: #111;

  background: radial-gradient(circle at 30% 30%, #eee, #888 70%);
  border: 2px solid #333;
  box-shadow:
    inset 0 2px 3px rgba(255,255,255,.6),
    inset 0 -3px 6px rgba(0,0,0,.6),
    0 6px 10px rgba(0,0,0,.8);

  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.lang-switch .lang-btn:hover{
  filter: brightness(1.05);
}

.lang-switch .lang-btn:active{
  transform: translateY(2px);
  box-shadow: inset 0 3px 8px rgba(0,0,0,.8);
}

/* (Si algún día quieres ocultar uno con clase) */
.lang-switch .lang-btn.is-hidden{
  display: none;
}


/* ::::: INICI :::::: */
.inici {
  position: relative;
  overflow: hidden;
}

.inici-video-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.inici-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.9);
  animation: vhsFlicker 6s infinite;
}

.inici-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.25),
      rgba(43, 26, 18, 0.55)
    );
  z-index: 1;
}

.inici-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.inici-title {
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: 0.35rem;
  line-height: 1.05;
  color: #f2f2f2;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.inici-subtitle {
  font-size: 1.1rem;
  line-height: 1.5;
  max-width: 640px;
  color: #7B9CB8;
  letter-spacing: 0.08rem;
  text-shadow: 0 0 10px rgba(0,0,0,0.9);
}

@keyframes vhsFlicker {
  0%, 100% { filter: contrast(1.05) saturate(0.9); }
  50% { filter: contrast(1.1) saturate(0.85); }
}

.floor.inici {
  min-height: 100vh;
  padding: 0;
}

/* ::::: HISTORIA :::::: */
.f1 h1 {
  font-size: 2.8rem;
  margin-bottom: 30px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-family: "Roboto";
  position: relative;
  text-align: center;
  color: #D51C1C;
}

@media screen and (max-width: 485px) {
    .f1 h1 {
        font-size: 10vw;
    }
}

.sinop img {
    position: relative;
    width: 100%;
    max-height: 500px;
    justify-content: center;
    margin-bottom: 40px; 
}

.card {
    position: relative;
    width: 400px;
    height: 500px;
    margin-bottom: 30px;
}

.card .face {
    position: absolute;
    width: 100%;
    max-height: 500px;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    transition: 1.5s;
    border: solid #39737D 1px;
}

.card .front {
    transform: perspective(600px) rotateY(0deg);
    box-shadow: 0 8px 20px rgba(0,0,0,.6);
    object-fit: cover;
}

.card .front img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    
}

.card .front h3 {
    position: absolute;
    top: 0;
    font-size: 37px;
    width: 100%;
    height: 45px;
    line-height: 45px;
    background: rgb(123,156,184,.6);
    color: #943600;
    text-align: center;
}

/*rgb(123,156,184,.6)*/

.card .back {
    transform: perspective(600px) rotateY(180deg);
    background-color: rgb(166,88,0,.6);
    box-shadow: 0 5px 10px #000;
    position: relative;
    overflow: hidden;
}

.card .back img {
    position: absolute;
    align-content: center;
    width: 100%;
    height: 100%;
    object-fit: cover;
     display: block;
}

.card .front h3,
.card .back h3 {
  /* Tamaño mínimo 14px, ideal 30px, máximo 24px */
  font-size: clamp(30px, 2vw, 40px) !important;
}

.card .back p {
  font-size: clamp(14px, 1.2vw, 18px);
}

@media screen and (max-width: 485px) {
    .card .back p {
        font-size: 3vw;
    }
}

.card .back h3 {
    margin-top: 30px;
    font-size: 37px;
    text-align: center;
    text-justify: center;
    margin-bottom: 15px;
    letter-spacing: 2px;
    background: rgb(123,156,184,.6);
    color: #943600;
}

.card .back p {
    letter-spacing: 1px;
    text-align: justify;
    min-height: 385px;
    margin-bottom: 10px;
    font-family: "roboto";
    color: #F2F2F2;
    padding: 25px;
}

.card .back .text {
    position: relative;
    z-index: 2;
    height: 90%;
    background-color: rgb(0,0,0,.4);
    margin-top: 12px;
    margin-left: 10px;
    margin-right: 10px;
}

.card:hover .front {
    transform: perspective(600px) rotateY(180deg);
}

.card:hover .back {
    transform: perspective(600px) rotateY(360deg);
}

/* :::::: EQUIPO :::::: */

#f2 {
  position: relative;
  overflow: hidden;
  background-image: url("../media/equipo/back.jpg");
  background-size: cover;
  background-position: right;
  background-repeat: no-repeat;
}

#f2::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 0;
}

.f2 h1 {
  font-size: 2.8rem;
  margin-bottom: 30px;
  letter-spacing: 4px;
  text-transform: uppercase;
  position: relative;
  text-align: center;
  color: #D51C1C;
}

  /* BOOTSTRAP FIX*/

.col-12,
.col-lg-6,
.col-xxl-4 {
  display: flex;
  justify-content: center;
}

  /* CARD */

.equipo-card {
  background: linear-gradient(145deg, #1b1b1b, #0f0f0f);
  border: 1px solid #3b2a1d;
  box-shadow:
    inset 0 0 20px rgba(0,0,0,.8),
    0 15px 40px rgba(0,0,0,.7);
  padding: 1rem;
  text-align: center;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
  width: 100%;
  max-width: 412px;
  box-sizing: border-box;
}

   /* TEXTURA */
.equipo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,.025) 0px,
      rgba(255,255,255,.025) 1px,
      transparent 2px,
      transparent 5px
    );
  pointer-events: none;
  opacity: .4;
}

  /* HOVER */
.equipo-card:hover {
  transform: translateY(-6px);
  box-shadow:
    inset 0 0 25px rgba(0,0,0,.9),
    0 25px 60px rgba(0,0,0,.9);
}

  /* IMAGEN */

.equipo-card img {
  width: 100%;
  max-width: 380px;
  object-fit: cover;
  background: #111;
  border: 1px solid #7b0000;
  margin-bottom: .75rem;
  filter: contrast(1.05) brightness(.85) saturate(.85);
}

  /* NOMBRE */

.equipo-card h3 {
  font-size: .85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #A65800;
  background: #111;
  padding: .45rem 0;
  border-top: 1px solid #3b2a1d;
  margin: 0;
}

  /* PANEL INFO */

.equipo-card .info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,.85);
  color: #fff;
  font-size: 1rem;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  padding: 1rem;
}

.equipo-card .info h3 {
 text-decoration: uppercase;
 margin-bottom: 2px;
  font-size: clamp(5px, 1.5vw, 15px);
}

.equipo-card .info p {
 text-decoration: uppercase;
 margin-bottom: 2px;
  font-size: clamp(5px, 1.5vw, 13px);
}

   /* MOSTRAR INFO */
.equipo-card:hover .info {
  opacity: 1;
  visibility: visible;
}

   /* SECCIÓN */

.equip {
  margin-bottom: 150px;
}


/* ::::: EL CURT ::::: */

.curt {
  display: flex;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
  position: relative;
}

.curt::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.015) 0,
      rgba(255,255,255,0.015) 1px,
      transparent 2px,
      transparent 4px
    );
  pointer-events: none;
}

.curt-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.curt-text h1 {
  top: 25px;
  color: #D51C1C;
  letter-spacing: 0.4rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.curt-text h1::after {
  content: '';
  display: block;
  width: 80px;
  height: 2px;
  background: #913500;
  margin-top: 1rem;
}

.curt-intro {
  font-size: 1.1rem;
  color: #7B9CB8;
  margin-bottom: 1.5rem;
}

.curt-text p {
  color: #d0d0d0;
  line-height: 1.7;
  margin-bottom: 1.4rem;
  max-width: 520px;
  font-size: 0.95rem;
}

/* ===== CURT CAROUSEL ===== */

.curt-carousel {
  overflow: hidden;
  position: relative;
  padding-top: 2rem;
}

.curt-carousel .carousel-track {
  display: flex;
  gap: 2rem;
  animation: scrollCurt 50s linear infinite;
}

.curt-carousel .carousel-track img {
  width: 420px;
  max-height: 320px;
  object-fit: contain;
  background: #1a1a1a;
  padding: 0.5rem;
  box-shadow: 0 15px 40px rgba(0,0,0,0.7);
  position: relative;
}

.curt-carousel .carousel-track img::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.03) 0,
      rgba(255,255,255,0.03) 1px,
      transparent 2px,
      transparent 4px
    );
  pointer-events: none;
}

@keyframes scrollCurt {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.curt-horizontal {
  display: flex;
  gap: 4rem;
  overflow-x: auto;
  padding: 3rem 2rem 4rem;
  scroll-snap-type: x mandatory;
}

.curt-horizontal::-webkit-scrollbar {
  height: 6px;
}

.curt-horizontal::-webkit-scrollbar-thumb {
  background: #7B9CB8;
}

.curt-slide {
  flex: 0 0 70vw;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.curt-slide.text {
  background: rgba(0, 0, 0, 0.4);
  padding: 3rem;
  font-family: 'IBM Plex Mono', monospace;
  color: #d6d6d6;
  line-height: 1.8;
}

.curt-slide.text h2 {
  color: #D51C1C;
  margin-bottom: 1rem;
  letter-spacing: 0.2rem;
}

.curt-slide.image img {
  max-height: 70vh;
  width: auto;
  object-fit: contain;
  background: #1a1a1a;
  padding: 1rem;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.curt-horizontal-story {
  display: flex;
  overflow-x: auto;
  height: 100vh;
  scroll-snap-type: x mandatory;
}

.story-panel {
  flex: 0 0 80vw;
  height: 100%;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
}

.story-panel.image img {
  max-height: 80vh;
  width: auto;
  object-fit: contain;
  background: #1a1a1a;
  padding: 1rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.7);
}

.story-panel.text {
  font-family: 'IBM Plex Mono', monospace;
  color: #e0e0e0;
  line-height: 1.8;
  font-size: 1rem;
}

.story-panel.text.dark {
  background: rgba(0,0,0,0.6);
}

.story-panel.text.wood {
  background: rgba(91, 58, 36, 0.75);
}

.story-panel.text.blue {
  background: rgba(57, 115, 125, 0.65);
}

.story-panel.text.red {
  background: rgba(120, 0, 0, 0.7);
}

.story-panel.text h2 {
  color: #D51C1C;
  letter-spacing: 0.3rem;
  margin-bottom: 2rem;
}
/* EL CURT OCUPA TODA LA PANTALLA */
#f3 {
  width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
}

/* anulamos cualquier layout interno heredado */
#f3 > * {
  max-width: none !important;
  width: 100%;
}

.curt-horizontal-story {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
}

.story-panel {
  flex: 0 0 100vw;
  height: 100%;
}

.story-panel.collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  background: rgba(0,0,0,0.35);
}

.story-panel.collage img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.9);
  box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.story-panel.text {
  position: relative;
  backdrop-filter: blur(2px);
}

.story-panel.text::after {
  content: "";
  position: absolute;
  bottom: 15%;
  left: 10%;
  width: 80%;
  height: 2px;
  background: rgba(255,255,255,0.15);
}

.story-panel.text p {
  max-width: 45ch;
  background: rgba(0,0,0,0.35);
  padding: 2rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}
/* Indicador solo para EL CURT */
#f3 {
  position: relative;
}

#f3 .scroll-hint {
  position: absolute;
  bottom: 2rem;
  right: 0rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2rem;
  color: rgba(255,255,255,0.6);
  animation: hintMove 2s infinite;
  pointer-events: none;
  z-index: 10;
}

@keyframes hintMove {
  0% { transform: translateX(0); opacity: 0.3; }
  50% { transform: translateX(10px); opacity: 1; }
  100% { transform: translateX(0); opacity: 0.3; }
}

/* Hero del curt */
.story-panel.hero {
  justify-content: center;
  text-align: center;
}

.story-panel.hero h2 {
  font-size: 4rem;
  letter-spacing: 0.3rem;
  margin-bottom: 1.5rem;
}

.story-panel.hero p {
  max-width: 600px;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Panel combinado texto + imagen */
.story-panel.split {
  display: flex;
  gap: 3rem;
  align-items: center;
  padding: 4rem;
}

.story-panel.split.reverse {
  flex-direction: row-reverse;
}

.story-panel.split .text {
  flex: 1;
}

.story-panel.split .image {
  flex: 1;
}

.story-panel.split img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Intro EL CURT */
.story-panel.intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  padding: 5rem;
  min-width: 100vw;
}

.story-panel.intro h2 {
  font-size: 4rem;
  letter-spacing: 0.35rem;
  margin-bottom: 1.5rem;
  color: #D51C1C; /* rojo principal */
}

.story-panel.intro p {
  max-width: 620px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #e5e5e5;
  background: rgba(0,0,0,0.35);
  padding: 1.5rem 2rem;
  border-radius: 4px;
}

/* :::::: SECCIÓN COLABORA ::::: */

   /* =====  VIDEO FONDO ===== */
#f4{
  position: relative;
  overflow: hidden;
}
#f4 h1{
font-size: 3.8rem;
  margin-bottom: 30px;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  color: #D51C1C;
  font-weight: 700;
/* 6) Micro-animación */
  opacity: 0;
  transform: translateY(10px);
  animation: titlePop .6s ease-out forwards;
}

#f4 > p.text-center{
color:#eef0eb;
font-size: large;
}

#initiatives > h2{
  color: #e82222;     /* rojo del resto de títulos */
  font-size: 2.8rem;
  font-weight: 500;
  letter-spacing: 1;
}
  

@keyframes titlePop{
  to { opacity: 1; transform: translateY(0); }
}

/* Accesibilidad: si el usuario no quiere animaciones */
@media (prefers-reduced-motion: reduce){
  #f4 h1{
    animation: none;
    opacity: 1;
    transform: none;
  }
}
/* el video por detrás */
#f4 .f4-bg-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* capa para oscurecer y que se lea el contenido */
/* #f4 .f4-bg-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1;
} */

/* todo el contenido de f4 por encima del video */
#f4 > *:not(.f4-bg-video):not(.f4-bg-overlay){
  position: relative;
  z-index: 2;
}

#f4 #crowd-stats{
  max-width: 900px;
  margin: 0 auto;
}

.stat-icon { 
  font-size: 30px; 
  color: #A65800;
 }

.stat-number { 
  font-size: 42px; 
  color: #eef0eb;
  font-weight: bold; 
}

.stat-label { 
  color: #7B9CB8;
  font-weight: bold;
 }
 
 #crowd-stats .row{
  display: flex;
  justify-content: center;
  gap: 25px;        
}

/* Pantalla grande en fila */
@media (min-width: 768px){
  #crowd-stats .row{
    flex-wrap: nowrap;
  }
}

/* Pantalla pequeña uno debajo del otro */
@media (max-width: 767px){
  #crowd-stats .row{
    flex-wrap: wrap;
  }
}

@media (min-width: 768px){
  #crowd-stats .col-12.col-md-4{
    flex: 0 0 260px;
    max-width: 260px;
  }
}

@media (max-width: 767px){
  #crowd-stats .col-12.col-md-4{
    flex: 0 0 100%;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* Recuadro por fuera */
#crowd-stats .stat-card{
  border: 2px solid rgba(166, 88, 0, 0.45);  
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(0,0,0,0.12);  
  box-shadow: 0 8px 20px rgba(0,0,0,0.18); 
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
  text-align: center;
  width: 100%;
}

/* centrar icono y número */
#crowd-stats .stat-top{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#crowd-stats .stat-label{
  margin-top: 6px;
  text-align: center;
  display: block;
}
.stat-card:hover{
  border-color: rgba(166, 88, 0, 0.75);
  background: rgba(0,0,0,0.16);
  transform: translateY(-2px);
}

/* ===== INICIATIVAS  ===== */
#carouselBingo {
  border: 2px solid #39737d;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0,0,0,0.6);
  background: rgba(0,0,0,0.35);
}
#carouselBingo .carousel-item.active img{
  transform-origin: center center;
  animation: kenburnsBingo 10s ease-in-out infinite alternate;
}

@keyframes kenburnsBingo{
  from { transform: scale(1) translateX(0) translateY(0); }
  to   { transform: scale(1.05) translateX(-1.5%) translateY(-1%); }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce){
  #carouselBingo .carousel-item.active img{
    animation: none;
    transform: none;
  }
}
#carouselBingo img{
  height: 360px;
  object-fit: cover;
}

@media (max-width: 768px) {
  #carouselBingo img {
    height: 240px;
  }}

#initiatives .carousel-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
} 
/* ======SPOTIFY PLAYLIST===== */
/* ===== PLAYLISTS SPOTIFY (BINGO MUSICAL) ===== */

.spotify-playlists .row{
  column-gap: 50px;/* espacio horizontal*/
} 



.spotify-playlists p{
  color: #eef0eb;
}

.spotify-card:hover{
  transform: translateY(-2px);
  background: rgba(0,0,0,0.36);
}



.spotify-card iframe{
  display: block;
  width: 100%;
  border: 0;
  border-radius: 12px;
}
  /* Fix: en la zona de Spotify no queremos que la columna sea flex */
.spotify-playlists .col-12,
.spotify-playlists .col-md-6,
.spotify-playlists .col-lg-4 {
  display: block;
}
.spotify-card { 
  width: 100%;
  max-width: 420px; 
  margin: 0 auto;
}
/* ===== PATROCINADORES===== */
.sponsors{
  margin-top: 60px;
  margin-bottom: 20rem;
   text-align: center;
}

.sponsors p{
  color: #eef0eb;
}
.sponsors h2{
font-size: 2.8rem;
  margin-bottom: 30px;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
  color: #D51C1C;
  font-weight: 700;
  /* 9) Placa */
  display: inline-block;      
  padding: .35rem 1.1rem;
  border: 1px solid rgba(166, 88, 0, 0.45);
  background: rgba(0,0,0,0.22);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  backdrop-filter: blur(2px);

  /* 6) Micro-animación */
  opacity: 0;
  transform: translateY(10px);
  animation: titlePop .6s ease-out forwards;
}

@keyframes titlePop{
  to { opacity: 1; transform: translateY(0); }
}

/* Accesibilidad: si el usuario no quiere animaciones */
@media (prefers-reduced-motion: reduce){
  .sponsors h2{
    animation: none;
    opacity: 1;
    transform: none;
  }
}


.sponsors-marquee{
  position: relative;
  overflow: hidden;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 18px 0;
  margin-top: 3rem;
}

.sponsors-marquee::before{
  left:0;
  background: linear-gradient(to right, rgba(43,31,61,1), rgba(43,31,61,0));
}

.sponsors-marquee::after{
  right:0;
  background: linear-gradient(to left, rgba(43,31,61,1), rgba(43,31,61,0));
}
.sponsors-marquee:focus-within .sponsors-track{
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce){
  .sponsors-track{
    animation: none;
    transform: none;
  }
}

/* carril */
.sponsors-track{
  display:flex;
  align-items:center;
  gap: 34px;
  width: max-content;
  animation: sponsorsScroll 22s linear infinite;
  padding: 0 20px;
}

/* pausa al hover */
.sponsors-marquee:hover .sponsors-track{
  animation-play-state: paused;
}

@keyframes sponsorsScroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); } /* funciona porque duplicamos logos */
}

.sponsor{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width: 180px;
  height: 140px;
  padding: 0;
  border-radius: 0;
  background:transparent;
  border: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, filter .18s ease;
}

.sponsor img{
  max-height: 110px;
  max-width: 380px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.05) brightness(.95);
  opacity: .85;
  transition: filter .18s ease, opacity .18s ease;
}

.sponsor:hover{
  transform: translateY(-2px);
  background: rgba(0,0,0,0.16);
}

.sponsor:hover img{
  filter: none;
  opacity: 1;
}

/* responsive */
@media (max-width: 768px){
  .sponsor{ min-width: 150px; height: 64px; }
  .sponsors-track{ gap: 18px; animation-duration: 18s; }
  .sponsors-marquee::before,
  .sponsors-marquee::after{ width: 70px; }
}


/* :::::: SECCIÓN CONTACTE :::::: */

#f5{
  position: relative; /* necesario para el ::before */
  overflow: hidden;
  background-image: url("../media/contact/robot.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* overlay oscurecedor */
#f5::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55); /* ajusta 0.45–0.70 según legibilidad */
  z-index: 0;
}

/* subimos todo el contenido por encima del overlay */
#f5 > *{
  position: relative;
  z-index: 1;
}
.contact-name {
  margin-bottom: 30px;
}
.contact-name h5 {
  font-size: 22px;
  color: #ff8800bf;
  margin-bottom: 5px;
  font-weight: 600;
}
.contact-name p {
  font-size: 18px;
  margin: 0;
}

#f5 p{
  color: #eef0eb;
}
.social-share a {
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  color: #ffffff;
  text-align: center;
  margin-right: 10px;
}
.social-share .instagram {
  box-shadow: 0 8px 30px -4px rgba(234, 76, 137, 0.5);
  background-color: #ea4c89;
}
.social-share .tiktok {
  box-shadow: 0 8px 30px -4px rgba(0, 103, 255, 0.5);
  background-color: #0067ff;
}


/* Inputs con “caja” */
#f5 .contact-form .form-control{
  background: rgba(255,255,255,0.92);   /* blanco típico pero suave */
  color: #111;                          /* texto negro */
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: none !important;
}

/* Placeholder visible */
#f5 .contact-form .form-control::placeholder{
  color: rgba(0,0,0,0.45);
}

/* Focus bonito */
#f5 .contact-form .form-control:focus{
  border-color: rgba(255,136,0,0.9);    /* tu naranja */
  box-shadow: 0 0 0 3px rgba(255,136,0,0.20) !important;
  outline: none;
}

/* Textarea un pelín más alta */
#f5 textarea.form-control{
  min-height: 140px;
  resize: vertical;
}

#f5 .contact-form{
  margin-top: 60px; 

}
/* Alinear el botón a la derecha */
#f5 .send{
  display: flex;
  justify-content: flex-end;
}
.contact-form .form-control:focus {
  border-bottom: 1px solid #fc5356;
}
.contact-form .form-control.invalid {
  border-bottom: 1px solid #ff0000;
}
.contact-form .send {
  margin-top: 20px;
}
@media (max-width: 767px) {
  .contact-form .send {
    margin-bottom: 20px;
  }
}

.section-title h2 {
    font-weight: 700;
    color: #ff8800bf;
    font-size: 45px;
    margin: 0 0 15px;
    border-left: 5px solid #7b0000;
    padding-left: 15px;
}
.section-title {
    padding-bottom: 45px;
}
.contact-form .send {
    margin-top: 20px;
}
/* Botón Enviar: aspecto botón */
#f5 .px-btn{
  background: rgba(255,136,0,0.95); /* tu naranja */
  color: #111;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 12px;
  padding: 0 26px;
  line-height: 48px;       /* altura del botón */
  font-weight: 700;
  letter-spacing: .5px;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

/* Hover */
#f5 .px-btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

/* Click */
#f5 .px-btn:active{
  transform: translateY(0);
  box-shadow: none;
}


#f5 .map-wrap{
  margin-top: 12px;
  /* border-radius: 12px; */
  overflow: hidden;
}

#f5 .map-wrap iframe{
  width: 450px;
  height: 220px;
  border: 0;
  display: block;
  /* filter: grayscale(1) contrast(1.05) brightness(0.85); */
}
/* :::::: FOOTER ::::: */
.footer {
            background: linear-gradient(135deg,  #3a2418,#824e30);
            color: #fff;
            padding: 2rem 0;
            text-align: center;
        }
        .footer .social-icons {
            margin: 1rem 0;
        }
        .footer .social-icons a {
            color: #fff;
            margin: 0 0.75rem;
            font-size: 1.75rem;
            transition: color 0.3s;
        }
        .footer .social-icons a:hover {
            color: #7b0000;
        }
        
/* ::::: EXTRAS :::::: */

.floor {
  background:
    linear-gradient(
      to right,
      #3a2418,
      #4b2f1f 50%,
      #3a2418
    );
}


/* ===== FONDO GLOBAL ASCENSOR (MADERA) ===== */

body {
  background:
    linear-gradient(
      to right,
      #3a2418,
      #4b2f1f 50%,
      #3a2418
    );
}



    /* ===== GRANO VHS ===== */

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,.025) 0px,
      rgba(255,255,255,.025) 1px,
      transparent 2px,
      transparent 4px
    ),
    radial-gradient(
      circle at 20% 30%,
      rgba(255,255,255,.04),
      transparent 40%
    );
  mix-blend-mode: overlay;
  opacity: .35;
  z-index: 100;
} 

/* lector de pantallas foco skip */
.skip-link{
  position: absolute;
  left: -999px;
  top: 10px;
  background: #111;
  color: #fff;
  padding: 10px 14px;
  border: 2px solid #A65800;
  z-index: 9999;
}
.skip-link:focus{
  left: 10px;
}

/* Indicador deslizar en intro del curt */
.story-panel.intro .intro-scroll-hint {
  margin-top: 2.5rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.25rem;
  color: #7B9CB8; /* azul de la paleta */
  opacity: 0.9;

  animation: introHintMove 1.8s infinite;
}

@keyframes introHintMove {
  0% {
    transform: translateX(0);
    opacity: 0.4;
  }
  50% {
    transform: translateX(12px);
    opacity: 1;
  }
  100% {
    transform: translateX(0);
    opacity: 0.4;
  }
}

/* =========================
   TEXTO EL CURT – AJUSTES
   ========================= */

/* Texto general */
.story-panel p {
  text-align: center;
  margin: 0 auto;
  line-height: 1.7;
  letter-spacing: 0.02em;
  max-width: 680px;
}

/* Intro EL CURT */
.story-panel.intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  padding: 6rem 3rem;
  min-width: 100vw;
}

.story-panel.intro h2 {
  font-size: 4rem;
  letter-spacing: 0.35rem;
  margin-bottom: 2rem;
  color: #D51C1C; /* rojo principal */
}

.story-panel.intro p {
  background: rgba(0, 0, 0, 0.35);
  padding: 2rem 2.5rem;
  border-radius: 6px;
}

/* Paneles split */
.story-panel.split {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding: 4rem;
}

.story-panel.split .text {
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-panel.split .text p {
  background: rgba(0, 0, 0, 0.35);
  padding: 2rem;
  border-radius: 6px;
}

/* Texto final */
.story-panel.text.red p {
  background: rgba(213, 28, 28, 0.15);
  padding: 2.5rem 3rem;
  border-radius: 6px;
  max-width: 720px;
}

.story-panel.intro .intro-scroll-hint {
  margin-top: 3rem;
  font-size: 0.9rem;
  letter-spacing: 0.3rem;
  opacity: 0.85;
}

/* =========================
   VIDEO INICIO RESPONSIVE
   ========================= */

.hero-video {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Por defecto: desktop */
.video-mobile {
  display: none;
}

/* Móvil */
@media (max-width: 768px) {
  .video-desktop {
    display: none;
  }

  .video-mobile {
    display: block;
  }
}


/* INICI – vídeo fondo */
#f0 {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Desktop por defecto */
.video-mobile {
  display: none;
}

/* Móvil */
@media (max-width: 768px) {
  .video-desktop {
    display: none;
  }

  .video-mobile {
    display: block;
  }
}

#f0 .content {
  position: relative;
  z-index: 2;
}

/* Botón activar sonido */
.sound-toggle {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;

  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #D51C1C;
  color: #D51C1C;

  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.25rem;
  padding: 0.8rem 1.6rem;

  cursor: pointer;
  transition: all 0.3s ease;
}

.sound-toggle:hover {
  background: #D51C1C;
  color: #000;
}

#floor-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: calc(100% - 140px); /* para respetar la botonera */
  height: 100vh;
  background: linear-gradient(
    to bottom,
    #111,
    #222,
    #111
  );
  z-index: 14;

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.6s ease;
}

#floor-transition.active {
  opacity: 1;
}

.transition-content {
  text-align: center;
  font-family: "IBM Plex Mono", monospace;
}

.floor-number {
  font-size: 6rem;
  color: #7b0000;
  display: block;
}

.moving-text {
  letter-spacing: 3px;
  color: #7B9CB8;
  animation: blink 1s infinite alternate;
}

@keyframes blink {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

#panel-title {
  background: #0e0e0e;
  color: #7b0000;              /* rojo del corto */
  border: 2px solid #2a2a2a;

  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 2px;

  padding: 8px 12px;
  margin-bottom: 10px;

  text-transform: uppercase;
  text-align: center;

  box-shadow: inset 0 0 6px black;

  transition: color 0.3s ease, background 0.3s ease;
}

#panel-title {
  background: #000;
  color: #7b0000;

  border: 3px solid #333;
  border-radius: 4px;

  font-family: "IBM Plex Mono", monospace;

  padding: 10px;
  letter-spacing: 3px;

  text-shadow: 0 0 5px rgba(123, 0, 0, 0.8);

  box-shadow:
    inset 0 0 10px black,
    0 0 4px rgba(0,0,0,0.6);
}
.panel button:hover ~ #panel-title {
  color: #ff0000;
}

#panel-title {
  background: repeating-linear-gradient(
    45deg,
    #0a0a0a,
    #0a0a0a 5px,
    #0f0f0f 5px,
    #0f0f0f 10px
  );

  color: #fff;

  border: 2px solid #1c1c1c;
  border-radius: 6px;

  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 2px;

  text-shadow: 0 0 8px rgba(123,0,0,0.9);

  padding: 10px;

  box-shadow:
    inset 0 0 12px black,
    0 0 6px rgba(0,0,0,0.7);
}


/* =========================================================
 ARREGLOS RESPOSIVE COLABORA + CONTACT
========================================================= */

@media (max-width: 768px){
  .floor{
    padding: 70px 16px;   
  }
}

@media (max-width: 480px){
  .floor{
    padding: 60px 12px;
  }
}

/* =======================
   COLABORA (#f4)
======================= */

@media (max-width: 768px){
  #f4 h1{
    font-size: clamp(2rem, 9vw, 3rem);
    margin-bottom: 14px;
  }

  #f4 > p.text-center{
    font-size: 1rem;
    padding: 0 6px;
  }

  #initiatives > h2{
    font-size: clamp(1.6rem, 7vw, 2.4rem);
    margin-top: 18px;
  }
}

@media (max-width: 768px){
  #f4 #crowd-stats{
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .stat-number{ font-size: 34px; }
  .stat-icon{ font-size: 26px; }

  #crowd-stats .stat-card{
    max-width: 360px;
    margin: 0 auto;
  }
}



@media (max-width: 768px){
  .spotify-card{
    max-width: 520px;
  }
  .spotify-card iframe{
    height: 152px; 
  }
}

@media (max-width: 768px){
  .sponsors{
    margin-bottom: 7rem;
  }
}

/* =======================
   CONTACTE (#f5)
======================= */

@media (max-width: 991px){
  #f5 .contact-panel{
    padding: 14px 14px;
    border-radius: 14px;
    background: rgba(0,0,0,0.35);
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  }

  #f5 .section-title h2{
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }

  #f5 .contact-form{
    margin-top: 18px;
  }

  #f5 .send{
    justify-content: center;
  }
}

#f5 .map-wrap iframe{
  width: 100%;
  border: 0;
  border-radius: 12px;
  display: block;
}

@media (max-width: 768px){
  #f5 .map-wrap iframe{
    height: 220px;
  }
}

@media (max-width: 480px){
  #f5 .contact-form .form-control{
    padding: 10px 12px;
    border-radius: 10px;
  }
  #f5 textarea.form-control{
    min-height: 120px;
  }
}



@media (max-width: 768px){

  .panel{
    width: 88px;               
    padding-bottom: 18px;
  }

  .lang-switch{
    flex-wrap: wrap;           
    gap: 6px;
    margin-top: 10px;
    padding: 0 6px;
  }

  .lang-switch .lang-btn{
    width: 34px;
    height: 28px;
    font-size: 0.75rem;
  }

  
  .carousel-inner{
    width: 100% !important;
  }

  #carouselBingo{
    width: 100%;
  }


  .sponsors h2{
    font-size: clamp(1.6rem, 8vw, 2.6rem);
    line-height: 1.05;
    letter-spacing: 2px;
    padding: 0 10px;
    word-break: break-word;
  }
}

@media (max-width: 480px){
  #carouselBingo img{
    height: 240px;  
    object-fit: cover;
  }


  .panel{
    width: 82px;
  }

  .lang-switch .lang-btn{
    width: 32px;
    height: 26px;
  }
}