/* NAVBAR RESPONSIVE */
.main-header {
  background-color: rgba(20, 20, 20, 0.95);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--color-panel);
}

:root {
  --color-dark-bg: #141414;
  /* Negro de fondo base */
  --color-panel: #1f2022;
  /* Gris grafito oscuro del uniforme */
  --color-text-light: #ffffff;
  /* Texto blanco */
  --color-text-muted: #b3b3b3;
  /* Texto secundario gris */
  --color-accent-green: #00b050;
  /* Verde brillante del logo (Swim) */
  --color-accent-neon: #ccff00;
  /* Amarillo flúor reactivo (Bike) */
  --font-base: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.logo img {
  height: 60px;
  width: auto;
  padding: 5px;
}

#menu-check {
  display: none;
}

.icons-toggle {
  display: none;
  cursor: pointer;
}

.main-nav a {
  color: var(--color-text-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s;
  margin: 0 15px;
}

.main-nav a:hover {
  color: var(--color-accent-neon);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* PÁGINA TEAM */
main.team-page,
main.athlete-detail-page {
  padding-top: 80px;
  /* Ajusta este valor si tu header es más alto o bajo */
}

.team-page {
  background-color: #f8f9fa;
  padding-bottom: 60px;
  font-family: system-ui, -apple-system, sans-serif;
}

.team-header {
  text-align: center;
  padding: 50px 20px 30px;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #111827;
  margin: 0 0 10px 0;
  letter-spacing: -0.5px;
}

.page-subtitle {
  color: #6c757d;
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* GRID DE TARJETAS */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.team-card {
  background: var(--color-text-light);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.team-card-image-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  /* Forzado a proporción rectangular fija estilo catálogo */
  overflow: hidden;
  background-color: #2a2b2e;
  /* Fondo oscuro por si la imagen tarda o no existe */
  position: relative;
}

.team-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  margin: 0;
  transition: transform 0.4s ease;
}

.team-card:hover .team-card-image {
  transform: scale(1.03); /* Micro zoom al pasar el cursor */
}

/* INFORMACIÓN DEL ATLETA */
.team-card-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background-color: var(--color-text-light);
  transition: background-color 0.3s ease;
}

.team-card:hover .team-card-info {
  background-color: var(--color-accent-neon);
}

.athlete-card-name {
  font-size: 1.25rem;
  font-weight: 900;
  font-style: italic;
  /* Aporte de estilo deportivo UAE */
  text-transform: uppercase;
  color: #111827;
  margin: 0 0 4px 0;
  letter-spacing: 0.5px;
}

.athlete-card-quote {
  font-style: italic;
  color: #6b7280;
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0;
}

.team-card-link {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 700;
  color: #00c853;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.team-card:hover .team-card-link {
  text-decoration: underline;
}