/* ============================================================
   HÍBRIDES — hoja de estilos compartida
   Uso en cada página (dentro de <head>):
   <link rel="stylesheet" href="/styles.css">
============================================================ */

/* Fuente: se carga desde aquí para que todas las páginas la tengan */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');


/* ============================================================
   BASE
============================================================ */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Roboto Mono', monospace;
  background-color: #6600ff;
  color: #ffffff;
  background-attachment: fixed;
  background-size: cover;
  margin: 0;
  padding: 0;
}

img {
  width: 100%;
  height: auto;
}


/* ============================================================
   LINKS
============================================================ */
a {
  color: #6600ff;
  text-decoration: none;
}

a:hover {
  color: #6600ff;
  /* background-color: #ffffff; */
  font-weight: 700;
  padding: 4px 5px;
  font-size: 13px;
}

a:active {
  color: black;
}

#i-link {
  color: black;
  text-decoration: none;
}

#i-link:hover {
  color: #828aa1;
  text-decoration: underline;
  background-color: #fafafa;
  padding: 4px 5px;
  font-size: 16px;
}


/* ============================================================
   HEADER / MARQUEE
============================================================ */
.marquee {
  font-family: 'Roboto Mono', monospace;
  font-size: 12px;
  height: 30px;
  width: 100vw;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
  background-color: #6600ff; /* antes: transparent */
  margin: 0;
  padding: 0;
  z-index: 10;
}

.marquee div {
  display: block;
  width: 200%;
  height: 30px;
  position: absolute;
  overflow: hidden;
  animation: marquee 25s linear infinite;
}

.marquee span {
  display: inline-block;
  width: auto;
  color: white;
}

@keyframes marquee {
  0%   { left: 0; }
  100% { left: -100%; }
}

.marquee a {
  color: #ffffff;
  text-decoration: none;
}

.marquee a:hover {
  color: #ffffff;
  background: transparent;
  font-weight: 700;
}


/* ============================================================
   BANNER
============================================================ */
.banner {
  width: 100%;
  padding: 20px 0;
  text-align: center;
}

.banner img {
  max-width: 100%;
  height: auto;
}


/* ============================================================
   TITLE
============================================================ */
.title-container {
  text-align: left;
  padding: 50px 0 20px 40px;
}

.title-container h1 {
  font-size: 9vw;
  font-weight: 700;
  margin: -20px 0;
  color: #ffffff;
}

.title-container h2 {
  font-size: 1vw;
  font-weight: 800;
  margin: 5px 0;
  color: #444444;
}

.title-container h3 {
  font-size: 1vw;
  font-weight: 800;
  margin: 0;
  color: #444444;
}


/* ============================================================
   DESCRIPTION
============================================================ */
.descripcion {
  font-size: 16px;
  font-weight: 380;
  color: #ffffff; /* #444444; */
  text-align: left;
  display: flex;
  width: 60%;
  padding: 20px 40px;
  margin: 20px 0; /* antes el 2º parámetro era auto */
}
.descripcion h2 {
  margin-bottom: 2px;
    line-height:1.1;
}

.descripcion p {
  margin-top: 0;
}

/* ============================================================
   PÁGINAS CON FONDO BLANCO (ej. schedule.html)
   Para usarlo: <body class="pagina-blanca">
============================================================ */
.pagina-blanca {
  background-color: #ffffff;
  color: #222222;
}

.pagina-blanca .descripcion {
  color: #222222;
}

/* ============================================================
   DIVIDER & PROGRAM
============================================================ */
.divider {
  border: none;
  height: 2px;
  background-color: #000;
  margin: 20px auto;
  width: 80%;
}

.program {
  width: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 1vh;
  padding: 2%;
  margin: 20px auto;
  text-align: center;
  font-size: 40px;
  font-weight: 350;
}


/* ============================================================
   BUTTON
============================================================ */
.button-container {
  text-align: left;
  width: 60%;
  padding: 20px 40px;
  margin: 20px 0; /* antes el 2º parámetro era auto */
}

#centered-button {
  /* background: radial-gradient(circle, #9966cc, #cc99ff); */
  font-family: 'Roboto Mono', monospace;
  background: #6600ff;
  color: #ffffff;
  border: 5px dotted #ffffff;
  padding: 12px 10%;
  font-size: 20px;
  border-radius: 15px;
  cursor: pointer;
  outline: none;
  transition: background-color 0.3s;
}

#centered-button:hover {
  border-width: 8px;
}

.button-container #centered-button a,
.button-container #centered-button a:hover {
  text-decoration: none;
  background-color: inherit;
  color: white;
  font-size: inherit;
}

.button-container #centered-button a:hover {
  font-weight: 700;
}


/* ============================================================
   GALLERY (scroll)
============================================================ */
.scroll-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  white-space: nowrap;
}

.image-wrapper {
  display: flex;
  animation: scroll 20s linear infinite;
}

.image-container {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 400px;
}

.image-container img {
  width: 400px;
  height: auto;
  display: block;
  filter: grayscale(15%);
}

.image-container a {
  color: #2600ff;
  font-size: 10px;
  text-decoration: none;
}

.image-container a:hover {
  color: #ff00ff;
  background-color: transparent;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s;
  text-align: center;
  padding: 10px;
  overflow: auto;
}

.overlay a {
  color: #2600ff;
  font-size: 10px;
  text-decoration: none;
}

.overlay a:hover {
  color: white;
  background-color: transparent;
}

.overlay p {
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-wrap: break-word;
  text-align: center;
  white-space: normal;
}

.image-container:hover .overlay {
  opacity: 1;
}

@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ============================================================
   SECTIONS
============================================================ */
.section-container {
  display: flex;
    flex-direction: column;
  padding: 20px;
  border: 1px solid grey;
  border-radius: 10px;
  width: 90%;
     max-width: 720px;
  margin: 20px auto;
}
.section-container a{
    color: black;
    text-decoration: none;
}

.section-container a:hover {
  color: #6600ff;        /* el color que quieras al pasar el ratón */
    font-weight: bold;
  padding: 0;            /* anula el padding del hover general */
  font-size: inherit;    /* mantiene el tamaño de la celda */
}

.section-container a:hover {
  color: #6600ff;        /* el color que quieras al pasar el ratón */
    font-weight: bold;
  padding: 0;            /* anula el padding del hover general */
  font-size: inherit;    /* mantiene el tamaño de la celda */
}

/* Enlaces de tickets/registro en el programa: mini botón */
.section-container .link-registro {
  display: inline-block;
  padding: 4px 10px;
  border: 2px dotted #6600ff;
  border-radius: 12px;
  color: #6600ff;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
}

.section-container .link-registro:hover {
  background-color: #6600ff;
  color: #ffffff;
  padding: 4px 10px;
  font-size: 12px;
}

.title-sec2 {
  display: inline-block;
  padding: 10px;
  text-align: left;
  font-weight: 700;
  font-size: 15px;
  /*writing-mode: vertical-rl;
  transform: scale(-1);*/
}

.tables-sec2 {
  display: flex;
  gap: 20px;
  padding: 10px;
  border-radius: 4px;
  flex: 3;
  width: 100%;
  margin-left: 0px;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th{ /* th table header*/
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

td { /* td table header*/
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
    color: black;
    font-size:14px;
}

th {
  background-color: #f4f4f4;
}

/* ---- Anchos de columna: Time / Activity / Location / Tickets ---- */

/* 1. Time */
.section-container th:nth-child(1),
.section-container td:nth-child(1) {
  width: 90px;
  white-space: nowrap;
}

/* 2. Activity */
.section-container th:nth-child(2),
.section-container td:nth-child(2) {
  width: 60%;
}

/* 3. Location */
.section-container th:nth-child(3),
.section-container td:nth-child(3) {
  width: 12%;
  font-size: 12px;
}

/* 4. Tickets */
.section-container th:nth-child(4),
.section-container td:nth-child(4) {
  width: 12%;
  font-size: 12px;
}


/* ============================================================
   TICKETS / REGISTRATION
============================================================ */
.tickets {
  width: 90%;
  max-width: 720px;
  margin: 20px auto;
}

.tickets h1 {
  font-size: 28px;
  margin-bottom: 24px;
}
.ticket-card {
  border: 1px solid grey;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}
/* Fecha: pequeña, en mayúsculas y en lila */
.ticket-fecha {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6600ff;
  margin: 0;
}

/* Título de la actividad */
.ticket-card h2 {
  font-size: 18px;
  line-height: 1.3;
  margin: 6px 0 4px;
}

/* Con quién */
.ticket-info {
  font-size: 14px;
  margin: 0 0 12px;
}

/* Precio */
.ticket-precio {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 16px;
}

/* El enlace de compra como botón */
.ticket-boton {
  display: inline-block;
  padding: 8px 18px;
  border: 2px dotted #6600ff;
  border-radius: 15px;
  color: #6600ff;
  font-weight: 700;
}

/* Al pasar el ratón: se rellena de lila */
.ticket-boton:hover {
  background-color: #6600ff;
  color: #ffffff;
  padding: 8px 18px;
  font-size: inherit;
}

/* ============================================================
   PARTICIPANTS + PÁGINAS DE TEXTO
   (.participante = páginas de participantes)
   (.pagina-texto = code of conduct y otras páginas de texto)
============================================================ */

/* Caja que envuelve todo */
.participante,
.pagina-texto {
  width: 90%;
  max-width: 720px;
  margin: 20px auto;
}

/* Tipo · fecha · lugar */
.participante .participante-etiqueta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6600ff;
  margin: 0;
}

/* Título principal */
.participante h1,
.pagina-texto h1 {
  font-size: 28px;
  line-height: 1.2;
  margin: 6px 0 8px;
}

/* Nombre del participante */
.participante .participante-nombre {
  font-size: 22px;
  margin: 0 0 16px;
}

/* Fila de enlaces */
.participante-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.participante-link {
  text-decoration: underline;
}

/* Foto */
.participante-foto {
  display: block;
  border-radius: 10px;
  margin-bottom: 8px;
}

/* Títulos de sección en lila y mayúsculas */
.participante h2,
.pagina-texto h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6600ff;
  margin: 32px 0 8px;
}

/* Textos largos */
.participante p,
.pagina-texto p,
.pagina-texto li {
  font-size: 15px;
  line-height: 1.6;
}

/* Enlaces dentro de los textos */
.participante p a,
.pagina-texto a {
  text-decoration: underline;
}

/* Hover sin "saltos" */
.participante p a:hover,
.participante-link:hover,
.pagina-texto a:hover {
  padding: 0;
  font-size: inherit;
}

/* Espacio antes de "Back to program" */
.participante-volver {
  margin-top: 40px;
}

/* ============================================================
   SOLO PÁGINAS DE TEXTO (code of conduct...)
============================================================ */

/* Listas: un poco de aire entre cada punto */
.pagina-texto ul {
  padding-left: 20px;
}

.pagina-texto li {
  margin-bottom: 8px;
}

/* Caja destacada (emergencias) */
.pagina-texto .aviso {
  background-color: #f3eeff;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 32px 0;
}

.pagina-texto .aviso h2 {
  margin-top: 0;
}

.pagina-texto .aviso p {
  margin-bottom: 0;
}

/* Nota de otros idiomas */
.pagina-texto .nota-idiomas {
  margin-top: 40px;
  font-size: 13px;
}
/* ============================================================
   TEXTO VERTICAL
============================================================ */
.texto-vertical {
  text-align: center;
  font-weight: 700;
  font-size: 30px;
  writing-mode: vertical-rl;
  transform: scale(-1);
  padding: 10px;
  margin: 0;
}


/* ============================================================
   VIDEO — WRAP
============================================================ */
.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 — ajustar para otras proporciones */
  overflow: hidden;
}

.video-wrap video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* cover para recortar, contain para mostrar todo */
  display: block;
}


/* ============================================================
   BOTTOM MENU
============================================================ */
.bottom-menu {
  display: flex;
  justify-content: space-around;
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #6600ff;
  /* background-color: #ccccff; */
  border: 1px solid white;
}

.bottom-menu a {
  flex: 1;
  padding: 15px 0;
  text-align: center;
  font-size: 14px;
  color: #ccccff;
  text-decoration: none;
  transition: background-color 0.5s ease;
}

.bottom-menu a:hover {
  background-color: #ccccff;
  color: #6600ff;
}


/* ============================================================
   FOOTER
============================================================ */
.footer {
  background-color: #ffffff;
  color: #000000;
  font-size: 10px;
  text-align: center;
  width: 100%;
  padding: 20px 40px;
  margin: 0;
}

.footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 150px;
}

.footer-logo {
  max-width: 100%;
  height: auto;
  max-height: 60px;
  filter: grayscale(100%);
  transition: filter 0.3s;
}

.footer-logo:hover {
  filter: grayscale(0%);
}




/* ============================================================
   RESPONSIVE — MOBILE
   (siempre al final para que sobrescriba lo anterior)
============================================================ */
@media only screen and (max-width: 768px) {

  .title-container h1 { font-size: 12vw; }
  .title-container h2 { font-size: 3vw; }

  .descripcion {
    font-size: 2.5vw;
    padding: 0 50px;
    width: calc(100% - 10px);
  }

  .program {
    font-size: 10vw;
    padding: 6% 2%;
    height: auto;
  }

  .bottom-menu {
    width: 100vw;
    bottom: 0;
    left: 0;
    right: 0;
  }

  .bottom-menu a {
    padding: 12px 2px;
    font-size: 2.8vw;
    display: flex;
    align-items: center;
    justify-content: center;
  }

    /* La caja ocupa casi toda la pantalla y con menos relleno */
  .section-container {
    width: 95%;
    padding: 10px;
  }

  .tables-sec2 {
    display: block;
    margin-left: 0;
    padding: 0;
      overflow-x:auto;
  }

    
  .section-container table {
    min-width: 500px;     /* la tabla nunca se hace más estrecha que esto */
  }
  /* Título del día más pequeño (el h1 por defecto es enorme) */
  .title-sec2 h1 {
    font-size: 20px;
  }

  /* Celdas más compactas */
  .section-container th,
  .section-container td {
    padding: 6px;
    font-size: 12px;
  }
    
  table { margin-bottom: 20px; }

  .title-sec2 {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 18px;
    text-align: left;
    margin: 0;
    padding: 10px;
  }

  .overlay {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.35);
  }

  .image-wrapper { animation: none; }

  .footer-logos { gap: 15px; }
  .logo-item    { max-width: 100px; }
}