/* GENERAL */
body {
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  background-color: #0f0f0f;
  color: #00ff7f;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* NAVBAR SUPERIOR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #111;
    color: #00ff7f;
    padding: 12px 0;
    box-shadow: 0px 2px 5px rgba(0,0,0,0.4);
    z-index: 1000;
    border-bottom: 2px solid var(--green);
    font-family: Arial, sans-serif;
}

.navbar-container {
    width: 90%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo a {
    font-size: 22px;
    text-decoration: none;
    color: #00ff7f;
    font-weight: bold;
}

.navbar-links a {
    margin-left: 20px;
    text-decoration: none;
    color: #00ff7f;
    font-size: 16px;
    transition: 0.3s;
}

.navbar-links a:hover {
    color: #00ff7f;
}

/* Para que el contenido no quede tapado */
body {
    padding-top: 70px;
}


/* ================= PERFIL PRINCIPAL ================= */

.perfil-wrapper {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: #101010;
  border-radius: 6px;
  border: 1px solid #1d1d1d;
}

.perfil-foto img {
  width: 220px;
  border-radius: 4px;
}

.perfil-info {
  flex: 1;
}

.perfil-nombre {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  color: #3cff73;
}

.flag {
  width: 22px;
  height: 15px;
  border: 1px solid #333;
  margin-right: 6px;
}

.perfil-nacionalidad {
  font-size: 15px;
  color: #ccc;
  margin-top: 6px;
  display: flex;
  align-items: center;
}

.perfil-club {
  margin-top: 10px;
  font-size: 17px;
  color: #ddd;
}

/* STATS estilo Transfermarkt */
.perfil-stats {
  display: flex;
  gap: 35px;
  margin-top: 20px;
}

.stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 13px;
  color: #bbb;
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
  margin-top: 3px;
  color: #fff;
}

/* TITULOS */
.perfil-titulos {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

.titulo-box {
  position: relative;
  width: 70px;
  height: 70px;
}

.trofeo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}


.titulo-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #3cff73;
  color: #000;
  font-weight: 700;
  border-radius: 50%;
  padding: 4px 8px;
  font-size: 13px;
}

/* ================= TABLA TRAYECTORIA ================= */

.body2 {
  margin: 0;
  font-family: "Arial Narrow", Arial, sans-serif;
  background-color: #0f0f0f;
  color: #efefef;
}

.career-section {
  margin-top: 30px;
  background: #111;
  padding: 20px;
  border-radius: 6px;
}

.career-section h2 {
  color: #3cff73;
  border-bottom: 2px solid #3cff73;
  padding-bottom: 6px;
  margin-bottom: 18px;
}

.career-table {
  width: 100%;
  border-collapse: collapse;
}

.career-table th, .career-table td {
  border: 1px solid #222;
  padding: 8px;
  font-size: 14px;
}

.career-table th {
  background: #161616;
}

.career-table td {
  background: #121212;
}

.career-table tr:nth-child(even) td {
  background: #161616;
}
/* ================= HISTORIAL / TRAYECTORIA ================= */

.transfer-history {
    margin-top: 35px;
    background: #111;
    padding: 20px;
    border-radius: 6px;
}

.transfer-history h2 {
    color: #3cff73;
    border-bottom: 2px solid #3cff73;
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.transfer-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.transfer-table th,
.transfer-table td {
    border: 1px solid #222;
    padding: 8px;
}

.transfer-table th {
    background: #161616;
    color: #ddd;
    font-weight: 600;
    text-align: left;
}

.transfer-table td {
    background: #121212;
    color: #eee;
}

.transfer-table tr:nth-child(even) td {
    background: #181818;
}

/* Club con escudo + nombre (estilo Transfermarkt) */
.club-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.club-box img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* ====== MENÚ SUPERIOR FIJO ====== */
.top-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: #0b0b0b;
    border-bottom: 2px solid var(--green);
    z-index: 100;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.top-nav .logo {
    font-weight: 900;
    color: var(--green);
    font-size: 1.5rem;
}

.top-nav nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.top-nav nav a {
    text-decoration: none;
    color: var(--green);
    font-weight: 700;
    transition: 0.3s;
}

.top-nav nav a:hover {
    color: white;
    text-shadow: 0 0 10px var(--green);
}