  *,
*::before,
*::after {
  box-sizing: border-box;
}

img,
video,
table {
  max-width: 100%;
  height: auto;
}

body {
  overflow-x: hidden;
}



top: auto;
  left: auto;  top: auto;
  left: auto;/* ===== RESET ========================================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* ===== AJUSTES GENERALES ==================================================== */
html, body {
  overflow-x: hidden;
}
:root {
  --naranja-base: #f28c28;
  --naranja-oscuro: #d96a0b;
  --burdeos: #73191A;
  --burdeos-claro: #a3292b;
  --oscuro: #1f1f1f;
  --gris: #444;
  --blanco: #ffffff;
  --cerveza: #f0c040;
  --header-offset: 170px;
  --header-offset-mobile: 95px;
  --amarillo: #ffcc00;
  --amarillo-claro: #fff3b0;
  --negro: #111;
  --gris-card: rgba(255, 255, 255, 0.88);
  --rojo-acento: #ff3b3b;
}



/* ===== BODY ========================================================= */
body {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  background-image: url("../Imagenes/Fondo.jpg");
  background-repeat: repeat;
  padding-top: 230px;
  cursor: url("../Imagenes/beer_cursor.png") 16 16, pointer;
}

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




/* ===== TIPOGRAFÍA ========================================================= */
h1, h2 {
  font-family: 'Permanent Marker', cursive;
  letter-spacing: 1px;
  text-transform: uppercase;
}

h1 {
  font-size: 34px;
  margin-bottom: 10px;
  color: var(--naranja-oscuro);
  font-weight: bold;
}

h2 {
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--naranja-oscuro);
}

h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

p {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 10px;
}



/* ===== HEADER ========================================================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: linear-gradient(135deg, var(--naranja-oscuro), var(--burdeos));
  backdrop-filter: blur(6px);
  text-align: center;
  padding: 6px 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  transition: all 0.35s ease;
  min-height: var(--header-offset);
}




/* ===== HEADER TOP ========================================================= */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 15px;
}



/* ===== BANNER ========================================================= */
.banner {
  height: 100px;
  width: auto;
  display: block;
  margin: auto;
}



/* ===== NAV ========================================================= */
.nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 10px auto;
  backdrop-filter: blur(6px);
  background: rgba(0,0,0,0.75);
  padding: 18px;
}

.nav a {
  color: white;
  text-decoration: none;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.nav a:hover {
  background: rgba(255,255,255,0.2);
}


/* ===== SUBMENU INTERNO GENERAL ================================= */

.submenu {

  position: fixed;
  top: 190px; /* mismo alto que el header */
  left: 50%;
  transform: translateX(-50%);
  z-index: 950;
  margin: 0;
  padding: 10px 14px;
  border-radius: 18px;
  width: max-content;
  max-width: 95%;
  background: linear-gradient(135deg, var(--naranja-oscuro), var(--burdeos));
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.submenu a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(0,0,0,0.25);
  transition: all 0.2s ease;
}

.submenu a:hover {
  background: var(--cerveza);
  color: black;
  transform: translateY(-2px);
}

/* Para que los saltos no queden debajo del header */

.ancla {
  scroll-margin-top: 200px;
}

/* Dropdown desplegable dentro de algunas secciones */
.dropdown {
  position: relative;
  overflow: visible;
}

.dropdown-content {
  display: none;
  position: fixed;
  background-color: #f28c28; /* ajusta al naranja de tu web */
  border-radius: 8px;
  overflow: hidden; /* para que los bordes afecten a los enlaces */
  min-width: 180px;
  top: auto;
  left: auto;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
  z-index: 9999;
}

.dropdown-content a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: white;
}

.dropdown-content a:hover {
  background-color: rgba(255,255,255,0.2);
}

.dropdown .button {
  font-size: 0.9em;
  padding: 10px 15px; /* igual que tus otros botones */
  line-height: normal;
}

/* Para escritorio */
.dropdown:hover .dropdown-content {
  display: block;
}

.menu .dropdown {
  display: inline-block;
}

.menu .dropdown .button {
  display: inline-block;
}

.menu {
  overflow: visible;
}

.dropdown-content {
  z-index: 9999;
}

/* ===== FRASE DEL DÍA ================================= */

.frase-dia {
  display: flex;
  justify-content: center;
  background: transparent;
  padding: 20px;
  margin-bottom: -20px;
  margin-top: -40px;
}

/* CARTEL */

.cartel-bar {
  border:  4px solid #5a3b1c;
  padding: 3px 25px;
  font-family: 'Permanent Marker', cursive;
  font-size: 20px;
  box-shadow:
    3px 3px 0 #000,
    inset 0 0 10px rgba(0,0,0,0.2);
  position: relative;
}


.cartel1 { background: #fff4c4; color: #222; }
.cartel2 { background: #2b2b2b; color: #fff; }
.cartel3 { background: #d2a679; color: #222; }
.cartel4 { background: #f5f5f5; color: #111; }
.cartel5 { background: #ffcc00; color: #000; }


/* ROTACIONES */

.rot1 { transform: rotate(-2deg); }
.rot2 { transform: rotate(1deg); }
.rot3 { transform: rotate(-1deg); }
.rot4 { transform: rotate(2deg); }



/* CELO */

.celo::before {
  content: "";
  position: absolute;
  width: 50px;
  height: 12px;
  background: rgba(255,255,255,0.7);
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(5deg);
}



/* CHINCHETA */

.chincheta::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: red;
  border-radius: 50%;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 2px black;
}



/* SOMBRA FUERTE */

.sombra {

  box-shadow:
    5px 5px 0 black,
    inset 0 0 10px rgba(0,0,0,0.3);
}

/* PARA QUE EL CARTEL A VECES SE DESCOLOQUE */

.despl1 { margin-left: -10px; }
.despl2 { margin-left: 10px; }
.despl3 { margin-top: -5px; }
.despl4 { margin-top: 5px; }




/* ===== HERO ========================================================= */
.hero {
  max-width: 700px;   /* ajusta el ancho */
  margin: 20px auto;   /* ajusta lo pegado o despegado que esté del header */
  padding: 0px 18px 0px;   /* ajusta el alto */
  border-radius: 26px;   /* esquinas redondeadas */
  position: relative;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(135deg, #ffcc00, #ff9f00);
  backdrop-filter: blur(6px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.22);
  animation: fadeRunner 0.7s ease;
  transform: rotate(-2deg);   /* cartel inclinado */
}

.hero h2 {
  font-size: 3.2rem;
  margin: 10px 0;
  color: var(--negro);
  letter-spacing: 1.5px;
	  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero h1 {
  font-size: 46px;
  color: var(--naranja-oscuro);
  letter-spacing: 1.5px;
	  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
}
.hero-btn {
  display: inline-block;
  margin-top: 18px;
  padding: 14px 28px;
  background: var(--negro);
  color: var(--amarillo);
  text-decoration: none;
  border-radius: 40px;
  font-weight: 600;
  transition: 0.3s;
}

.hero-btn:hover {
  transform: scale(1.07);
}

.hero-claro {
  background: var(--amarillo-claro);
}

/* = MARCA DE AGUA CORREBIRRAS EN HERO = */

.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  top: px;
  left: 10px;
  background-image: url("../Imagenes/Correbirrica_01.png");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.1;
  transform: rotate(-15deg);
  pointer-events: none;
}

/* para que el texto quede encima */

.hero > * {

  position: relative;
  z-index: 1;

}


/* ===== LAYOUT ========================================================= */
.container {
  display: grid;
  grid-template-columns: 2.6fr 0.85fr;
  gap: 22px;
  width: 80%;
  max-width: 1600px;
  margin: 0 auto;
}
.container.fullwidth {
  display: block;          /* cambiamos de grid a block para evitar gaps invisibles */
  width: 95%;              /* ocupa casi todo el ancho. Podemos bajarlo para que sea más estrecho */
  max-width: 1400px;       /* límite máximo. Así no se ven franjas blancas a los lados */
  margin: 0 auto;          /* centrado horizontal */
  padding: 0;              /* eliminar padding extra */
}

.container.fullwidth .card {
  max-width: 1500px;
  margin: 0 auto 20px;
}

.container.fullwidth .card.card-ranking {
  max-width: 1000px;
  margin: 0 auto 20px;
}

.container.fullwidth .card.card-ranking:hover {
  transform: none;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.doc-container {
  display: flex;
  justify-content: center;
	
}

.doc-container iframe {
  width: 100%;
  max-width: 900px; /* limita el ancho para que no se desparrame */
  border: none;
  min-height: 800px; /* ajusta según lo largo que sea */
  background: white;
  padding: 20px;
  border-radius: 12px;	
}


/* ===== CARD ========================================================= */
.card {
  background: var(--gris-card);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transition: 0.3s;
  backdrop-filter: blur(6px);
  animation: fadeRunner 0.6s ease;
  margin-bottom: 20px;
}

.card:hover {
  transform: translateY(-4px) rotate(-0.3deg);
  box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.card img {
  width: 90%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: 0.3s;
  display: block;
  margin: 15px auto;
}

.card:hover img {
  transform: scale(1.03);
}

.card img:hover {
  filter: brightness(1.05);
}

.card h1 {
  font-size: 2.4rem;
  color: var(--negro);
}
.card h2 {
  color: var(--naranja-oscuro);
  font-size: 2rem;
}
.card:nth-child(odd) {
  transform: rotate(-0.2deg);
}
.card p,
.card ul {

  max-width: 100%;
  margin-left: auto;
  margin-right: auto;

}
.card p {

  line-height: 1.6;
  font-size: 1.05rem;

}
.destacada {
  font-size: 1.2em;
  border: 3px solid #ffcc00;
}

/* = MARCA DE AGUA CORREBIRRAS EN CARDS = */

.card {

  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  background-image: url("../Imagenes/Correbirrica_01.png");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.1;
  top: -40px;
  right: -40px;
  transform: rotate(-15deg);
  pointer-events: none;
}

/* =PATRÓN EN CARDS GRANDES = */

.gallery-card::before,
.albums-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../Imagenes/Correbirrica_01.png");
  background-size: 160px;
  background-repeat: repeat;
  opacity: 0.04;
  transform: rotate(-15deg);
  pointer-events: none;
}

/* =ANIMACIÓN SUAVE AL ENTRAR EN LAS CARDS = */

.card {
  animation: fadeInUp 0.4s ease;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =PARA EVITAR SANGRÍAS RARAS EN LAS CARDS = */
.card p,
.card ul,
.card ol,
.card h2,
.card h3 {
  margin-left: 0;
  margin-right: 0;
}

.card ul,
.card ol {
  padding-left: 20px;
}



/* ===== SIDEBAR ========================================================= */
.sidebar {
  background: rgba(255, 255, 255, 0.80);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.sidebar .card {
  text-align: center;
  transform: rotate(-0.5deg);
  color: white;
}
.sidebar .card:hover {
  transform: rotate(0deg) scale(1.02);
}

.sidebar img {
  max-width: 200px;
  margin: 8px auto;
  display: block;
  transition: 0.3s;
}
.sidebar img:hover {
  transform: scale(1.05);
}

.sidebar h1 {
  font-size: 34px;
  color: var(--negro);
  letter-spacing: 1.5px;
}
.logos {
  display: flex;
  flex-direction: column;
  gap: 35px;
}




/* ===== BUTTONS ========================================================= */
.button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--naranja-oscuro), var(--burdeos-claro));
  color: var(--blanco);
  text-decoration: none;
  font-weight: bold;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
}

.button:hover {
  transform: translateY(-2px) scale(1.07) rotate(-1deg);
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
}

.button.secondary {
  background: var(--oscuro);
}

.button.secondary:hover {
  background: #222;
}

.button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.25),
    transparent
  );
  transition: all 0.5s ease;
}

.button::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -40px;
  width: 20px;
  height: 20px;
  background: rgba(255,255,255,0.35);
  border-radius: 50%;
  transform: translateX(-50%);
  opacity: 0;
}


.button:hover::before {
  left: 120%;
}


.button:hover::after {
  animation: bubbleUp 0.6s ease-out forwards;
}
@keyframes bubbleUp {
  0% {
    bottom: -30px;
    opacity: 0;
    transform: translateX(-50%) scale(0.6);
  }
  50% {
    opacity: 0.6;
  }
  100% {
    bottom: 120%;
    opacity: 0;
    transform: translateX(-50%) scale(1.4);
  }
}





/* ===== UTILIDADES ========================================================= */

.highlight {
  font-weight: bold;
  color: var(--cerveza);
}

.muted {
  color: #777;
  font-size: 14px;
}

.big {
  font-size: 20px;
}

.small {
  font-size: 13px;
}



/* ===== IMÁGENES ========================================================= */

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.img-pequena {
  width: 150px !important;
  height: auto !important;
}
.card img.img-pequena {
  width: 150px;
  height: auto;
}



/* ===== EMBEDS ========================================================= */

.embed {
  width: 100%;
  overflow: hidden;
}

.embed iframe {
  width: 100%;
  height: 800px;
  border: none;
}


/* ===== FOOTER ========================================================= */

footer {
  background: #73191A;
  color: white;
  text-align: center;
  padding: 35px 15px;
  margin-top: 60px;
}

footer img {
  width: 130px;
  max-width: 100%;
  height: auto;
}


footer a {
  color: var(--cerveza);
  text-decoration: none;
}

/* = MARCA DE AGUA CORREBIRRAS EN FOOTER = */

footer {

  position: relative;
  overflow: hidden;

}

footer::before {

  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  bottom: -40px;
  right: -40px;
  background-image: url("../Imagenes/Correbirrica_01.png");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.06;
  transform: rotate(15deg);
  pointer-events: none;

}

footer > * {

  position: relative;
  z-index: 1;

}
/* = DOBLE LÍNEA ARRIBA EN FOOTER = */

  border-top: 6px solid #ffb100;
  box-shadow: 0 -6px 12px rgba(0,0,0,0.2);



/* ===== ANIMACIONES ========================================================= */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes fadeRunner {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}





/* ===== TABLA DE LA AGENDA ======================================= */


/*  LEYENDA CON LOS DETALLES  */

.leyenda-detalles {
  max-width: 1000px;
  margin: 10px auto 20px;
  padding: 8px 12px;
  
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
  text-align: center; 
  font-size: 0.85em;
  color: #555;

  background: rgba(0,0,0,0.03);
  border-radius: 8px;
}

.leyenda-detalles span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 10px;
  border-right: 1px solid rgba(0,0,0,0.1);
}

.leyenda-detalles span:last-child {
  border-right: none;
}

.leyenda-detalles strong {
  color: #333;
  font-weight: 600;
}


/*  CONTENIDO AGENDA  */
.content.agenda {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  grid-column: 1 / -1;
}

/* CELDAS */
.agenda-table th,
.agenda-table td{
  padding:8px 10px;
}

/* LA TABLA EN SÍ */

.agenda-table {
  width: 100%;
  min-width: 100%;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.agenda-table thead {
  background: linear-gradient(135deg, var(--burdeos), var(--oscuro));
  color: white;
}

.agenda-table th {
  padding: 14px 10px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 1px;
}
.agenda-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  font-size: 14px;
  font-weight: 600;
  white-space: normal;
  z-index: 0; /* Asegura que el contenido de las celdas esté debajo del enlace */

}
.agenda-table tbody tr {
  transition: all 0.2s ease;
}

.agenda-table tbody tr:hover {
  filter: brightness(1.1) saturate(1.1);
  transform: scale(1.015);
  transition: all 0.15s ease;
  cursor: pointer;
}

/* para resaltar el paso del cursor en las filas */
.agenda-table tr {
  position: relative;
}

/* CONTENEDOR SCROLL */
.table-container{
  width:100%;
  overflow-x: auto;
  -webkit-overflow-scrolling:touch;
  border-radius: 18px;
  overflow: hidden;
	
}


/* ETIQUETAS Y COLORES */

.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  vertical-align: middle;
}
/* MONTAÑA ? verde */
.tag.montana {
  background: #27ae60;
  color: white;
}

/* MIXTA ? amarillo oscuro */
.tag.mixta {
  background: #f39c12;
  color: white;
}

/* ASFALTO ? gris */
.tag.asfalto {
  background: #444;
  color: white;
}

/* OBSTÁCULOS ? rojo cañero */
.tag.obstaculos {
  background: #d62828;
  color: white;
}

tr.provincia-murcia {
  background: #ffd966; /* amarillo pastel */
  font-weight: bold;
  border-left: 8px solid #e6c250; /* borde suavizado */
}

tr.provincia-albacete {
  background: #7faaff; /* azul pastel */
  font-weight: bold;
  border-left: 8px solid #6699cc; /* borde más suave */
}

tr.provincia-alicante {
  background: #66d49f; /* verde pastel */
  font-weight: bold;
  border-left: 8px solid #4db07f; /* borde suavizado */
}

tr.provincia-almeria {
  background: #ff8abf; /* rosa pastel */
  font-weight: bold;
  border-left: 8px solid #e6739b; /* borde suavizado */
}
.agenda-table tbody tr td {
  color: #111;
}



/* COLUMNAS */
.col-fecha{width:100px;}
.col-hora{width:80px;}
.col-tipo{width:100px;}
.col-senderista{width:40px;}
.col-extra{width:80px;  white-space: nowrap; }
.col-localidad{width:140px;}
.col-provincia{width:100px;}
.col-distancia{width:120px;}
.col-precio{width:100px;}
.col-carrera{
  min-width:260px;
  white-space:normal;
  word-break:break-word;
	  overflow-wrap: anywhere;
}

/* EXTRAS AUTOMÁTICOS */

.col-hora::after   { content: " h."; }


/* BADGE CARRERAS GRATUITAS */
.badge-gratis {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  display: inline-block;
}



/* ===== MENÚ DE LOS MESES ======================================= */

.meses-nav {
  position: fixed;
  top: calc(var(--header-offset) + 20px);  /* Subir o bajar el valor de px para pegarlo o separarlo más del header */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1100px;
  z-index: 998;
  background: linear-gradient(135deg, var(--naranja-oscuro), var(--burdeos));
  padding: 12px 10px;
  border-radius: 16px;
}
.menu-meses button {
    white-space: nowrap;        /* Evita que el texto se parta */
    flex: 0 0 auto;             /* No se encogen raro */
}

.meses-nav a {
  padding: 6px 10px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
  color: white;
  background: rgba(255,255,255,0.12);
  transition: all 0.2s ease;
  white-space: nowrap;
  flex: 0 0 auto;
}
.meses-nav a:hover {
  background: var(--naranja-oscuro);
  transform: translateY(-2px);
}
.mes-titulo {
  font-size: 28px;
  color: var(--burdeos);
  letter-spacing: 1px;
  margin: 35px 0 15px;
  scroll-margin-top: 140px;
}

.meses-nav a.activo {
  background: var(--cerveza);
  color: black;
  transform: scale(1.08);
}
.mes-btn {
  white-space: nowrap;
}
html {
  scroll-behavior: smooth;
}


/* ===== FILTROS BUSCADOR ======================================= */

.agenda-controls {
  margin: 25px auto 35px;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#buscador {
  padding: 10px 14px;
  border-radius: 10px;
  border: 2px solid var(--burdeos);
  font-size: 15px;
  outline: none;
}

#buscador:focus {
  border-color: var(--naranja-oscuro);
  box-shadow: 0 0 0 3px rgba(242,140,40,0.2);
}

.filtros {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.filtro {
  padding: 6px 12px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: bold;
  background: var(--oscuro);
  color: white;
  transition: all 0.2s ease;
}

.filtro:hover {
  transform: translateY(-1px);
}

.filtro.active {
  background: var(--cerveza);
  color: black;
}

.filtros-extra {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filtros-extra select {
  padding: 8px 12px;
  border-radius: 10px;
  border: 2px solid var(--burdeos);
  font-size: 13px;
  background: white;
  cursor: pointer;
}

.filtros-extra select:focus {
  border-color: var(--naranja-oscuro);
  outline: none;
}

nav {
  max-width: 100%;
  overflow-x: auto;
}
.menu {
  flex-wrap: nowrap;
}
.menu a {
  letter-spacing: 0.3px;
  font-size: 13px;
  padding: 8px 14px;
}
@media (max-width: 1200px) {
  .menu a {
    font-size: 12px;
    padding: 7px 11px;
  }
}
.col-localidad {
  font-weight: 600;
  color: var(--gris);
}
.col-tipo {
  white-space: nowrap;
  text-align: center;
  font-size: 10px;
}

.col-carrera {
  max-width: 320px;
  word-wrap: break-word;
}

.col-carrera a {
  display: block;
  line-height: 1.3;
}
.col-senderista {
  font-size: 18px;
}
.col-extra {
  font-size: 18px;
}
.filtros {
  max-width: 1100px;
  margin: 15px auto 10px;
  padding: 10px;
  text-align: center;

}
#buscador {
  width: 100%;
  max-width: 1100px;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  margin-bottom: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.filtros-tipo {
  margin: 8px 0;
}

.filtros-tipo button {
  background: var(--oscuro);
  color: white;
  border: none;
  padding: 6px 12px;
  margin: 4px 3px;
  border-radius: 16px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filtros-tipo button:hover {
  background: var(--burdeos);
  transform: translateY(-1px);
}
.filtros select {
  padding: 6px 10px;
  border-radius: 8px;
  border: none;
  margin: 6px 4px;
  font-size: 13px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}
.filtros-provincia {
  margin-top: 6px;
}

.filtros-provincia button {
  background: var(--oscuro);
  color: white;
  border: none;
  padding: 7px 14px;
  margin: 4px 5px;
  border-radius: 18px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-weight: 600;
}

.filtros-provincia button:hover {
  transform: translateY(-2px) scale(1.05);
}
.filtros-linea {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0;
}


.filtros select {
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}


.proximamente .col-fecha {
  color: #b9770e;
  font-size: 0.7em;
  opacity: 0.85;
  font-style: italic;
}



.separador-semana {
  font-weight: 700;
  font-size: 1.05em;
  text-transform: uppercase;
  letter-spacing: 3px;

  color: #5a1a22;
  background: #e6b8c0;

  padding: 4px 12px;
  line-height: 1.2;
}

.separador-semana::after {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(to right, transparent, #ccc, transparent);
  margin-top: 6px;
}

.hora-pendiente,
.precio-pendiente,
.distancia-pendiente {
  color: #b0b0b0;
  font-size: 0.9em;
}

/* ===== ENLACES DE AGENDA CON RANKING y RECORRIDOS=========================== */

.ranking-badge,
.recorrido-badge {
  position: relative;
  text-decoration: none;
  font-size: 1.1em;
  cursor: pointer;
  margin-right: 4px;
}

/* Tooltip */
.ranking-badge::after,
.recorrido-badge::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.75em;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* Flecha */
.ranking-badge::before,
.recorrido-badge::before {
  content: "";
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%);
  
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0,0,0,0.8) transparent transparent transparent;
  
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Mostrar */
.ranking-badge:hover::after,
.ranking-badge:hover::before,
.recorrido-badge:hover::after,
.recorrido-badge:hover::before {
  opacity: 1;
}

/* tooltips al poner el cursor */
.tooltip {
  position: relative;
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;

  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);

  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.icono-link {
  text-decoration: none;   /* quita el subrayado */
  color: inherit;          /* evita el azul típico */
}

.icono-link,
.icono-link:visited,
.icono-link:hover,
.icono-link:active {
  text-decoration: none;
  color: inherit;
}


/* ===== GALERÍA CORREBIRRAS ========================================================= */


/* =ÁLBUMES = */

.albums-card {
  background: linear-gradient(180deg, #fff8e8, #ffd79a);
  border-radius: 18px;
  padding: 25px;
  box-shadow:
    inset 0 2px 6px rgba(0,0,0,0.08),
    0 8px 20px rgba(0,0,0,0.18);
}

.back-link {
  text-decoration: none;
  font-size: 14px;
  color: #73191A;
}

.back-link:hover {
  text-decoration: underline;
}

.albums-title {
  text-align: center;
  margin: 10px 0 25px;
  font-size: 26px;
  color: #73191A;
}

.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.album-card {
  background: #fafafa;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: black;
  transition: 0.25s;
}

.album-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

.album-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.album-info {
  padding: 10px;
}

.album-info h4 {
  font-size: 15px;
  margin-bottom: 6px;
}

.album-tag {
  font-size: 12px;
  background: #73191A;
  color: white;
  padding: 4px 8px;
  border-radius: 20px;
}


/*  EFECTO POLAROID  */

.album-card {
  background: white;
  padding: 10px 10px 18px;
  border-radius: 6px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
  transform: rotate(-1deg);
  transition: 0.3s;
}

.album-card:nth-child(even) {
  transform: rotate(1deg);
}

.album-card:nth-child(3n) {
  transform: rotate(-2deg);
}

.album-card:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 0 12px 24px rgba(0,0,0,0.25);
}

.album-card img {
  border-radius: 3px;
  margin-bottom: 8px;
}


/*  BOTÓN VOLVER  */

.back-button {
  display: inline-block;
  margin-bottom: 20px;
  padding: 8px 16px;
  border-radius: 20px;
  background: #73191A;
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-family: 'Montserrat', sans-serif;
  transition: 0.25s;
  position: relative;
}

.back-button:hover {
  background: #8f2224;
  transform: translateX(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}


/*  BUSCADOR DE ÁLBUMES  */

.album-search {
  text-align: center;
  margin: 20px 0;
}

#albumSearchInput {
  width: 60%;
  max-width: 400px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 16px;
}

#albumSearchResults {
  margin-top: 15px;
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}


/*  GALERÍA CORREBIRRAS PRO  */

.gallery-card {
  background: linear-gradient(180deg, #fff8e8, #ffd79a);
  border-radius: 18px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}


/* GRID */

.gallery-years {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 22px;
  margin-top: 25px;
}


/* TARJETAS */

.year-card {
  background: linear-gradient(145deg,#ffb347,#ff7b00);
  border-radius: 18px;
  padding: 18px;
  box-shadow:
    0 5px 12px rgba(0,0,0,0.25),
    inset 0 2px 5px rgba(255,255,255,0.4);
  transition: all 0.25s ease;
  position: relative;

}


/* borde tipo dorsal */

.year-card::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 14px;
  border: 2px dashed rgba(255,255,255,0.6);
  pointer-events: none;
}


/* hover */

.year-card:hover {
  transform: translateY(-8px) scale(1.06);
  background: linear-gradient(145deg,#ffd36b,#ff4d00);
  box-shadow:
    0 12px 28px rgba(0,0,0,0.45),
    inset 0 3px 6px rgba(255,255,255,0.5);

}


/* imagen */

.year-card img {

  width: 100%;
  max-width: 120px;
  height: auto;
  transition: transform 0.25s ease;
}

.year-card:hover img {
  transform: rotate(-3deg) scale(1.1);
}


/* Correbirrica en la esquina */

.year-card::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 30px;
  height: 30px;
  background-image: url("../Imagenes/Correbirrica_01.png");
  background-size: contain;
  background-repeat: no-repeat;
}

/* intro */

.gallery-intro {
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  max-width: 850px;
  margin: auto;
  margin-bottom: 25px;
}
.archivo-intro {
  background: linear-gradient(135deg,#fff7cc,#ffe08a);
  border-radius: 18px;
  padding: 25px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  text-align: center;
  max-width: 700px;
  margin: auto;
  margin-bottom: 30px;
}

.archivo-intro h2 {
  margin-bottom: 10px;
  color: #73191A;
  font-size: 26px;
}

.archivo-intro p {
  font-size: 16px;
  line-height: 1.6;
}

/* ===== DORSAL ARCHIVO ===== */

.dorsal-box {
  position: relative;
  background: linear-gradient(135deg, #d9b38c, #c79a6e); /* base corcho */
	  background-color: #c79a6e;   /* ? FONDO SÓLIDO obligatorio */
	  background-size: cover;
  background-position: center;
  background-image: 
    repeating-linear-gradient(
      45deg,
      rgba(0,0,0,0.02) 0px,
      rgba(0,0,0,0.02) 1px,
      transparent 1px,
      transparent 5px
    );
	/* ligera textura tipo corcho */
  border-radius: 18px;
  padding: 30px 25px 25px;
  box-shadow:
    0 10px 25px rgba(0,0,0,0.25),     /* sombra exterior */
    inset 0 5px 8px rgba(0,0,0,0.1);   /* relieve interior */
  border: 2px dashed rgba(255,255,255,0.6);
  color: #333;
  font-family: 'Montserrat', sans-serif;
	  /* quitar transparencia total */
  backdrop-filter: none !important;
	  -webkit-backdrop-filter: none !important;
  opacity: 1;
}


/* borde tipo dorsal */

.dorsal-box::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 14px;
  border: 2px dashed rgba(255,255,255,0.7);
  pointer-events: none;
}

/* título */

.dorsal-box h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  text-align: center;
  margin-bottom: 10px;
}

/* texto */

.dorsal-box p {
  font-size: 16px;
  line-height: 1.7;
  font-weight: 600;
}


/* icono esquina tipo dorsal */

.dorsal-box::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 35px;
  height: 35px;
  background-image: url("../Imagenes/Correbirrica_01.png");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ===== CHINCHETAS ===== */

.dorsal-box .pin {
  position: absolute;
  width: 18px;
  height: 18px;
  background: radial-gradient(circle at 30% 30%, #ffffff, #bbbbbb);
  border-radius: 50%;
  box-shadow:
    0 2px 3px rgba(0,0,0,0.4),
    inset 0 2px 3px rgba(255,255,255,0.7);
}

/* posiciones */

.pin.p1 { top: -8px; left: -8px; }
.pin.p2 { top: -8px; right: -8px; }
.pin.p3 { bottom: -8px; left: -8px; }
.pin.p4 { bottom: -8px; right: -8px; }




/* ===== CATÁLOGO ====================================== */
.catalogo {
  margin-top: 60px;
  text-align: center;
}

.titulo-catalogo {
  font-family: 'Bebas Neue', cursive;
  font-size: 2.5rem;
  margin-bottom: 40px;
}

.productos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.producto {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.producto:hover {
  transform: translateY(-5px);
}

.producto img {
  width: 100%;
  max-height: 250px;
  object-fit: contain;
  margin-bottom: 15px;
}

.producto h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  margin-bottom: 10px;
}

.producto p {
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.precio {
  font-weight: bold;
  font-size: 1.2rem;
  color: #990000;
}
.boton-comprar {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 18px;
  background-color: #990000;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.boton-comprar:hover {
  background-color: #cc0000;
  transform: scale(1.05);
}

/* ===== ENLACES ====================================== */

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.link-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background: #ffffff;
  border-radius: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.link-item img {
  max-width: 100%;
  max-height: 80px;
}

.link-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}


/* ===== ZONA PRIVADA ====================================== */


body.zona-privada {
  background-image: url("../Imagenes/Fondo_privado.jpg");
  background-size: cover;
  background-attachment: fixed;
}

body.zona-privada header {
  background-color: #d35400;
}

body.zona-privada nav {
  background-color: #e67e22;
}

body.zona-privada .header-top {
  background-color: #d35400;
}

body.zona-privada .hero {
  background: linear-gradient(rgba(211,84,0,0.85), rgba(230,126,34,0.85));
}


body.zona-privada .lema {
  font-size: 18px;
  margin-top: 10px;
  font-style: italic;
  color: #fff;
  letter-spacing: 1px;
}
body.zona-privada .content {
  display: block;
  padding: 10px 20px 20px 20px;
}
body.zona-privada .content.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 35px;
}

body.zona-privada .card {
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border-radius: 12px;

}

body.zona-privada .card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

body.zona-privada .card h2 {
  font-size: 18px;
  color: yellow;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  background-color: rgba(0,0,0,0.2);
  padding: 3px 8px;
  border-radius: 5px;
  display: inline-block;
}

body.zona-privada .icono {
  font-size: 40px;
  margin-bottom: 10px;
}

/* = Colores de las Cards = */

body.zona-privada .card-carreras {
  background-color: #e67e22;
  color: white;
}

body.zona-privada .card-ligas {
  background-color: #3498db;
  color: white;
}

body.zona-privada .card-entrenos {
  background-color: #27ae60;
  color: white;
}

body.zona-privada .card-agenda {
  background-color: #9b59b6;
  color: white;
}

body.zona-privada .card-equipaciones {
  background-color: #f1c40f;
  color: black;
}

body.zona-privada .card-socios {
  background-color: #2c3e50;
  color: white;
}

body.zona-privada .card-comunicados {
  background-color: #e74c3c;
  color: white;
}

body.zona-privada .card-documentos {
  background-color: #7f8c8d;
  color: white;
}

/* = Iconos en un circulito = */

body.zona-privada .icono {
  font-size: 30px;
  margin-bottom: 10px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

body.zona-privada .card:hover .icono {
  background-color: rgba(255,255,255,0.4);
}

/* SUBMENU INTERNO */

.subnav {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: fit-content;
  margin: 10px auto;
  padding: 8px 15px;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.subnav a {
  color: white;
  text-decoration: none;
  margin: 5px;
  padding: 6px 12px;
  font-weight: bold;
  background: rgba(0,0,0,0.2);
  border-radius: 5px;
  display: inline-block;
}

.subnav a:hover {
  background: rgba(0,0,0,0.4);
}

/* SUBNAV POR SECCION */

body.zona-privada.carreras .subnav {
  background: #e67e22;
}

body.zona-privada.ligas .subnav {
  background: #3498db;
}

body.zona-privada.entrenos .subnav {
  background: #27ae60;
}

body.zona-privada.agenda .subnav {
  background: #9b59b6;
}

body.zona-privada.equipaciones .subnav {
  background: #f1c40f;
}
body.zona-privada.equipaciones .subnav a {
  color: black;
}

body.zona-privada.comunicados .subnav {
  background: #e74c3c;
}

body.zona-privada.documentos .subnav {
  background: #7f8c8d;
}

body.zona-privada.socios .subnav {
  background: #16a085;
}

/* HERO por secciones */

body.zona-privada.carreras .hero {
  background: #e67e22;
}

body.zona-privada.ligas .hero {
  background: #3498db;
}

body.zona-privada.entrenos .hero {
  background: #27ae60;
}

body.zona-privada.agenda .hero {
  background: #9b59b6;
}

body.zona-privada.equipaciones .hero {
  background: #f1c40f;
  color: black;
}

body.zona-privada.comunicados .hero {
  background: #e74c3c;
}

body.zona-privada.documentos .hero {
  background: #7f8c8d;
}

body.zona-privada.socios .hero {
  background: #16a085;
}


/* Álbum de fotos de LOS SOCIOS */

.socios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 20px;
  justify-content: center;
}

.socio {
  text-align: center;
  font-size: 12px;
}

.socio img {
  width: 100px;
  height: 125px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #ddd;
}

.socio-nombre {
  font-weight: bold;
  margin-top: 5px;
}

.socio-numero {
  font-size: 11px;
  color: #555;
}


/* ===== TABLA CARRERAS BONIFICADAS ========================================================= */

.tabla-socios {
  width: max-content;      /* CLAVE */
  min-width: 900px;        /* asegura que crezca */
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 20px;
  font-size: 0.9rem;
}

.tabla-socios th {
  background: #111;
  color: white;
  padding: 10px;
  position: sticky;
  top: 0;
}

.tabla-socios td {
  padding: 8px;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.tabla-socios tr:nth-child(even) {
  background: #f9f9f9;
}

.tabla-socios td:first-child {
  text-align: left;
  font-weight: 600;
}

.tabla-socios th,
.tabla-socios td {
  border-right: 1px solid #ddd;
}

.tabla-socios th:last-child,
.tabla-socios td:last-child {
  border-right: none;
}
.tabla-socios td,
.tabla-socios th {
  transition: background 0.15s;
}

/* Fila hover */
.tabla-socios tr:hover td {
  background-color: #f5f5f5;
}

/* Columna activa */
.tabla-socios .col-hover {
  background-color: #eaeaea !important;
}

/* Primera columna: número */
.tabla-socios td:nth-child(1),
.tabla-socios th:nth-child(1) {
  width: 40px;  /* estrecha */
  text-align: center;
}

/* Segunda columna: nombre del socio */
.tabla-socios td:nth-child(2),
.tabla-socios th:nth-child(2) {
  width: auto;  /* se ajusta al contenido */
  min-width: 150px; /* opcional: evita que quede demasiado estrecha */
  white-space: nowrap; /* mantiene el nombre en una sola línea */
  text-align: left;
}



/* CONTENEDOR SCROLL */
.tabla-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}



/* LÍNEAS VERTICALES */
.tabla-socios th,
.tabla-socios td {
  border-right: 1px solid #ddd;
}

.tabla-socios th:last-child,
.tabla-socios td:last-child {
  border-right: none;
}

/* ANCHOS DE COLUMNAS */
.tabla-socios td:nth-child(1),
.tabla-socios th:nth-child(1) {
  width: 40px;
  text-align: center;
}

.tabla-socios td:nth-child(2),
.tabla-socios th:nth-child(2) {
  min-width: 180px;
  white-space: nowrap;
  text-align: left;
}


/* ===== RECORRIDOS DE CARRERAS ========================================================= */

/* GRID */
.galeria-recorridos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

/* CARD estilo álbum */
.recorrido-card {
  display: block;
  background: #eaeaea;
  border-radius: 12px;
  padding: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
}

.recorrido-card:hover {
  transform: translateY(-5px);
}

/* IMAGEN con marco */
.recorrido-img {
  background: #fff;
  padding: 8px;
  border-radius: 10px;
}

.recorrido-img img {
  width: 100%;
  aspect-ratio: 800 / 650;
  object-fit: cover;
  border-radius: 6px;
}

/* INFO */
.recorrido-info {
  text-align: center;
  padding: 10px 5px 5px;
}

.recorrido-info h3 {
  font-size: 0.95em;
  margin: 10px 0 5px;
  font-weight: 600;
}

.recorrido-info p {
  font-size: 0.85em;
  color: #555;
  margin-bottom: 8px;
}

/* BADGE tipo */
.badge-tipo {
  display: inline-block;
  margin-bottom: 8px;
  background: #8b0000;
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75em;
}

/* Colores por tipo */
.badge-tipo.asfalto {
  background: #444; /* gris */
}

.badge-tipo.montana {
  background: #27ae60; /* verde */
}

.badge-tipo.mixta {
  background: #f39c12; /* amarillo oscuro */
}

.badge-tipo.obstaculos {
  background: #d62828; /* rojo */
}

/* ESTRELLAS */
.rating {
  font-size: 1em;
}

/* MENSAJE SIN RESULTADOS */
.no-resultados {
  text-align: center;
  padding: 40px;
  font-size: 1.1em;
  color: #777;
}


/* ===== BUSCADOR ========================================================= */

/* Contenedor */
.album-search {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 30px;
}

/* Input */
#recorridosSearchInput {
  width: 100%;
  padding: 12px 15px 12px 40px;
  font-size: 1em;
  border-radius: 12px;
  border: 1px solid #ccc;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  outline: none;
  transition: box-shadow 0.2s ease;
}

/* Icono */
.album-search .icon-search {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1em;
  color: #888;
  pointer-events: none;
}

/* Focus */
#recorridosSearchInput:focus {
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  border-color: #888;
  color: #000;
}



/* ===== EL MURO ========================================================= */


.muro-container {
  column-count: 3;
  column-gap: 20px;
  padding: 20px;
  background-image: url('../Imagenes/Fondo_muro.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;	
}
.muro-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(250,250,250,0.4); /* ajusta opacidad */
  z-index: 0;
}
.cartel {
  display: inline-block;
  width: 100%;
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  break-inside: avoid;
  position: relative;
  z-index: 1;	

  /* combinación de ambos */
  opacity: 0;
  transform: scale(0.9) rotate(var(--rot));

  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: aparecer 0.4s ease forwards;
}

.cartel:hover {
  transform: scale(1.05) rotate(var(--rot));
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

@keyframes aparecer {
  to {
    opacity: 1;
    transform: scale(1) rotate(var(--rot));
  }
}

.cartel p {
  margin: 0;
  font-size: 16px;
  word-wrap: break-word;
}

.alias {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  opacity: 0.6;
}

/* ?? Post-it */
.postit {
  background: #fff59d;
  font-family: 'Permanent Marker', cursive;
}

/* ?? Dorsal */
.dorsal {
  background: white;
  border: 2px dashed #333;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
}

/* ?? Bar */
.bar {
  background: #2e2e2e;
  color: #f5f5f5;
  font-family: monospace;
}

/* ?? Ticket */
.ticket {
  background: #fff;
  border-left: 10px dotted #ccc;
  font-family: monospace;
}

/* ?? Sticker */
.sticker {
  background: #66bb6a;
  color: #fff;
  font-weight: bold;
  border-radius: 20px;
}

.muro-form-card {
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  max-width: 600px;
  margin: 20px auto;
}

/* textarea */
#mensaje {
  width: 100%;
  min-height: 100px;
  border-radius: 10px;
  border: 1px solid #ccc;
  padding: 10px;
  font-size: 14px;
  resize: none;
  margin-bottom: 10px;
}

/* fila inferior */
.form-row {
  display: flex;
  gap: 10px;
}

/* input */
#alias {
  flex: 1;
  border-radius: 8px;
  border: 1px solid #ccc;
  padding: 8px;
}

/* botón */
#form-muro button {
  background: #ff9800;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

#form-muro button:hover {
  background: #e68900;
}


/* ===== RANKING DE CARRERAS ========================================================= */

/* ?? Medias */
.fila-media {
  display: grid;
  grid-template-columns: 120px 1fr 40px;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  font-size: 14px;
}

.barra {
  background: #eee;
  height: 8px;
  border-radius: 5px;
  overflow: hidden;
}

.relleno {
  height: 100%;
  background: linear-gradient(90deg, #ff4d4d, #ffcc00, #4caf50);
  border-radius: 5px;
  transition: width 0.3s;
}

.card-ranking {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 12px;

}

/* ?? Detalle desplegable */
.detalle-medias {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.detalle-medias.abierto {
  max-height: 500px;
  margin-top: 10px;
}

/* ??? Nombre carrera */
.carrera-nombre {
  font-size: 1.2rem;
  font-weight: 800;
  color: #111827;
  padding: 8px 12px;
  background: rgba(59, 130, 246, 0.08);
  border-left: 4px solid #111827;
  border-radius: 10px;
  display: inline-block;
}

/* ?? Card hover */
.carrera-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
}

/* ??? CONTROLES (buscador + selector unificados) */
.controles-ranking {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 8px;
  padding: 8px;

  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;

  max-width: 600px;
  margin: 0 auto 20px auto;
}

#buscador {
  flex: 1;
  min-width: 200px;
  max-width: 420px;

  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  outline: none;

  font-size: 0.95rem;
  background: white;
}

#orden {
  padding: 10px;
  border-radius: 10px;
  border: none;
  outline: none;

  font-size: 0.9rem;
  background: white;
  cursor: pointer;
}

/* ??? Sliders */
input[type=range] {
  width: 100%;
  appearance: none;
  height: 6px;
  border-radius: 5px;
  background: #ddd;
  outline: none;
  margin: 5px 0;
  transition: all 0.2s ease;
}

input[type=range]:active {
  transform: scaleY(1.2);
}

/* bolita */
input[type=range]::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #333;
  cursor: pointer;
}

/* ?? Valor numérico */
label span {
  font-weight: bold;
  font-size: 1.1rem;
  margin-left: 6px;
  color: #111827;
}

/* ?? Labels */
label {
  display: block;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

/* ?? Categorías activas */

/* Organización */
.cat-organizacion.fila-activa {
  background: rgba(59, 130, 246, 0.10);
  border-left: 4px solid #3b82f6;
}

/* Precio */
.cat-precio.fila-activa {
  background: rgba(16, 185, 129, 0.10);
  border-left: 4px solid #10b981;
}

/* Bolsa */
.cat-bolsa.fila-activa {
  background: rgba(236, 72, 153, 0.10);
  border-left: 4px solid #ec4899;
}

/* Avituallamientos */
.cat-avituallamiento.fila-activa {
  background: rgba(34, 197, 94, 0.10);
  border-left: 4px solid #22c55e;
}

/* Perfil */
.cat-perfil.fila-activa {
  background: rgba(139, 92, 246, 0.10);
  border-left: 4px solid #8b5cf6;
}

/* Ambiente */
.cat-ambiente.fila-activa {
  background: rgba(251, 191, 36, 0.15);
  border-left: 4px solid #fbbf24;
}

/* Post-meta */
.cat-postmeta.fila-activa {
  background: rgba(249, 115, 22, 0.10);
  border-left: 4px solid #f97316;
}

/* Trofeos */
.cat-trofeos.fila-activa {
  background: rgba(234, 179, 8, 0.15);
  border-left: 4px solid #eab308;
}



/* COLORES DE LAS PROVINCIAS */
.carrera-card {
  border-left: 6px solid transparent;
  padding-left: 10px;
  margin-bottom: 15px;
  transition: all 0.2s ease;
}

.carrera-card:hover {
  transform: scale(1.01);
  transition: all 0.2s ease;
}

.carrera-card.murcia {
  border-left-color: #ffd966; /* amarillo pastel */
  background-color: rgba(255, 217, 102, 0.40);
}

.carrera-card.alicante {
  border-left-color: #66d49f; /* verde pastel */
  background-color: rgba(102, 212, 159, 0.40);
}

.carrera-card.almeria {
  border-left-color: #ff8abf; /* rosa pastel */
  background-color: rgba(255, 138, 191, 0.40);	
}

.carrera-card.albacete {
  border-left-color: #7faaff; /* azul pastel */
  background-color: rgba(127, 170, 255, 0.40);	
}


/* BADGES DE LAS PROVINCIAS */
.badge-provincia {
  display: inline-block;
  font-size: 0.75em;
  padding: 3px 8px;
  border-radius: 12px;
  margin-top: 4px;
  font-weight: 600;
}

.badge-provincia.murcia {
  background-color: rgba(255, 217, 102, 0.4);
}

.badge-provincia.alicante {
  background-color: rgba(102, 212, 159, 0.4);
}

.badge-provincia.almeria {
  background-color: rgba(255, 138, 191, 0.4);
}

.badge-provincia.albacete {
  background-color: rgba(127, 170, 255, 0.4);
}

/* DESTACAR CARRERA AL HACER SCROLL */
.destacar {
  animation: highlight 2s ease;
}

@keyframes highlight {
  0% { background-color: rgba(255, 215, 0, 0.4); }
  100% { background-color: transparent; }
}



/* ===== RESPONSIVE ========================================================= */

@media (max-width: 768px) {

 /* Body y header */
  body {
    padding-top: 95px; /* espacio para header fijo */
  }

  header {
    min-height: auto;
    padding-bottom: 5px;
  }

  .header-top {
    padding: 4px 10px;
  }

  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 20px;
  }
	
  .hamburger {
    display: block;
    font-size: 26px;
    cursor: pointer;
    color: white;
    padding: 6px 10px;
    background: rgba(0,0,0,0.25);
    border-radius: 8px;
  }	
	
  .menu {
    display: none;
    flex-direction: column;
    background: rgba(0,0,0,0.95);
    position: fixed;   /* nos quedamos con FIXED */
    top: 95px;         /* mismo valor que padding-top del body */
    left: 0;
    width: 100%;
    padding: 10px 0;
    z-index: 2000;
  }	
	
  .menu.show {
    display: flex;
  }

  .menu a {
    padding: 10px;
    width: 100%;
    text-align: center;
  }	
	
@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px) rotate(-0.3deg);
  }
}	

  /* Frase del día */
	
  .frase-dia {
    margin-top: 5px;
  }

	
	
  /* Banner */
	
.banner {
  width: 100%;
  max-width: 100%;
  max-height: 60px;   
  object-fit: contain;
  height: auto;
  display: block;        /*  importantísimo */
}	

	
	
  /* Contenedores */
	
  .container,
  .sidebar,
  .content {
    width: 100%;
    display: block;
  }	
	
  .container {
    grid-template-columns: 1fr;
  }


  /* Agenda ultra responsive */

  .table-container {
    display: block;
    width: 100%;
    overflow-x: auto !important;  /* fuerza scroll horizontal */
    -webkit-overflow-scrolling: touch; /* scroll suave en iOS */
    -ms-overflow-style: auto; /* scroll en IE */
    scrollbar-width: auto; /* scroll en Firefox */
  }

  .table-container::-webkit-scrollbar {
    height: 8px; /* altura de scrollbar horizontal */
  }

  .table-container::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.3);
    border-radius: 4px;
  }

 .agenda-table {
    width: max-content !important; /* ancho según contenido */
    min-width: 100%;
    table-layout: auto; /* evita que las columnas se achiquen */
    border-collapse: collapse;
  }

  .agenda-table th,
  .agenda-table td {
    white-space: nowrap; /* evita que el texto se parta en varias filas */
	padding: 10px 12px;
    font-size: 13px;
  }
	
.col-carrera {
  min-width: 400px;
  white-space: normal;   /* permite que el texto se parta en varias filas */
  word-break: break-word;
  overflow-wrap: anywhere;
}
.col-fecha   { min-width: 80px; }
.col-hora    { min-width: 70px; }
.col-tipo    { min-width: 90px; }
.col-distancia { min-width: 100px; }
.col-precio  { min-width: 80px; }
.col-extra   { min-width: 60px; }	
	
  .tag {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 14px;
  }

  .agenda-table tbody tr:hover {
    transform: none;
    filter: none;
  }	
	
  /* Hero */	
.hero {
    padding: 20px;            /* Ajusta el padding del Hero */
    margin: 20px auto;        /* Asegura que no se sale de la pantalla */
    max-width: 90%;           /* Limita el tamaño máximo para que no ocupe toda la pantalla */
    text-align: center;       /* Centra el texto */
	transform: none;         /* Evita la rotación den el móvil */
  }

  .hero h1 {
    font-size: 1.8rem;        /* Ajusta el tamaño del texto para pantallas pequeñas */
  }

  .hero h2 {
    font-size: 1.4rem;        /* Ajusta el tamaño del texto para pantallas pequeñas */
  }

  .hero p {
    font-size: 0.9rem;        /* Ajusta el tamaño del párrafo para pantallas pequeñas */
  }


 /* Cards */

  .card {
    width: 100%;              /* Asegura que la card se ajuste a la pantalla */
    max-width: 100%;          /* Impide que la card se haga más ancha que la pantalla */
    box-sizing: border-box;   /* Asegura que el padding no aumente el ancho */
    padding: 10px;            /* Asegura un padding adecuado para la card */
	transform: none;
  }


  .cards-container {
    display: flex;
    flex-direction: column;   /* Acomoda las cards en columna */
    align-items: center;      /* Centra las cards */
    grid-template-columns: 1fr;
  }

	
  /* Imágenes y galería */	
	
  img {
    max-width: 100%;
    height: auto;
  }

  .gallery-title {
    font-size: 24px;
  }

  footer img {
    width: 100px;
  }


/* Mapas responsivos */
	
  .map-responsive,
  .embed-responsive {
    position: relative;
    width: 100%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
  }

  .map-responsive {
    padding-bottom: 56.25%; /* 16:9 */
  }

  .embed-responsive {
    padding-bottom: 152px;
  }

.map-responsive iframe,
.embed-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

  /* Navegación meses */
	
   .meses-nav {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    border-radius: 0;

    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .meses-nav a {
    display: inline-block;
  }

/* SUBMENU en móvil, con scroll horizontal  */

  .submenu {

    position: static;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    margin: 10px auto;
    border-radius: 0;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    padding: 8px 8px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .submenu a {

    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 13px;
    padding: 6px 12px;

  }
}
  .socios-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 12px;
  }

  .socio img {
    width: 80px;
    height: 100px;
  }



 /* TABLA DE CARRERAS BONIFICADAS */
 

  /* SOMBRA PARA SEPARACIÓN VISUAL */
  .tabla-socios td:nth-child(1),
  .tabla-socios td:nth-child(2),
  .tabla-socios th:nth-child(1),
  .tabla-socios th:nth-child(2) {
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
  }

}


 /* EL MURO */

 /* 1 columna en el MÓVIL */
@media (max-width: 768px) {

  .muro-container {
    column-count: 1;
  }

  .cartel {
    width: 100%;
    font-size: 16px;
  }

  #mensaje {
    min-height: 120px;
  }
}

 /* 2 columnas en la TÁBLET */
@media (max-width: 1024px) {
  .muro-container {
    column-count: 2;
  }
}



 /* CONTROLES DEL RANKING DE CARRERAS */

@media (max-width: 600px) {

  .controles-ranking {
    flex-direction: column;
    align-items: stretch;
    max-width: 95%;
  }

  #buscador {
    max-width: 100%;
    width: 100%;
  }

  #orden {
    width: 100%;
	margin-top: 4px;
  }

}



 /* MENÚ DESPLEGABLE DE CARRERAS */

@media (max-width: 768px) {
  .menu .dropdown {
    display: block;
    width: 100%;
  }

  .dropdown .button {
    display: block;
    width: 100%;
    text-align: center; /* o left si prefieres como el resto */
    font-size: 0.75em;
    padding: 10px 15px; /* igual que el resto */
    line-height: normal;
	border: none; 
	box-shadow: none; 
	border-bottom: none;
  }
	
  .dropdown-content {
    position: static;  /*  vuelve al flujo normal */
    width: 100%;
    box-shadow: none;
	margin-top: -2px; /* ajusta según grosor de la línea */
  }	
	
  .dropdown-content a {
    text-align: center;
 
  }	
	
}



