@charset "utf-8";

/* RESET */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html{
  background-color: #e6f2ff;
  scroll-behavior: smooth;
}

body{
  background-color: #ffffff;
  width: 90%;
  max-width: 1100px;
  margin: 10px auto;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}

/* HEADER */
header{
  background: linear-gradient(135deg, #004687 0%, #00a9e0 100%);
  padding: 80px 20px;
  text-align: center;
  color: white;
  border-bottom: 8px solid #91278f;
}

h1{
  font-size: 3rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 900;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
}

/* CONTENEDOR PRINCIPAL */
.main-content{
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* SECCIÓN INTRO / SEDES */
.intro-sedes{
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.info-row{
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 0;
}

.info-card{
  background:#fff;
  border-radius:14px;
  padding:18px;
  box-shadow:0 6px 16px rgba(0,0,0,0.12);
  border-left:4px solid DarkTurquoise;
  color:#444;
  transition:transform .2s ease, box-shadow .2s ease;
  flex: 1;
  min-width: 300px;
}

.info-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
}

.info-card h3{
  margin-top: 0;
  color: #003366;
}

.info-card p{
  margin-top: 10px;
  color: #444;
  line-height: 1.4;
}

/* CALENDARIO */
.calendario-finales{
  margin: 40px 0;
  background: #f4f7f9;
  padding: 30px;
  border-radius: 15px;
}

.timeline{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.event-day{
  background: white;
  padding: 15px;
  border-radius: 10px;
  border-left: 4px solid #91278f;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.date{
  display: block;
  font-weight: bold;
  color: #00a9e0;
  font-size: 1.1rem;
}

/* TABLAS */
.disciplina-section h2{
  color: #004687;
  border-left: 5px solid #91278f;
  padding-left: 15px;
  margin: 50px 0 20px 0;
  text-transform: uppercase;
}

.olympic-table{
  width: 100%;
  border-collapse: collapse;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.olympic-table th{
  background-color: #004687;
  color: white;
  padding: 15px;
  text-transform: uppercase;
}

.olympic-table td{
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.olympic-table tr:nth-child(even){
  background-color: #fafafa;
}

.gold{ color: #d4af37; font-weight: bold; }
.silver{ color: #aaa9ad; font-weight: bold; }
.bronze{ color: #cd7f32; font-weight: bold; }

/* IMÁGENES */
img{
  max-width: 100%;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}

/* FOOTER */
footer{
  background-color: #002d5a;
  color: white;
  padding: 60px 20px;
  text-align: center;
  margin-top: 80px;
}

.nav-links{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.nav-links a{
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
}

.nav-links a.active{
  background-color: #91278f;
  border-color: #91278f;
}

.nav-links a:hover{
  background-color: #00a9e0;
}

/* SELECCIÓN DE TEXTO */
::selection{
  background-color: #00a9e0;
  color: white;
}
/* Medallistas dentro del medallero grande */




.olympic-table td{
  vertical-align: middle;
  text-align: left;   /* alineación general a la izquierda */
  padding-left: 12px;
}

.athlete {
  display: flex;
  align-items: center;
  gap: 8px;
}

.athlete .flag{
  width: 22px;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.athlete .name{
  font-weight: 800;
  color: #111;
  letter-spacing: 0.2px;
  font-size: 0.95rem;
}
.flag {
  width: 22px;
  height: auto;
}

.name {
  font-weight: bold;
}

/* Centrado de cabeceras de medallas */
.olympic-table th {
  text-align: center;
  vertical-align: middle;
  height: 50px;
}

/* Si usas iconos dentro del th */
.olympic-table th img {
  vertical-align: middle;
  height: 28px; /* ajusta según tus iconos */
}
/* 1) Igualar padding y alineación entre TH y TD */
.olympic-table th,
.olympic-table td{
  padding-left: 12px;
  padding-right: 12px;
}

/* 2) Primera columna (Categoría) a la izquierda */
.olympic-table th:first-child,
.olympic-table td:first-child{
  text-align: left;
}

/* 3) Columnas de medallas: alinear igual que los medallistas */
.olympic-table th:not(:first-child),
.olympic-table td:not(:first-child){
  text-align: left;        /* si tus medallistas van a la izquierda */
}

/* 4) Iconos en TH: que se comporten como “athlete” */
.olympic-table th img{
  display: inline-block;
  vertical-align: middle;
  height: 26px;            /* ajusta si hace falta */
}
/* Empuja el icono lo mismo que el contenido (solo si hace falta) */
.olympic-table th:not(:first-child){
  padding-left: 70px; /* igual que td */
}

