@charset "utf-8";
/* =====================================
   BOTÓN IT’s your VIBE – GLOBAL
   ===================================== */

/* Contenedor */
.container-regresar{
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

/* Link del botón */
.btn-regresar-vibe{
  position: relative;
  display: inline-block;
  text-decoration: none;
  transition: all 0.4s ease;
}

/* Imagen del botón */
.btn-regresar-vibe img{
  width: 300px;
  height: auto;
  display: block;
  filter: drop-shadow(0 5px 15px rgba(74, 37, 147, 0.3));
  transition: all 0.4s ease;
}

/* ===============================
   EFECTO RESPIRACIÓN (VIBE)
   =============================== */

@keyframes vibeBreath{
  0%{
    transform: scale(1);
    filter: drop-shadow(0 6px 16px rgba(74, 37, 147, 0.25));
  }
  50%{
    transform: scale(1.035);
    filter: drop-shadow(0 12px 30px rgba(74, 37, 147, 0.45));
  }
  100%{
    transform: scale(1);
    filter: drop-shadow(0 6px 16px rgba(74, 37, 147, 0.25));
  }
}

.btn-regresar-vibe:hover img{
  animation: vibeBreath 1.8s ease-in-out infinite;
  transform: scale(1.05);
  filter: drop-shadow(0 8px 25px rgba(74, 37, 147, 0.5));
}

/* ===============================
   MICRO-GLOW SOLO EN "IT"
   =============================== */

.btn-regresar-vibe::after{
  content: "";
  position: absolute;
  top: 50%;
  left: 135px;     /* Ajustable según el PNG */
  width: 90px;
  height: 38px;
  background: rgba(74, 37, 147, 0.6); /* #4A2593 */
  filter: blur(20px);
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.btn-regresar-vibe:hover::after{
  opacity: 1;
}

/* ===============================
   MOBILE SAFE (sin hover)
   =============================== */
@media (hover: none){
  .btn-regresar-vibe:hover img{
    animation: none;
    transform: none;
  }
  .btn-regresar-vibe:hover::after{
    opacity: 0;
  }
}

/* ==================================================
   BOTÓN SUBIR ARRIBA – GLOBAL (con imagen PNG)
   ================================================== */

/* “Blindaje” contra CSS conflictivo */

#btnSubir{
  display:none;              /* JS lo activa */
  position:fixed;
  bottom:20px;
  right:30px;
  z-index:9999;

  width:110px;
  height:110px;

  background:transparent;
  border:none;
  padding:0;
  cursor:pointer;

  border-radius:50%;
  overflow:hidden;

  transition: transform 0.3s ease;
}

#btnSubir img{
  width:100%;
  height:100%;
  display:block;
  border-radius:50%;
}

#btnSubir:hover{
  transform: scale(1.06);
}

/* móvil */
@media (max-width: 600px){
  #btnSubir{
    width:90px;
    height:90px;
    right:16px;
    bottom:16px;
  }
}
.sport-header{
  display:flex;
  align-items:center;
  gap:14px;
}

.sport-badge{
  width:125px;
  height:125px;
  object-fit:cover;
  margin-left:15px;
  margin-right:15px;
}
.medal-icon{
  width: var(--medal-size, 28px);
  height: auto;
  vertical-align: middle;
}

.medal-sm{ --medal-size: 20px; }
.medal-md{ --medal-size: 24px; }
.medal-lg{ --medal-size: 28px; }
.medal-xl{ --medal-size: 32px; }
.medal-xxl{ --medal-size: 220px; }

/* ===== TABLA BASE ===== */
.olympic-table{
  width: 100%;
  table-layout: fixed;
}

/* ===== ANCHOS (medallistas dominan) ===== */
.olympic-table th:first-child,
.olympic-table td:first-child{
  width: 28%;
  text-align: left;
}

.olympic-table th:nth-child(2),
.olympic-table th:nth-child(3),
.olympic-table th:nth-child(4),
.olympic-table td:nth-child(2),
.olympic-table td:nth-child(3),
.olympic-table td:nth-child(4){
  width: 24%;
  text-align: center;
}

/* ===== PRUEBA secundaria ===== */
.olympic-table td:first-child small{
  display: block;
  font-size: 0.82rem;
  line-height: 1.35;
  opacity: 0.75;
}

/* ===== MEDALLISTAS protagonistas ===== */
.olympic-table td:nth-child(2),
.olympic-table td:nth-child(3),
.olympic-table td:nth-child(4){
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  vertical-align: middle;
}

/* ===== MÁS AIRE ===== */
.olympic-table td{
  padding: 18px 10px;
}

/* ===== ICONOS CABECERA ===== */
.olympic-table th img{
  display: block;
  margin: 0 auto;
}

/* ===== Bandera + nombre mejor alineados ===== */
.olympic-table td img{
  vertical-align: middle;
  margin-right: 6px;
}


/* ===== MODAL (fade-in) ===== */
.modal{
  position: fixed;
  inset: 0;                  /* top/right/bottom/left: 0 */
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.85);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;      /* evita clicks cuando está oculto */
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal.show{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-content{
  display: block;
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  margin: 0;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(0,0,0,0.5);

  transform: scale(0.96);
  transition: transform 0.35s ease;
}

.modal.show .modal-content{
  transform: scale(1);
}

.close{
  position: absolute;
  top: 16px;
  right: 22px;
  color: #fff;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}

/* Botón “Foto” (si lo usas) */
.photo-btn{
	background-color: #7b2cbf;
	color: #fff;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	font-size: 0.85rem;
	padding-top: 2px;
	padding-right: 8px;
	padding-bottom: 4px;
	padding-left: 8px;
}

.photo-btn:hover{
  opacity: 0.85;
}

.photo-btn{
  background-color: #7b2cbf;
  color: #fff;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 3px 8px;

  display: inline-block;     /* 🟡 CAMBIO: asegura que margin/padding se respete bien */
  margin: 3px 6px;           /* 🟡 CAMBIO: separación horizontal y vertical entre botones */
  line-height: 1.2;          /* 🟡 CAMBIO: evita que se “aplasten” si saltan de línea */
  vertical-align: middle;    /* 🟡 CAMBIO: se alinea bonito dentro del td */
}
.espaciador {
	margin: 4px;
	clear: both;
	float: none;
}


}