/* RESET BÁSICO */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', sans-serif;
  background-image: url('fondo_soft.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  color: #333;
}

.layout {
  display: flex;
  min-height: 100vh;
}

/* MENÚ LATERAL */
.menu {
  width: 250px;
  background-image: url('0arena.png');
  background-size: cover;
  background-position: center;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: sticky;
  top: 0;
  height: 100vh;
}

.top-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.logo {
  width: 100%;
  border-radius: 20px;
  margin-bottom: 20px;
}

nav ul {
  list-style: none;
  width: 100%;
  padding: 0;
}

nav li {
  margin: 10px 0;
  text-align: center;
}

nav li a {
  text-decoration: none;
  font-weight: bold;
  color: #333;
  display: block;
  padding: 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

/* BRILLI BRILLI */
.brilli a:hover {
  background: linear-gradient(90deg, #f7d488, #ffbb7c);
  color: #000;
  box-shadow: 0 0 10px rgba(255, 200, 120, 0.7);
}

.espaciador {
  flex-grow: 1;
  width: 100%;
}

/* CONTENEDOR ICONOS */
.icon-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding-bottom: 20px;
}

.icon-wrapper img {
  width: 60px;
  border-radius: 50%;
}

/* CONTENIDO PRINCIPAL */
.contenido {
  flex: 1;
  padding: 40px;
  position: relative;
}

.idiomas {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.idiomas img {
  height: 28px;
  border-radius: 4px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  width: 30px;
  cursor: pointer;
}

.tarjeta {
  background: white;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  max-width: 800px;
  margin: 60px auto;
}

h2 {
  font-size: 1.8em;
  color: #c1792b;
  margin-bottom: 10px;
}

p {
  font-size: 1em;
  line-height: 1.8;
  margin-bottom: 20px;
}

.en, .es {
  display: none;
}

/* TEXTOS RESALTADOS */
.highlight {
  font-size: 0.95em;
  font-style: italic;
  color: #c1792b;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  .menu {
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
  }

  .contenido {
    padding: 20px;
  }

  .tarjeta {
    margin: 20px auto;
    padding: 20px;
  }
}


/* EQUIPO EN GRID REHECHO */
.equipo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  justify-items: center;
  align-items: start;
  text-align: center;
  margin-top: 30px;
}

.miembro {
  max-width: 240px;
}

.miembro img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin-bottom: 10px;
}

.miembro p {
  font-size: 0.95em;
  line-height: 1.4;
  word-break: break-word;
}

/* Responsive grid stack */
@media (max-width: 768px) {
  .equipo-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}


/* Tarjeta de altura fija visualmente controlada */
.tarjeta-equipo {
  padding-top: 15px;
  padding-bottom: 15px;
}

.equipo-grid.fijo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  min-height: 240px;
}

.miembro {
  margin: 0;
  max-width: 220px;
}

.miembro img {
  width: 110px;
  height: 110px;
  margin-bottom: 8px;
}

.miembro p {
  margin-top: 0;
  margin-bottom: 0;
}

.tarjeta h2,
.tarjeta h2.es,
.tarjeta h2.en {
  text-align: center !important;
  display: block;
  width: 100%;
  justify-content: center;
  align-items: center;
}

/* ACCESIBILIDAD */

a:focus, button:focus, .menu-toggle:focus {
  outline: 2px solid #ff8c00;
  outline-offset: 4px;
}

body {
  color: #111;
}

.tarjeta p {
  line-height: 1.6;
}

@media (max-width: 768px) {
  .boton, button {
    margin-bottom: 12px;
  }

  .formulario input, .formulario textarea {
    padding: 14px;
  }
}

@media (max-width: 480px) {
  .icon-wrapper img {
    width: 48px;
  }
}
/* Responsive sidebar width */
@media (max-width: 768px) {
  .menu-lateral {
    width: 180px;
  }
}

@media (max-width: 480px) {
  .menu-lateral {
    width: 140px;
  }
}
