body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: url('../img/fondo.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  text-align: center;
  line-height: 1.8;
}

/* HEADER */
header {
  padding: 50px 20px;
  font-family: 'Press Start 2P', cursive;
  font-size: 24px;
  color: #0ff;
  text-shadow: 0 0 10px #0ff, 0 0 20px #0ff;
  animation: flicker 2s infinite alternate;
}

@keyframes flicker {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* MENÚ */
.menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 40px;
}

.menu button {
  all: unset;
  font-family: 'Press Start 2P', cursive;
  font-size: 14px;
  color: #ff0;
  cursor: pointer;
  text-shadow: 0 0 5px #ff0, 0 0 15px #ff0;
  transition: color 0.3s ease, transform 0.2s ease;
}

.menu button:hover {
  color: #ff3333;
  text-shadow: 0 0 8px #ff3333, 0 0 15px #ff3333;
  transform: scale(1.05);
}

/* --- SECCIONES --- */
section {
  display: none;
  padding: 40px 15%;
  text-align: center;
  animation: fadeIn 1s;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 0;
}

section h2,
section h3,
section p {
  position: relative;
  z-index: 1;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

section h2 {
  font-family: 'Press Start 2P', cursive;
  font-size: 22px;
  color: #0ff;
  text-shadow: 0 0 10px #0ff, 0 0 15px #0ff;
  margin-bottom: 30px;
}

section h3 {
  font-size: 18px;
  color: #ff0;
  margin-top: 25px;
  margin-bottom: 10px;
  text-shadow: 0 0 8px #ff0, 0 0 15px #ff0;
}

section p {
  font-size: 16px;
  color: #eee;
  margin: 6px 0 15px 0;
  line-height: 1.6;
}

/* BOTÓN VOLVER */
.back-button {
  margin-top: 30px;
  padding: 8px 16px;
  font-family: 'Press Start 2P', cursive;
  font-size: 12px;
  border: 2px solid #0ff;
  background: transparent;
  color: #0ff;
  cursor: pointer;
  text-shadow: 0 0 5px #0ff, 0 0 10px #0ff;
  animation: flicker 1.5s infinite alternate;
  transition: transform 0.2s ease;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.back-button:hover {
  transform: scale(1.05);
}

/* IFRAME */
iframe {
  width: 100%;
  max-width: 800px;
  height: 400px;
  border: none;
  margin-top: 20px;
  box-shadow: 0 0 20px #f0f;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* HABILIDADES */
.skill-row {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.skill-row span {
  color: #fff;
  font-weight: 600;
  width: 150px;
  text-align: left;
}

.bar {
  flex: 1;
  height: 12px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 5px #444 inset;
  margin-left: 15px;
}

.level {
  height: 100%;
  background: linear-gradient(90deg, #ff3333, #ff8800);
  box-shadow: 0 0 10px #ff3333, 0 0 20px #ff8800;
  border-radius: 10px;
  transition: width 1s ease-in-out;
}

/* --- PANTALLA INICIAL --- */
#start-screen {
  width: 100%;
  height: 100vh;
  background: url('../img/fondo.jpg') no-repeat center center fixed;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

/* Contenedor central de la pantalla inicial */
.start-box {
  width: 500px;           /* ancho del “cuadro” */
  max-width: 90%;         /* adaptable en móviles */
  padding: 30px;
  background: rgba(0,0,0,0.7); /* franja semitransparente */
  border: 4px solid #0ff;
  border-radius: 15px;
  box-shadow: 0 0 20px #0ff, 0 0 40px #00f inset;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Barra arcade dentro del cuadro */
.arcade-top {
  width: 100%;             /* ahora solo el ancho del cuadro */
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-family: 'Press Start 2P', cursive;
  color: #ff0;
  text-shadow: 0 0 8px #ff0, 0 0 15px #ff6600;
}

.arcade-left, .arcade-right, .arcade-center {
  font-size: 16px;         /* más pequeño que antes */
}

/* START CV */
.start-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 52px;
  color: orange;
  text-shadow: 0 0 10px orange, 0 0 20px #ff6600, 0 0 40px #ff3300;
  margin-bottom: 40px;
  margin-top: 20px;        /* menos margen superior */
}

/* Caja central */
.arcade-box {
  background: rgba(0,0,50,0.8);
  border: 0px solid #0ff;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 0 20px #0ff, 0 0 40px #00f inset;
}

.player-name {
  font-family: 'Press Start 2P', cursive;
  color: #0ff;
  /* text-shadow: 0 0 10px #0ff, 0 0 20px #0ff, 0 0 40px #00f; */ /* eliminado neón azul */
  font-size: 18px;
  margin-bottom: 15px;
}

/* Foto pequeña y redonda */
.player-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid #ff0;
  box-shadow: 0 0 15px #ff0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.player-photo:hover {
  transform: scale(1.1);
}

/* CREDIT abajo a la derecha dentro del cuadro */
.credit-bottom {
  position: absolute;
  bottom: 20px;
  right: 30px;
  font-size: 14px;
  font-family: 'Press Start 2P', cursive;
  color: #ff0;
  text-shadow: 0 0 8px #ff0, 0 0 15px #ff6600;
}

#cv-content {
  display: none;
}
