 :root {
    --primary-color: #e53935;
    --dark-bg: #121212;
    --card-bg: #1a1a1a;
    --text-color: #ffffff;
    --border-color: #333;
    --success-color: #4CAF50;
    --danger-color: #F44336;
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('img/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 40px 0;
  }

  body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
  }

  .register-container {
    position: relative;
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 30px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
  }

  .header {
    text-align: center;
    margin-bottom: 30px;
  }

  .logo {
    margin-bottom: 20px;
  }

  .logo img {
    width: 150px;
    height: auto;
  }

  .title {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
  }

  .subtitle {
    font-size: 1rem;
    opacity: 0.7;
  }

  .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
  }

  .form-col {
    flex: 1;
  }

  .form-group {
    margin-bottom: 20px;
  }

  label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
  }

  .input-container {
    position: relative;
  }

  input {
    width: 100%;
    padding: 12px;
    padding-left: 40px;
    border: none;
    border-radius: 5px;
    background-color: #333;
    color: white;
    font-size: 1rem;
    box-sizing: border-box;
    transition: all 0.3s;
  }

  input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
  }

  .input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
  }

  .password-container {
    position: relative;
  }

  .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #aaa;
  }

  .error {
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: 5px;
  }

  .success-message {
    background-color: rgba(76, 175, 80, 0.2);
    color: var(--success-color);
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid rgba(76, 175, 80, 0.3);
  }

  .error-message {
    background-color: rgba(244, 67, 54, 0.2);
    color: var(--danger-color);
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid rgba(244, 67, 54, 0.3);
  }

  .password-info {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 4px;
    margin-top: 5px;
    font-size: 0.85rem;
  }

  .password-info ul {
    padding-left: 20px;
    margin-top: 5px;
  }

  .password-info li {
    margin-bottom: 3px;
  }

  .btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    background-color: var(--primary-color);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
    font-weight: bold;
    transition: all 0.3s;
  }

  .btn:hover {
    background-color: #c62828;
    transform: translateY(-2px);
  }

  .btn:active {
    transform: translateY(0);
  }

  .login-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
  }

  .login-link a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
  }

  .login-link a:hover {
    text-decoration: underline;
  }

  /* Animaciones */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .register-container {
    animation: fadeIn 0.5s ease-out forwards;
  }

  /* Responsive */
  @media (max-width: 768px) {
    .form-row {
      flex-direction: column;
      gap: 0;
    }

    .register-container {
      margin: 0 20px;
    }
  }

  /* ====== TABS ====== */
.tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.tab-btn {
  flex: 1;
  padding: 12px;
  background: transparent;
  border: none;
  color: #aaa;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom: 3px solid var(--primary-color);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
  display: block;
}

select {
  width: 100%;
  padding: 12px;
  padding-left: 40px;
  border: none;
  border-radius: 5px;
  background-color: #333;
  color: white;
  font-size: 1rem;
  box-sizing: border-box;
  appearance: none;           /* Quita estilo nativo */
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

select:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary-color);
}

/* Flecha personalizada */
.select-container {
  position: relative;
}

.select-container::after {
  content: "▾";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  pointer-events: none;
}


/* Header con img */
.header-flex{
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 25px;
}

.foto-peleador{
    width: 150px;
    text-align: center;
}

.preview_frente img{
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px dashed #e11d48;
    cursor: pointer;
}

.foto-peleador span{
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #ccc;
}

.header-info{
    flex: 1;
}

/* Modald e fotosd */
.modal-fotos {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
  background: #121212;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  color: #fff;
}

.foto-item {
  display: flex;
  flex-wrap: wrap;        /* CLAVE */
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}

/* Label arriba */
.foto-item label {
  flex-basis: 100%;       /* ocupa toda la fila */
  margin-bottom: -100px;
}

/* Input a la izquierda */
.foto-item input[type="file"] {
  flex: 1;
}

/* Preview a la derecha */
.foto-item img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  background: #1a1a1a;
  border-radius: 8px;
  flex-shrink: 0;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
}

.ejemplos-fotos {
  margin-top: 20px;
}

.ejemplos-title {
  font-weight: 600;
  margin-bottom: 10px;
}

.ejemplos-grid {
  display: flex;
  gap: 10px;
}

.ejemplos-grid div {
  text-align: center;
  flex: 1;
}

.ejemplos-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
}

.ejemplos-grid span {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  opacity: 0.8;
}
