/*==========================================================================
   01 - IMPORTACIONES
===========================================================================*/

@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css");
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&family=Russo+One&display=swap');
@font-face{
    font-family:"Correbirras_2";
    src:url("../fonts/ProtestRiot-Regular.ttf") format("opentype");
    font-weight:normal;
    font-style:normal;
}
@font-face{
    font-family:"Correbirras_3";
    src:url("../fonts/Oskarzito_Script.ttf") format("opentype");
    font-weight:normal;
    font-style:normal;
}



/* ============================================================================
   02. VARIABLES
============================================================================ */

:root {

  /* ===== COLORES BASE ===== */

  --naranja: #ff7b00;
  --naranja-base: #f28c28;
  --naranja-oscuro: #d35400;
  --burdeos: #73191A;
  --burdeos-claro: #a3292b;
  --burdeos-hover: #8f2224;
  --gris: #444;
  --gris-claro: #f5f5f5;
  --oscuro: #1f1f1f;
  --blanco: #ffffff;
  --cerveza: #f0c040;
  --amarillo: #ffcc00;
  --amarillo-claro: #fff3b0;
  --negro: #111;
  --gris-card: rgba(255, 255, 255, 0.88);
  --rojo-acento: #ff3b3b;
  --verde: #27ae60;
  --verde-oscuro: #15803d;
  --azul: #3498db;
  --rosa: #ff8abf;

  /* ===== COLORES PROVINCIAS ======================== */

  --murcia: #ffd966;
  --alicante: #66d49f;
  --albacete: #7faaff;
  --almeria: #ff8abf;

  /* ===== FONDOS ======================== */

  --bg-card: var(--bg-card);
  --bg-card-soft: var(--bg-card-soft);

  /* ===== SOMBRAS ======================== */

  --shadow-sm: 0 2px 6px rgba(0,0,0,0.12);
  --shadow-md: var(--shadow-md);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.25);

  /* ===== RADIOS ======================== */

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* ===== TRANSICIONES ======================== */

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;

  /* ===== HEADER OFFSETS======================== */

  --header-offset: 170px;
  --header-offset-mobile: 95px;
}



/* ============================================================================
   03. RESET 
============================================================================ */ 
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img,
video,
table {
  max-width: 100%;
  height: auto;
}

html, body {
  overflow-x: hidden;
}




/* ============================================================================
   04. BODY
============================================================================ */

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
    background:
    linear-gradient(
        180deg,
        #120702 0%,
        #2b1004 15%,
        #5d2407 35%,
        #a2460d 65%,
        #d96b17 85%,
        #f29b2d 100%
    );
    background-attachment:fixed;
  padding-top: 230px;
  cursor: auto;
}

h1 {
  font-family: 'Russo One', sans-serif;
  font-size: 38px;
  letter-spacing: 1px;
  margin-bottom: 10px;
  color: var(--naranja-oscuro);
  font-weight: bold;
}

h2 {
    font-family:"Correbirras_2", cursive;
    font-size:2.4rem;
    font-weight:normal;
    color:var(--naranja-oscuro);
    letter-spacing:1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,.18);
}

h3 {
  font-family:"Correbirras_2", cursive;
  font-size: 24px;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

p {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 10px;
}

.img-pequena {
  width: 150px !important;
  height: auto !important;
}
.card img.img-pequena {
  width: 150px;
  height: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

.hero-link,
.hero-link:visited,
.hero-link:hover,
.hero-link:active{
    text-decoration:none;
    color:inherit;
}

  /* ===== CURSOR CORREBIRRICA======================== */

a,
button,
summary,
label,
input[type="submit"],
input[type="button"],
input[type="reset"],
.boton,
.tarjeta-ejercicio,
.dia-rutina,
.grupo-musculo,
[role="button"] {
    cursor: url("../Imagenes/beer_cursor.png") 16 16, pointer;
}

/* ============================================================================
   05. HEADER 2.0
============================================================================ */



.header-correbirras{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:9999;
    background:
        linear-gradient(
            180deg,
            #1b1b1b 0%,
            #111 100%
        );
    box-shadow: 0 8px 30px rgba(0,0,0,.55);
    border-bottom:2px solid rgba(242,140,40,.25);
}

.header-top{
    display:flex;
    justify-content:center;
    align-items:center;
    padding:10px 20px 0;
    position:relative;
}

.banner{
    height:98px;
    transition:.3s;
}

.menu-principal{
    display:flex;
    justify-content:center;
    padding-bottom:10px;
}

.menu{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:10px;
}

.hamburger{
    position:absolute;
    right:18px;
    top:18px;
    transform:none;
    font-size:1.5rem;
    cursor:pointer;
    color:#cfcfcf;
    opacity:.6;
    transition:.25s;
}

.hamburger:hover{
    opacity:1;
    color:#f28c28;
}

/* ===== BOTONES HEADER 2.0 y FOOTER 2.0 =========================== */

.menu .button,
.footer-menu .button,
.footer-contacto .button{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:10px 18px;
    min-height:44px;
    text-transform:none;
    letter-spacing:0;
    font-weight:700;
    font-size:.95rem;
    border-radius:12px;
    color:#e6a13c;
    background:linear-gradient(
        180deg,
        #2a2a2a,
        #1a1a1a
    );
    border:1px solid rgba(242,140,40,.18);
    box-shadow:
        0 5px 14px rgba(0,0,0,.30);
}

.menu .button:hover,
.footer-menu .button:hover,
.footer-contacto .button:hover{
    transform:translateY(-2px);
    background:linear-gradient(
        180deg,
        #f29a35,
        #d96a0b
    );
    color:#111;
    box-shadow:
        0 10px 22px rgba(242,140,40,.35);
}

.menu .button::before,
.menu .button::after,
.footer-menu .button::before,
.footer-menu .button::after,
.footer-contacto .button::before,
.footer-contacto .button::after{
    display:none;
}

.menu .button i,
.footer-menu .button i,
.footer-contacto .button i{
    font-size:15px;
    width:18px;
    text-align:center;
    color:inherit;
}


/* ============================================================================
   06. LAYOUT 
============================================================================ */

/* ===== CONTAINER =========================== */
.container {
  display: grid;
  grid-template-columns: 2.6fr 0.85fr;
  gap: 22px;
  width: 80%;
  max-width: 1200px;
  margin: 20px auto 0;
}
.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: var(--radius-md);	
}

/* ===== 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;
}



/*==================================================
FOOTER CORREBIRRAS 2.0
==================================================*/

.footer-correbirras{
    border-top:2px solid rgba(242,140,40,.25);
    padding:55px 20px 35px;
    text-align:center;
    position:relative;
    overflow:hidden;
    background:#000 !important;
}

.footer-top{
    margin-bottom:35px;
}

.footer-banner{
    height:82px;
    width:auto;
}

.footer-lema{
    margin-top:8px;
    color:#f0b44c;
    font-size:1.6rem;
    font-style:italic;
    font-weight:400;
}

.footer-menu{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:14px;
    margin-bottom:28px;
    margin:30px 0;
}

.footer-contacto{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:14px;
    margin-bottom:30px;
    margin-top:18px;
}

.footer-correbirras .button{
    padding:8px 16px;
    min-height:40px;
    font-size:.92rem;
}

.footer-copy{
    margin-top:20px;
    color:#999;
    font-size:.95rem;
}

/* = MARCA DE AGUA CORREBIRRAS EN FOOTER = */
.footer-correbirras::before{
    content:"";
    position:absolute;
    width:280px;
    height:280px;
    bottom:-40px;
    right:-40px;
    background-image:url("../Imagenes/Correbirrica_01.png");
    background-size:contain;
    background-repeat:no-repeat;
    opacity:.06;
    transform:rotate(15deg);
    pointer-events:none;
}

.footer-correbirras > *{
    position:relative;
    z-index:1;
}



/* ============================================================================
    07. COMPONENTES
============================================================================ */

/* ===== HERO =============================== */
.hero {
  max-width: 760px;   /* 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, #FFD54A 0%, #FFB000 100%);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
  animation: fadeRunner 0.7s ease;
  transform: rotate(-1deg);   /* cartel inclinado */
}

.hero h2{
    font-size:3.15rem;
    margin: 10px 0;
    color: #111;
    letter-spacing: 1px;
    text-shadow: none;
}

.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::before {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  top: 0;
  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;
}


/* ===== CARD ===================================== */
.card {
  background: var(--gris-card);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transition: 0.3s;
  backdrop-filter: blur(6px);
  animation: fadeInUp 0.4s ease;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;

}

.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: var(--radius-md);
  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;
}

/* = SIN EFECTO DE BALANCEO EN CARDS GRANDES = */


body.zona-privada.ligas .card,
body.zona-privada.ligas .card:hover {
  transform: none !important;
  animation: none !important;
}

/* = MARCA DE AGUA CORREBIRRAS EN CARDS = */
.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;
}

/* =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;
}


/* ====CARD DESTACADA FOTOS CARREBIRRAS 2026 ============== */

.destacado-fotos-carrebirras {
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Etiqueta NOVEDAD */

.destacado-fotos-carrebirras .novedad {
    display: inline-block;
    margin-bottom: 8px;
    padding: 6px 16px;
    background: #d96a0b;
    color: #fff;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(0,0,0,0.20);
}

/* Título */

.destacado-fotos-carrebirras h1 {
    margin-top: 5px;
    margin-bottom: 10px;
}

/* Banner */

.banner-fotos-carrebirras {
    display: block;
    width: 100%;
    max-width: 1100px;
    height: auto;
    margin: 20px auto 10px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.22);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

/* Efecto al pasar el ratón */

.destacado-fotos-carrebirras a:first-of-type:hover .banner-fotos-carrebirras {
    transform: scale(1.015);
    box-shadow: 0 10px 25px rgba(0,0,0,0.30);
}

/* Texto inferior */

.destacado-fotos-carrebirras > p:last-of-type {
    margin-top: 12px;
}





/* ===== 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;
}



/* ===== EMBEDS ================================ */

.embed {
  width: 100%;
  overflow: hidden;
}

.embed iframe {
  width: 100%;
  height: 800px;
  border: none;
}


/* ===== SUBMENÚ 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: var(--radius-lg);
  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;
}

/* ===== DROPDOWNS ==================== */

/* 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: var(--radius-sm);
  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;
}



/* ======================================================================================
   08. UTILIDADES
====================================================================================== */

.highlight {
  font-weight: bold;
  color: var(--cerveza);
}

.muted {
  color: #777;
  font-size: 14px;
}

.big {
  font-size: 20px;
}

.small {
  font-size: 13px;
}




/* ===== 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); }
}

@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);
  }
}

/* ======================================================================================
   09. SECCIONES DE LA WEB
====================================================================================== */


/* ===== 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: var(--radius-sm);
}

.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: var(--bg-card);
  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 var(--transition-fast);
  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: var(--radius-lg);
  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: var(--verde);
  color: white;
}

/* MIXTA  amarillo oscuro */
.tag.mixta {
  background: #f39c12;
  color: white;
}

/* ASFALTO  gris */
.tag.asfalto {
  background: #444;
  color: white;
}

/* OBSTÁCULOS  rojo */
.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:90px;}
.col-hora{width:80px;}
.col-tipo{width:100px;}
.col-senderista{width:40px;  font-size:18px;}
.col-extra{width:80px;  white-space: nowrap;   font-size:18px;}
.col-localidad{width:140px;}
.col-provincia{width:100px;}
.col-distancia{width:120px;}
.col-precio{width:100px;}
.col-carrera{
  min-width:270px;
  max-width:320px;
  white-space:normal;
  word-break:break-word;
	overflow-wrap: anywhere;
}
.col-edicion {
  width: 40px;
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
  color: #530115 !important;
}
.col-carrera a {text-align: left;  display: block;}

/* 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: var(--radius-md);
  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: var(--radius-sm);
  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-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--burdeos);
  letter-spacing: 0.3px;
  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: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 a {
  color:#6b1e1e;
  text-decoration:none;
  font-weight:600;
}

.col-carrera a:hover {
  opacity:.85;
}

.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: 8px 12px;
  border-radius: var(--radius-sm);
  border: none;
  margin: 6px 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: white;
  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: var(--radius-lg);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition-normal);
  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;
}

.proximamente .col-fecha {
  color: #b9770e;
  font-size: 0.7em;
  opacity: 0.85;
  font-style: italic;
}

.separador-semana {
  background: #d8b49a;
  color: #4a2f22;
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 10px;
  border-top: 1px solid #c69a7b;
  border-bottom: 1px solid #c69a7b;
}

.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;
}

.badge-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  margin: 2px 3px;
  border-radius: var(--radius-md);
  font-size: 0.75em;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: 0.2s ease;
}

/* TIPOS DE CARRERA */

.badge-senderista {
  background: #e9f3e6;
  color: #2f5a3a;
}

.badge-nocturna {
  background: #e7e4f6;
  color: #3b3a6b;
}

.badge-solidaria {
  background: #fde6e6;
  color: #7a2b2b;
}

/* EXTRA */

.badge-ranking {
  background: #f0e6d2;
  color: #6b4e2e;
}

.badge-recorrido {
  background: #d7e8f2;
  color: #2f4f5f;
}

/* HOVER SUAVE */

.badge-info:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.contador-carreras{
  text-align:center;
  margin:14px 0 18px;
  font-size:0.95rem;
  font-weight:600;
  color:#7b1e2b;
  letter-spacing:0.4px;
}

.badge-contador{
  display:inline-block;
  padding:8px 16px;
  border-radius:999px;
  font-weight:800;
  font-size:0.95rem;
  letter-spacing:0.4px;
  box-shadow:0 2px 8px rgba(0,0,0,0.12);
  transition:all .25s ease;
}

.badge-total{
  background:#ffcc00;
  color:#222;
}

.badge-filtrado{
  background:#2e9e44;
  color:white;
}

.contador-mes {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fff;
  margin-left: 10px;
  vertical-align: middle;
  opacity: 0.95;
  text-transform: capitalize;
}


/* ===== 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,
.icono-link:visited,
.icono-link:hover,
.icono-link:active {
  text-decoration: none;
  color: inherit;
}


/* ===== 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: var(--bg-card-soft);
  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; }




/* ===== Á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: var(--radius-sm);
  border: 2px solid #ddd;
}

.socio-nombre {
  font-weight: bold;
  margin-top: 5px;
}

.socio-numero {
  font-size: 11px;
  color: #555;
}



/* ===== GALERÍA CORREBIRRAS ==================================== */

/* =ÁLBUMES = */

.albums-card {
  background: linear-gradient(180deg, #fff8e8, #ffd79a);
  border-radius: var(--radius-lg);
  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: var(--burdeos);
}

.back-link:hover {
  text-decoration: underline;
}

.albums-title {
  text-align: center;
  margin: 10px 0 25px;
  font-size: 26px;
  color: var(--burdeos);
}

.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.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: var(--burdeos);
  color: white;
  padding: 4px 8px;
  border-radius: 20px;
}


/*  EFECTO POLAROID  */

.album-card {
  background: white;
  padding: 10px 10px 18px;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: black;
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
  transform: rotate(-1deg);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.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: var(--burdeos);
  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: var(--radius-lg);
  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: var(--radius-lg);
  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 var(--transition-normal);
  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: var(--radius-lg);
  padding: 25px;
  box-shadow: var(--shadow-md);
  text-align: center;
  max-width: 700px;
  margin: auto;
  margin-bottom: 30px;
}

.archivo-intro h2 {
  margin-bottom: 10px;
  color: var(--burdeos);
  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: var(--radius-lg);
  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 var(--bg-card-soft);
  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 var(--bg-card-soft);
}

/* 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: var(--radius-md);
  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);
}

/* ============================================================================
   10. ZONA CORREBIRRAS
============================================================================ */


body.zona-privada {
  padding-top: 0;
  background-image: url("../Imagenes/Fondo_privado.jpg");
  background-size: cover;
  background-attachment: fixed;
}

body.zona-privada footer img {
  width: 220px;
  height: auto;
  display: block;
  margin: 0 auto 4px;
}

body.zona-privada footer {
  padding-bottom: 35px;
}

body.zona-privada header {
  background-color: var(--naranja-oscuro);
}

body.zona-privada nav {
  background-color: #e67e22;
}

body.zona-privada .header-top {
  background-color: var(--naranja-oscuro);
}

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;
  border-radius: var(--radius-md);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  will-change: transform;
}

body.zona-privada .card:hover {
  transform: translateY(-1px);
  box-shadow:
    0 10px 24px rgba(0,0,0,0.16);
}

body.zona-privada .card h2 {
  font-size: 18px;
  color: rgb(5, 5, 5);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  background-color: rgba(83, 82, 82, 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: var(--azul);
  color: white;
}

body.zona-privada .card-entrenos {
  background-color: var(--verde);
  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: var(--azul);
}

body.zona-privada.entrenos .subnav {
  background: var(--verde);
}

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: var(--azul);
}

body.zona-privada.entrenos .hero {
  background: var(--verde);
}

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;
}


/* ===== 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: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;
}



/* ===== TABLAS LIGAS CORREBIRRAS =================================================== */


.ligas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.tabla-liga {
  background: rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.tabla-liga h3 {
  text-align: center;
  padding: 16px;
  margin: 0;
  background: #d35400;
  color: white;
  font-size: 1.4rem;
  letter-spacing: 1px;
}

.tabla-liga table {
  width: 100%;
  border-collapse: collapse;
}

.tabla-liga th,
.tabla-liga td {
  padding: 11px 12px;
}

.tabla-liga th {
  background: rgba(0,0,0,0.25);
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tabla-liga tr {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.2s;
}

.tabla-liga tr:last-child {
  border-bottom: none;
}

.tabla-liga tr:hover {
  background: rgba(255,255,255,0.05);
}

.tabla-liga td:nth-child(1),
.tabla-liga td:nth-child(3) {
  text-align: center;
  font-weight: 700;
}

.tabla-liga td:nth-child(2) {
  font-weight: 600;
}


/* =   COLORES SEXO   = */

.femenino {
  color: #b03a5b;
}

.masculino {
  color: #1f3c88;
}


/* =   TAMAÑOS TOPS = */

.top3 td {
  font-size: 1.2rem;
  font-weight: 800;
}

.top10 td {
  font-size: 1.05rem;
  font-weight: 700;
}


/* =   PODIO    = */

.top1 {
  background: rgba(255, 215, 0, 0.12);
}

.top2 {
  background: rgba(192, 192, 192, 0.10);
}

.top3pos {
  background: rgba(205, 127, 50, 0.10);
}


/* =========   FOTOS DE LOS ATLETAS EN LAS LIGAS ============= */


body.ligas .tabla-liga td.atleta-liga {
  padding: 8px 12px;
  text-align: left;
  vertical-align: middle;
}

body.ligas .atleta-liga {
  display: grid;
  grid-template-columns: 34px auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

body.ligas .foto-liga {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid rgba(255,255,255,0.9);
  box-shadow: 0 1px 4px rgba(0,0,0,0.20);
}


/* ===== CARRERAS BONIFICADAS ===== */

.bonificaciones{
    background:white;
    border-radius:18px;
    padding:25px;
    margin-top:30px;
    box-shadow:0 4px 15px rgba(0,0,0,.12);
}

#tablaBonificaciones{
    overflow-x:auto;
}

.leyendaCarreras{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:20px;
}

.itemLeyenda{
    background:linear-gradient(
        180deg,
        #ffe08a,
        #f7c54a
    );
    border-radius:14px;
    padding:12px;
    min-width:145px;
    box-shadow:
        0 3px 8px rgba(0,0,0,.15);
    text-align:center;
    transition:all .2s ease;
    cursor:default;
    font-size:.82rem;
    line-height:1.25;
    text-decoration:none;
    color:inherit;
    cursor:pointer;
}

.itemLeyenda:hover{
    transform:translateY(-4px);
    box-shadow: 0 6px 14px rgba(0,0,0,.22);
    filter:brightness(1.05);
}

.itemLeyenda b{
    display:block;
    font-size:18px;
    margin-bottom:6px;
}

.fechaLeyenda{
    font-size:.85rem;
    color:#555;
    margin:6px 0;
    font-weight:600;
}

.nombreLeyenda{
    font-weight:600;
    line-height:1.25;
}

.gridBonificaciones{
    min-width:900px;
}

.filaGrid{
    display:grid;
    grid-template-columns:
        430px
        repeat(var(--num-carreras),55px)
        90px;
    align-items:center;
    min-height:50px;
    border-bottom:1px solid #ececec;
}

.cabeceraGrid{
    font-weight:bold;
    background:#222;
    color:white;
    position:sticky;
    top:0;
}

.celdaCarrera{
    text-align:center;
    font-size:20px;
}

.totalEuros{
    text-align:center;
    font-weight:bold;
    color:white;
    background:#ff7a00;
    border-radius:20px;
    width:60px;
    margin:auto;
    padding:5px 0;
}

.nombreSocio{
    position:sticky;
    left:0;
    background:#f7f7f7;
    z-index:5;
    padding:0 15px;
    font-weight:600;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.cabeceraGrid div:first-child{
    position:sticky;
    left:0;
    background:#222;
    z-index:10;
}

.marcaParticipa{
    display:inline-block;
    width:14px;
    height:14px;
    border-radius:50%;
    background:#ff7a00;
    box-shadow:0 0 8px rgba(255,122,0,.45);
    transition:.2s;
}

.filaGrid:hover .marcaParticipa{
    transform:scale(1.25);
}

.marcaNoParticipa{
    display:inline-block;
    width:14px;
    height:14px;
    border-radius:50%;
    background:#ddd;
}

.cabeceraGrid{
    height:42px;
    border-radius:8px;
    margin-bottom:8px;
}

.filaGrid{
    transition:all .15s ease;
}

.filaGrid:hover{
    background:#fff7e8;
}

.tituloBonificaciones{
    margin-bottom:18px;
    text-align:center;
    font-size:28px;
    color:#333;
}

.numCarrera{
    color:#ff7a00;
    font-weight:700;
    text-shadow:
        0 0 3px rgba(255,122,0,.35);
}

.checkCarrera{
    margin-left:6px;
    font-size:0.9rem;
}

.carreraFinalizada{
    filter:grayscale(.15);
    opacity:.82;
    transition:all .25s ease;
}

.carreraProxima{
    background:linear-gradient(
        180deg,
        #ffd84d,
        #ffad00
    );
    border:2px solid #f28c28;
    box-shadow:
        0 5px 14px rgba(242,140,40,.35);
    transform:scale(1.02);
    font-weight:600;
}

.filaTotales{
    font-weight:bold;
    background:#222;
    color:white;
}

.filaTotales div:not(:first-child){
    color:#ff7a00;
}

.filaTotales .totalGeneral{
    color:white !important;
}

.filaTotales div{
    padding:10px;
    text-align:center;
    color:#ff7a00;
    font-weight:bold;
}

.totalGeneral{
    background:#ff7a00;
    color:white;
    border-radius:20px;
    font-weight:bold;
}


/* =======   FOTOS DE SOCIOS - CARRERAS BONIFICADAS  ============= */

.nombreSocio {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nombreSocio .fotoSocioBonificacion {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.20);
    transition: none !important;
}

/* Evitar zoom de las fotos al pasar el ratón */
.nombreSocio .fotoSocioBonificacion:hover,
.card:hover .nombreSocio .fotoSocioBonificacion {
    transform: none !important;
}

/* =======   BOTÓN DE EDITAR PEDIDOS  ============= */

.stock-editar {
  text-align: center;
  margin: 20px 0 5px;
}

.stock-editar a {
  display: inline-block;
  padding: 10px 22px;
  background: #f28c28;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.2s ease;
}

.stock-editar a:hover {
  background: #d96a0b;
  transform: translateY(-1px);
}

/* ============================================================================
   11. 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: var(--radius-md);
  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: var(--verde); /* 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: var(--radius-md);
  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;
}


/* ============================================================================
   12. 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: var(--radius-md);
}

/* 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) scale(1.01);
  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.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: var(--radius-md);
  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; }
}


/* ===== TOP TEN DEL RANKING============ */

.top10-premium{
  max-width: 780px;   /* más estrecha que una card normal */
  margin: 20px auto;  /* centrada tipo hero */
  padding: 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7d6, #ffe082);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  border: 2px solid rgba(0,0,0,0.05);
}

.top10-header{
  text-align:center;
  margin-bottom:14px;
}

.top10-header h2{
  margin:0;
  font-size:2rem;
  color:#7a0019;
}

.top10-header p{
  margin-top:6px;
  color:#666;
  font-size:.95rem;
}


/* puestos 4-10 */

.top10-row{
  display:grid;
  grid-template-columns:55px 1fr 60px 70px;
  align-items:center;
  gap:10px;
  padding:9px 14px;
  border-radius:12px;
  margin-bottom:6px;
  background:rgba(255,255,255,.72);
  border:1px solid #f3e8b5;
  cursor:pointer;
  transition:.2s;
  backdrop-filter:blur(4px);
}

.top10-row:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 12px rgba(0,0,0,.06);
}

.top10-pos{
  font-size:1.15rem;
  font-weight:700;
  text-align:center;
  line-height:1;
}

.posicion{
  display:block;
  font-size:.72rem;
  margin-top:2px;
  color:#444;
  font-weight:700;
}

.solo-posicion{
  font-size:1rem;
  font-weight:700;
  color:#444;
}

.top10-name{
  font-weight:700;
  font-size:.96rem;
}

/* Campeón */

#top10-lista .top10-row:nth-child(1) .top10-name{
  font-size:1.18rem;
  font-weight:800;
}

#top10-lista .top10-row:nth-child(1) .top10-score{
  font-size:1.15rem;
}

/* Segundo */

#top10-lista .top10-row:nth-child(2) .top10-name{
  font-size:1.08rem;
}

/* Tercero */

#top10-lista .top10-row:nth-child(3) .top10-name{
  font-size:1rem;
}

.top10-score{
  font-weight:700;
  color:#15803d;
  text-align:center;
  font-size:.95rem;
}

.top10-votes{
  font-size:.82rem;
  color:#666;
  text-align:center;
}


.top10-footer{
  text-align:center;
  margin-top:12px;
  font-size:.82rem;
  color:#777;
}

.top3-home {
  max-width: 700px;   /* m�s estrecha que una card normal */
  margin: 20px auto;  /* centrada tipo hero */
  padding: 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffe08a, #ffd24d);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  border: 2px solid rgba(0,0,0,0.05);
}

.top3-home h2 {
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 1px;
  color:#7a0019;
}

.top3-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  margin: 6px 0;
  background: rgba(255,255,255,0.6);
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.top3-item:hover {
  transform: scale(1.02);
  background: rgba(255,255,255,0.8);
}

.top3-item .medalla {
  width: 30px;
  font-size: 18px;
}

.top3-item .nombre {
  flex: 1;
  font-weight: 600;
  padding-left: 10px;
}

.top3-item .nota {
  font-weight: bold;
}

.btn-ver-ranking {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  background: #111;
  color: white;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

@media(max-width:768px){

.top10-premium{
  padding:16px;
}

.top10-header h2{
  font-size:1.55rem;
}

.top10-row.top3,
.top10-row{
  grid-template-columns:38px 1fr 48px;
}

.top10-votes{
  display:none;
}

.top10-name{
  font-size:.9rem;
}

#top3-home-lista .top10-row{
  grid-template-columns:55px 1fr 60px;
}

}
/* estilos especiales top 3 */

.top10-row.rank-1{
  border:2px solid gold;
  background:linear-gradient(90deg,#fff8dc,#ffffff);
}

.top10-row.rank-2{
  border:2px solid silver;
}

.top10-row.rank-3{
  border:2px solid #cd7f32;
}





/* ============================================================================
   13. FOOTER
============================================================================ */

.footer-correbirras{
    margin-top:50px;
    padding:22px 20px 18px;
    text-align:center;
    background:
    linear-gradient(
        180deg,
        #4d1404,
        #240701
    );
    border-top:
    2px solid rgba(255,180,70,.25);
}

.footer-logo{
    width:220px;
    display:block;
    margin:0 auto 4px;
}

.footer-lema{
    text-align:center;
    font-size:18px;
    color:#ffd27a;
    font-style:italic;
    margin:0 auto 10px;
    line-height:1.2;
}
.footer-links,
.footer-social{
    display:flex;
    justify-content:center;
    gap:22px;
    flex-wrap:wrap;
    margin:6px 0;

}

.footer-links a,
.footer-social a,
.footer-mail a{
    color:white;
    text-decoration:none;
    font-weight:bold;
    transition:.25s;
}

.footer-links a:hover,
.footer-social a:hover,
.footer-mail a:hover{
    color:#ffb347;
}

.footer-mail{
    margin-top:10px;
    font-size:20px;
}

.footer-copy{
    margin-top:8px;
    font-size:14px;
    color:rgba(255,255,255,.55);
}

.footer-phone{
    margin-top:2px;
    font-size:20px;
    font-weight:bold;
}

.footer-phone a{
    color:white;
    text-decoration:none;
    transition:.25s;
}

.footer-phone a:hover{
    color:#ffb347;
}

/* ================= MENÚ ESCRITORIO ================= */

nav{
    display:flex;
    justify-content:center;
    overflow:visible;
}

.menu{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:10px;
    overflow:visible;
    position:relative;
}

.menu .button{
    position:relative;
    z-index:1;
}

.menu .button:hover{
    z-index:100;
}

/* ==========================================================
   CARD - NUEVOS ENTRENAMIENTOS DE CARRERA
========================================================== */

.destacada-entrenamientos-carrera {
    text-align: center;
}


.destacada-entrenamientos-carrera .novedad {
    margin-bottom: 10px;
}


.destacada-entrenamientos-carrera h1 {
    margin-bottom: 18px;
}


.destacada-entrenamientos-carrera > p {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}


.entrenamientos-destacados {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 15px;
    max-width: 900px;
    margin: 25px auto;
    text-align: center;
}


.entrenamientos-destacados > div {
    padding: 18px 15px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    line-height: 1.5;
}


.entrenamientos-destacados strong {
    color: #f28c00;
}

/* Etiqueta NOVEDAD en la card de entrenamientos */

.destacada-entrenamientos-carrera .novedad {
    display: inline-block;
    background: #e87500;
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.banner-entrenamientos-carrera {
    display: block;
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin: 25px auto;
    border-radius: 12px;
}






/* ==========================================================================================================================================
   14. 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: var(--radius-sm);
    top:12px;
    right:12px;
    transform:none;
  }	
	
  .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: fixed; /* permite 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: 300px;
  white-space: normal !important;
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.2;
}

.col-carrera a{
  display: block;
  white-space: normal;
}
	
.col-fecha   { min-width: 60px; }
.col-hora    { min-width: 50px; }
.col-tipo    { min-width: 90px; }
.col-distancia { min-width: 100px; }
.col-precio  { min-width: 80px; }
.col-extra   { min-width: 55px; }
.col-localidad{width:85px;white-space:normal;line-height:1.1;}
.col-provincia{ width:78px; }
.col-senderista{ 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: var(--radius-md);
  }

  .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;
  }



  /* 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);
  }


 /* 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;
 
  }	
}

/*   LIGAS RESPONSIVE  */

@media (max-width: 768px) {

  .ligas-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tabla-liga {
    width: 100%;
    overflow: hidden;
  }

  .tabla-liga h3 {
    font-size: 1.05rem;
    padding: 12px;
  }

  .tabla-liga table {
    width: 100%;
    table-layout: fixed;
  }

  .tabla-liga th,
  .tabla-liga td {
    padding: 7px 4px;
    font-size: 0.8rem;
  }

  .tabla-liga th:nth-child(1),
  .tabla-liga td:nth-child(1) {
    width: 12%;
  }

  .tabla-liga th:nth-child(2),
  .tabla-liga td:nth-child(2) {
    width: 58%;
    text-align: left;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tabla-liga th:nth-child(3),
  .tabla-liga td:nth-child(3) {
    width: 30%;
  }

  .top3 td {
    font-size: 0.95rem;
  }

  .top10 td {
    font-size: 0.87rem;
  }

}
}

/*   CARRERAS BONIFICADAS RESPONSIVE  */

@media (max-width:768px){

    .leyendaCarreras{
        display:grid;
        grid-template-columns:repeat(2,1fr);
        gap:10px;
    }

    .itemLeyenda{
        min-width:unset;
        width:100%;
        padding:10px;
    }

     .nombreSocio{
      position:static;
      left:auto;
      z-index:auto;
    }

    .cabeceraGrid{
       position:static;
    }

    .gridBonificaciones{
      grid-template-columns:
      180px repeat(var(--num-carreras),42px) 70px;
    }

}

/*   CARD DESTACADA FOTOS CARREBIRRAS 2026 RESPONSIVE  */

@media (max-width: 700px) {

    .destacado-fotos-carrebirras {
        padding-left: 12px;
        padding-right: 12px;
    }

    .destacado-fotos-carrebirras h1 {
        font-size: 1.5rem;
    }

    .banner-fotos-carrebirras {
        margin-top: 15px;
        border-radius: 8px;
    }

}

/* Responsive Entrenamientos destacados*/

@media (max-width: 700px) {

    .entrenamientos-destacados {
        grid-template-columns: 1fr;
    }

}

/*    LIGAS - RESPONSIVE */

@media (max-width: 700px) {

  body.ligas .tabla-liga {
    width: 100%;
    overflow-x: hidden;
  }

  body.ligas .tabla-liga table {
    width: 100%;
    table-layout: fixed;
  }

  /* Columna de posición */
  body.ligas .tabla-liga th:first-child,
  body.ligas .tabla-liga td:first-child {
    width: 45px;
  }

  /* Columna de kilómetros */
  body.ligas .tabla-liga th:last-child,
  body.ligas .tabla-liga td:last-child {
    width: 85px;
  }

  /* Columna del atleta */
  body.ligas .tabla-liga th:nth-child(2),
  body.ligas .tabla-liga td:nth-child(2) {
    width: auto;
  }

  /* CONTENEDOR FOTO + NOMBRE */
  body.ligas .atleta-liga {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    min-width: 0;
    padding: 5px 4px !important;
  }

  /* FOTO PEQUEÑA */
  body.ligas .atleta-liga .foto-liga {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 50%;
  }

  /* NOMBRE */
  body.ligas .atleta-liga span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

}