/* =========================================================
   Bungee Conferences — estilos del sitio
   Valores copiados del CSS de Elementor del sitio original.
   Puntos de quiebre (los mismos de Elementor):
     - tableta: hasta 1024px
     - celular: hasta 767px
   ========================================================= */

/* ---------- 1. Variables ---------- */
:root {
  /* Colores */
  --blanco: #ffffff;
  --negro: #000000;
  --texto-tenue: #ffffffa1;        /* texto pequeño semitransparente */
  --azul-velo: #004776;            /* degradado sobre las fotos de la portada */
  --azul-velo-registro: #01488ca8; /* degradado de las páginas de registro */
  --azul-boton: #0c64b4;
  --caja-form: #ffffff5c;          /* caja blanca transparente del formulario */
  --flechas: rgba(237, 237, 237, 0.9);

  /* Opacidad del velo de color sobre las fotos */
  --opacidad-velo: 0.72;
  --opacidad-velo-fuerte: 0.8;

  /* Tipografías */
  --fuente-texto: "Avenir", sans-serif;
  --fuente-registro: "Gotham", sans-serif;
  --fuente-ponente: "Montserrat", sans-serif;
  --fuente-sistema: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  /* Tamaños de la portada */
  --titulo: 1.5em;           /* ¿Qué es Bungee?, etc. */
  --texto: 1.3em;            /* párrafos */
  --texto-chico: 0.9em;      /* (emprender, iniciar una carrera…) */
  --ancho-texto: 55%;
  --ancho-texto-ancho: 60%;
  --separacion: 0.5em;       /* espacio entre bloques de cada sección */
  --logo-pie: 12%;           /* logo pequeño al final de cada sección */

  /* Formulario */
  --radio: 20px;
}

@media (max-width: 767px) {
  :root {
    --titulo: 1em;
    --texto: 0.9em;
    --texto-chico: 0.7em;
    --ancho-texto-ancho: 60%;
    --logo-pie: 30%;
  }
}

/* ---------- 2. Fuentes (archivos en /fuentes) ---------- */
@font-face {
  font-family: "Avenir";
  font-style: normal;
  font-weight: 300;
  src: url("../fuentes/Avenir-Light.ttf") format("truetype");
}
@font-face {
  font-family: "Avenir";
  font-style: normal;
  font-weight: 500;
  src: url("../fuentes/Avenir-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Avenir";
  font-style: normal;
  font-weight: 700;
  src: url("../fuentes/Avenir-Heavy.ttf") format("truetype");
}
@font-face {
  font-family: "Gotham";
  font-style: normal;
  font-weight: 200;
  src: url("../fuentes/Gotham-Light.ttf") format("truetype");
}
@font-face {
  font-family: "Gotham";
  font-style: normal;
  font-weight: 400;
  src: url("../fuentes/Gotham-Medium.ttf") format("truetype");
}
@font-face {
  font-family: "Gotham";
  font-style: normal;
  font-weight: 600;
  src: url("../fuentes/Gotham-Bold.ttf") format("truetype");
}

/* ---------- 3. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--negro);
  color: var(--blanco);
  font-family: var(--fuente-sistema);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  border: none;
}

h1,
h2 {
  margin: 0;
  line-height: 1;
}

p {
  margin: 0 0 0.9rem;
}

b {
  font-weight: 700;
}

.oculto {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* =========================================================
   4. PORTADA (index.html)
   ========================================================= */

/* Encaje al hacer scroll: cada sección se acomoda a pantalla completa
   (en computadora no deja saltarse secciones; en tableta y celular sí) */
html.encaje {
  height: 100vh;
  margin: 0;
  overflow: hidden;
}

html.encaje body {
  height: 100vh;
  overflow: auto;
  scroll-snap-type: y mandatory;
}

.encaje .seccion {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

@media (max-width: 1024px) {
  .encaje .seccion {
    scroll-snap-stop: normal;
  }
}

/* Cada bloque ocupa toda la pantalla, con foto de fondo y velo azul */
.seccion {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--separacion) 0;
  min-height: 100vh;
  font-family: var(--fuente-texto);
  background-repeat: no-repeat;
  background-size: cover;
}

.seccion::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, var(--azul-velo) 55%, var(--negro) 100%);
  opacity: var(--opacidad-velo);
}

.seccion > * {
  position: relative;
}

@media (max-width: 767px) {
  .seccion {
    background-position: center center;
  }
}

/* Espacios en blanco (alto distinto en cada sección) */
.espacio {
  flex-shrink: 0;
}

/* Títulos y textos */
.titulo {
  font-family: var(--fuente-texto);
  font-size: var(--titulo);
  font-weight: 700;
  text-align: center;
  color: var(--blanco);
}

.texto {
  align-self: center;
  width: var(--ancho-texto);
  font-size: var(--texto);
  font-weight: 300;
  line-height: 1.3em;
  text-align: center;
  color: var(--blanco);
}

.texto--ancho {
  width: var(--ancho-texto-ancho);
}

.texto--negrita {
  font-weight: 700;
}

.texto--medio {
  font-weight: 500;
}

/* Bloques alineados a la izquierda o derecha (sección «¿Quién organiza?» y «Este 2026») */
.a-la-izquierda {
  align-self: center;
  width: var(--ancho-texto);
  text-align: start;
}

.a-la-derecha {
  align-self: center;
  width: var(--ancho-texto);
  text-align: end;
}

/* Logo pequeño al final de cada sección */
.logo-pie {
  margin: 0;
  text-align: center;
}

.logo-pie img {
  display: inline-block;
  width: var(--logo-pie);
  vertical-align: middle;
}

/* --- 4.1 Portada: logo grande --- */
.portada {
  gap: 20px;
  background-image: url("../img/fondo-portada.jpg");
  background-position: 0 0;
}

.portada__logo {
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
}

.portada__logo img {
  display: inline-block;
  width: 40%;
  vertical-align: middle;
}

@media (max-width: 767px) {
  .portada {
    background-position: 0 0;
  }

  .portada__logo img {
    width: 61%;
  }
}

/* --- 4.2 ¿Qué es Bungee? --- */
.que-es {
  background-image: url("../img/fondo-que-es.jpg");
}
.que-es .espacio--arriba { height: 32vh; }
.que-es .espacio--abajo { height: 33vh; }
.que-es .texto--primero {
  margin-bottom: calc(0.9rem - 0.7em);
}

@media (max-width: 767px) {
  .que-es .espacio--arriba { height: 14em; }
  .que-es .espacio--abajo { height: 13em; }
  .que-es .texto--primero {
    margin-bottom: calc(0.9rem - 1.5em);
  }
}

/* --- 4.3 Jumpers --- */
.jumpers {
  background-image: url("../img/fondo-jumpers.jpg");
}
.jumpers .espacio--arriba { height: 36vh; }
.jumpers .espacio--abajo { height: 37vh; }

@media (max-width: 767px) {
  .jumpers .espacio--arriba { height: 15em; }
  .jumpers .espacio--abajo { height: 15.5em; }
}

/* --- 4.4 Organizamos eventos --- */
.organizamos {
  background-image: url("../img/fondo-organizamos.jpg");
}
.organizamos .espacio--arriba { height: 31vh; }
.organizamos .espacio--abajo { height: 29vh; }

.organizamos .texto--1 {
  margin-bottom: calc(0.9rem - 0.9em);
}
.organizamos .texto--chico {
  font-size: var(--texto-chico);
  color: var(--texto-tenue);
}
.organizamos .texto--3 {
  margin-top: -1.2em;
  margin-bottom: calc(0.9rem - 0.9em);
}
.organizamos .texto--4 {
  margin-top: 0.5em;
}

@media (max-width: 767px) {
  .organizamos .espacio--arriba { height: 12em; }
  .organizamos .espacio--abajo { height: 9.5em; }
  .organizamos .texto--1 {
    margin-bottom: calc(0.9rem - 1.5em);
  }
  .organizamos .texto--chico {
    margin-bottom: calc(0.9rem - 0.5em);
  }
}

/* --- 4.5 ¿Qué buscamos? --- */
.que-buscamos {
  background-image: url("../img/fondo-que-buscamos.jpg");
}
.que-buscamos .espacio--arriba { height: 35vh; }
.que-buscamos .espacio--abajo { height: 36vh; }

@media (max-width: 767px) {
  .que-buscamos .espacio--arriba { height: 16em; }
  .que-buscamos .espacio--abajo { height: 15em; }
}

/* --- 4.6 ¿Quién organiza? + galería --- */
.quien-organiza {
  background-image: url("../img/fondo-quien-organiza.jpg");
}
.quien-organiza::before {
  background-image: linear-gradient(180deg, var(--azul-velo) 50%, var(--negro) 100%);
  opacity: var(--opacidad-velo-fuerte);
}
.quien-organiza .espacio--arriba { height: 25vh; }
.quien-organiza .espacio--abajo { height: 25vh; }

@media (max-width: 767px) {
  .quien-organiza .espacio--arriba { height: 9em; }
  .quien-organiza .espacio--abajo { height: 4em; }
  .quien-organiza .a-la-izquierda,
  .quien-organiza .a-la-derecha {
    width: 60%;
  }
}

/* --- 4.7 Este 2026 --- */
.este-2026 {
  background-image: url("../img/fondo-este-2026.jpg");
}
.este-2026 .espacio--arriba { height: 33vh; }
.este-2026 .espacio--abajo { height: 33vh; }
.este-2026 .texto--primero {
  margin-bottom: calc(0.9rem - 0.7em);
}
.este-2026 .texto--cuentanos {
  padding-right: 4%;
}

@media (max-width: 767px) {
  .este-2026 .espacio--arriba { height: 14.5em; }
  .este-2026 .espacio--abajo { height: 13.5em; }
  .este-2026 .a-la-izquierda,
  .este-2026 .a-la-derecha {
    width: 60%;
  }
  .este-2026 .texto--cuentanos {
    padding-right: 0;
    font-size: 0.86em;
  }
}

/* --- 4.8 Comparte tu historia (cierre) --- */
.comparte {
  background-image: url("../img/foto-cierre.jpg");
}
.comparte .espacio--arriba { height: 38vh; }
.comparte .espacio--abajo { height: 40vh; }
.comparte .texto--primero {
  margin-bottom: calc(0.9rem - 0.7em);
}

@media (max-width: 767px) {
  .comparte .espacio--arriba { height: 18em; }
  .comparte .espacio--abajo { height: 16em; }
  .comparte .texto--primero {
    font-size: 1em;
  }
}

/* =========================================================
   5. GALERÍA (carrusel de fotos de la portada)
   ========================================================= */
.galeria {
  --por-vista: 7;
  --hueco: 20px;
  position: relative;
  padding: 5em 0 2em;
}

.galeria__marco {
  position: relative;
  overflow: hidden;
  padding-bottom: 30px;
}

.galeria__pista {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 0.5s ease;
}

.galeria__foto {
  flex: 0 0 calc((100% - (var(--por-vista) - 1) * var(--hueco)) / var(--por-vista));
  margin: 0 var(--hueco) 0 0;
  text-align: center;
}

.galeria__flecha {
  position: absolute;
  top: calc(50% - 15px);
  z-index: 1;
  display: inline-flex;
  padding: 0;
  border: 0;
  background: none;
  color: var(--flechas);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.galeria__flecha svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.galeria__flecha--anterior { left: 10px; }
.galeria__flecha--siguiente { right: 10px; }

.galeria__puntos {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 24px;
}

.galeria__punto {
  width: 6px;
  height: 6px;
  margin: 0 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--negro);
  opacity: 0.2;
  cursor: pointer;
}

.galeria__punto--activo {
  opacity: 1;
}

/* Tableta: 2 fotos por vista (las fotos no se estiran, quedan centradas) */
@media (max-width: 1024px) {
  .galeria {
    --por-vista: 2;
  }
}

@media (max-width: 767px) {
  .galeria {
    --por-vista: 3;
    --hueco: 5px;
    padding: 0;
  }
}

/* =========================================================
   6. PÁGINAS DE PRE-REGISTRO (y «¡Gracias!»)
   ========================================================= */
.registro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-height: 100vh;
  padding: 1% 0;
  overflow: hidden;
  font-family: var(--fuente-sistema);
}

.pagina-enter .registro {
  padding-top: 3%;
}

/* Fotos de fondo que se van alternando (6 fotos, 5 s cada una, fundido de 0.5 s) */
.registro__fondo {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.registro__fondo li {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-size: cover;
  opacity: 0;
  animation: fundido 30s linear infinite;
}

.registro__fondo li:nth-child(1) { background-image: url("../img/fondo-quien-organiza.jpg"); animation-delay: -0.5s; opacity: 1; }
.registro__fondo li:nth-child(2) { background-image: url("../img/fondo-este-2026.jpg"); animation-delay: 4.5s; }
.registro__fondo li:nth-child(3) { background-image: url("../img/fondo-evento-3.jpg"); animation-delay: 9.5s; }
.registro__fondo li:nth-child(4) { background-image: url("../img/fondo-jumpers.jpg"); animation-delay: 14.5s; }
.registro__fondo li:nth-child(5) { background-image: url("../img/fondo-organizamos.jpg"); animation-delay: 19.5s; }
.registro__fondo li:nth-child(6) { background-image: url("../img/fondo-evento-6.jpg"); animation-delay: 24.5s; }

@keyframes fundido {
  0% { opacity: 0; }
  1.67% { opacity: 1; }
  16.67% { opacity: 1; }
  18.33% { opacity: 0; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .registro__fondo li { animation: none; }
}

/* Velo azul a negro encima de las fotos */
.registro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: linear-gradient(180deg, var(--azul-velo-registro) 0%, var(--negro) 100%);
}

.registro__contenido {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  max-width: 1140px;
  flex-grow: 1;
}

/* Cabecera (logo arriba en celular) y pie (logo abajo en computadora) */
.registro__contenido > header,
.registro__contenido > footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Mostrar u ocultar según el aparato */
@media (min-width: 1025px) {
  .solo-movil { display: none !important; }
}
@media (max-width: 1024px) {
  .solo-escritorio { display: none !important; }
}

/* Logo Bungee (arriba en celular, abajo en computadora) */
.registro__logo {
  display: block;
  width: 100%;
  margin: 0;
  text-align: center;
}

.registro__logo img {
  display: inline-block;
  width: min(30%, 240px);
  vertical-align: middle;
}

.registro__logo--arriba img {
  width: min(32%, 256px);
}

/* Fila «BY TRES9» */
.firma {
  display: flex;
  flex-direction: row;
  width: 50%;
}

.firma > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.firma__hueco-izq { width: 20%; }
.firma__by { width: 25%; }
.firma__logo { width: 30%; }
.firma__hueco-der { width: 25%; }

.firma__by p {
  padding: 9% 1% 0 0;
  font-family: var(--fuente-ponente);
  font-size: 0.7em;
  font-style: italic;
  font-weight: 400;
  text-align: end;
}

.firma__logo img {
  display: inline-block;
  width: 45%;
  vertical-align: middle;
}

.firma__logo div {
  text-align: start;
  line-height: 1.5;
}

/* Bloque del ponente: nombre, logo, fecha y hora con foto de fondo */
.ponente {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 0.4em 0;
  width: 50%;
  min-height: 43vh;
  padding: 0 0 1%;
}

.ponente--carlos {
  background-image: url("../img/foto-carlos-novelo.png");
  background-position: -6vw -3vh;
  background-size: 125% auto;
}

.ponente--ivana {
  background-image: url("../img/foto-ivana-rodriguez.png");
  background-position: 0 -19vh;
  background-size: cover;
}

.ponente__nombre {
  margin-bottom: -0.5%;
  font-family: var(--fuente-ponente);
  font-size: 1.8em;
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--blanco);
}

.ponente--ivana .ponente__nombre {
  margin-bottom: -1%;
}

.ponente__logo {
  width: 7%;
}

.ponente--ivana .ponente__logo {
  /* Como Elementor: 25 % del logo a su tamaño natural (416 px), sin pasar del 25 % del ancho */
  width: min(25%, 104px);
}

.ponente__fecha,
.ponente__hora {
  margin: 0;
  font-family: var(--fuente-registro);
  font-size: 1.1em;
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--blanco);
}

.ponente__fecha { font-weight: 500; }
.ponente__hora { font-weight: 300; }

/* Cartel del evento Enter (la imagen ya trae los textos) */
.cartel {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 36%;
  min-height: 50vh;
  padding: 0 0 0.5%;
  border-radius: var(--radio);
  background-image: url("../img/cartel-enter-patricia-pasos.jpg");
  background-position: 0 -12vh;
  background-repeat: no-repeat;
  background-size: 100% auto;
}

/* Ícono de Instagram (solo celular y tableta) */
.instagram {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.5em;
  font-size: 25px;
  color: var(--blanco);
}

.instagram svg {
  width: 1em;
  height: 1em;
  fill: var(--blanco);
}

/* Tableta */
@media (max-width: 1024px) {
  .registro,
  .pagina-enter .registro {
    padding: 5% 0 1%;
  }

  .firma__by p {
    padding: 13% 3% 0 0;
  }

  .ponente--carlos {
    background-position: -18vw -6vh;
    background-size: 170% auto;
  }

  .ponente--ivana {
    background-position: 0 -15vh;
  }

  .ponente__nombre {
    margin-bottom: -1%;
  }

  .ponente--carlos .ponente__logo {
    width: 12%;
  }

  .cartel {
    background-position: -18vw -6vh;
    background-size: 170% auto;
  }
}

/* Celular */
@media (max-width: 767px) {
  .registro {
    padding: 5% 0 0;
  }

  .pagina-enter .registro {
    padding: 2% 0 5%;
  }

  .registro__logo--arriba {
    margin-bottom: -1%;
  }

  .registro__logo--arriba img {
    width: min(50%, 400px);
  }

  .firma {
    width: 100%;
  }

  .firma__hueco-izq { width: 10%; }
  .firma__by { width: 32%; }
  .firma__logo { width: 17%; }
  .firma__hueco-der { width: 41%; }

  .firma__by p {
    padding: 17% 5% 0 0;
    font-size: 0.5em;
  }

  .firma__logo img {
    width: 100%;
  }

  .ponente {
    width: 100%;
    padding: 0 0 2%;
  }

  .ponente--carlos {
    background-position: -37vw -5vh;
  }

  .ponente__nombre {
    font-size: 1.5em;
  }

  .ponente--carlos .ponente__logo {
    width: 11%;
  }

  .ponente__fecha { font-size: 0.9em; }
  .ponente__hora { font-size: 0.8em; }

  .cartel {
    width: 90%;
    min-height: 65vh;
    padding: 0 0 2%;
    background-position: center center;
    background-size: cover;
  }

  .instagram {
    font-size: 1rem;
  }
}

/* =========================================================
   7. FORMULARIO DE PRE-REGISTRO
   ========================================================= */
.caja-form {
  align-self: center;
  width: 60%;
  margin: 0 0 2%;
  padding: 1.2% 2% 1.5%;
  border-radius: var(--radio);
  background-color: var(--caja-form);
}

.pagina-enter .caja-form {
  margin-top: -2.5%;
}

.formulario__campos {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -5px -15px;
}

.campo {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 15px;
  padding: 0 5px;
}

.campo--mitad {
  width: 50%;
}

.campo label {
  display: block;
  width: 100%;
  padding-bottom: 0.3em;
  font-family: var(--fuente-registro);
  font-size: 0.8em;
  font-weight: 600;
  line-height: 1;
  color: var(--negro);
}

.campo input,
.campo textarea {
  display: block;
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 8px 16px;
  border: 0;
  border-radius: var(--radio);
  outline: none;
  background-color: var(--blanco);
  font-family: var(--fuente-registro);
  font-size: 0.8em;
  font-weight: 200;
  line-height: 1.4;
  color: var(--negro);
}

.campo textarea {
  padding: 5px 14px;
  resize: vertical;
}

.campo input:focus,
.campo textarea:focus {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* Campo trampa contra robots: no se ve */
.campo--trampa {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.boton {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 0 24px;
  border: none;
  border-radius: var(--radio);
  background-color: var(--azul-boton);
  font-family: var(--fuente-registro);
  font-size: 0.9em;
  font-weight: 600;
  line-height: 1;
  color: var(--blanco);
  text-decoration: none;
  cursor: pointer;
}

.boton:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* Mensaje de error debajo del botón */
.formulario__aviso {
  width: 100%;
  margin: 0 0 15px;
  padding: 0 5px;
  font-family: var(--fuente-registro);
  font-size: 0.8em;
  font-weight: 600;
  line-height: 1.3;
  color: #8b0000;
}

.formulario__aviso:empty {
  display: none;
}

/* «¡Gracias!» (dentro de la caja del formulario) */
.gracias {
  padding: 1.5em 1em;
  text-align: center;
  color: var(--negro);
}

.gracias:focus {
  outline: none;
}

.gracias__titulo {
  margin-bottom: 0.4em;
  font-family: var(--fuente-registro);
  font-size: 1.8em;
  font-weight: 600;
  color: var(--blanco);
}

.gracias p {
  margin: 0 0 1.2em;
  font-family: var(--fuente-registro);
  font-size: 0.95em;
  font-weight: 400;
  line-height: 1.4;
}

.gracias .boton {
  width: auto;
}

@media (max-width: 767px) {
  .caja-form {
    width: 90%;
    margin: 0 0 5%;
    padding: 3% 3% 4%;
  }

  .pagina-enter .caja-form {
    margin-top: 2%;
  }

  .campo--mitad {
    width: 100%;
  }
}
