* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* Fondo rosado solo para la pantalla de inicio */
body.index {
    background-color: #fcebc7; 
}

body {
    background-color: #2960A4;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 380px;
    background: transparent;
    text-align: center;
}

.logo {
  width: 200px;
  margin-bottom: 40px;
}

h1 {
    margin-bottom: 20px;
    font-size: 26px;
}

.input-group {
    text-align: left;
    margin-bottom: 15px;
}

.input-group label {
    font-size: 15px;
}

input {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border-radius: 25px;
    border: none;
    outline: none;
    font-size: 14px;
}

.btn {
    display: block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    background-color: #F4A11A ;
}

a {
    color: #F4A11A;
    font-size: 14px;
    margin-top: 10px;
    display: inline-block;
    text-decoration: none;
}


.btn-profesor {
  background-color: #b7d7f4;
  color: #004b9a;
}

.btn-alumno {
  background-color: #f9a825;
  color: white;
}

.subtexto {
  font-size: 0.8rem;
  margin-top: 25px;
  color: #444;
}

.btn:hover {
    background-color: #fcebc7
}

/* Portal */
body.portal {
  background-color: #004b9a;
  color: white;
}

.portal-container {
  width: 90%;
  max-width: 350px;
  text-align: center;
  background: none;
}

.mini-logo {
  width: 90px;
  margin-bottom: 10px;
}

h2 {
  margin-bottom: 15px;
}

.avatar-placeholder {
  width: 80px;
  height: 80px;
  background-color: #fcebc7;
  border-radius: 50%;
  margin: 0 auto 15px;
}


a:hover {
    opacity: 0.8;
}

.helper {
    position: relative;
    margin-bottom: 20px;
}

#character {
    width: 100px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#character.small {
    width: 50px;
}

.balloon {
    background: #fff;
    color: #000;
    padding: 10px;
    font-size: 13px;
    border-radius: 10px;
    max-width: 220px;
    position: absolute;
    top: -10px;
    left: 110px;
    display: none;
}

body.perfil {
  background-color: #E7F0FA;
  color: #003366;
}

.portal-container {
  width: 90%;
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}

.profile-card {
  background: #fff;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.profile-pic img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #F4A11A;
}

h2 {
  margin-top: 10px;
  font-size: 22px;
  color: #003366;
}

.status {
  font-size: 13px;
  color: #666;
  margin-bottom: 15px;
}

.stats {
  display: flex;
  justify-content: space-around;
  background: #E7F0FA;
  border-radius: 12px;
  padding: 10px 0;
  margin-bottom: 20px;
}

.stats .label {
  display: block;
  font-size: 13px;
  color: #666;
}

h3 {
  margin: 15px 0 10px 0;
}

.medals img {
  width: 50px;
  margin: 5px;
}

.profile-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.contador {
  font-size: 30px;
  font-weight: bold;
  background: #fff;
  color: #2960A4;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

.opciones {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.option {
  padding: 12px;
  border-radius: 20px;
  border: none;
  background-color: #fff;
  color: #2960A4;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s;
}

.option:hover {
  background-color: #F4A11A;
  color: #fff;
}

.option.correcta {
  background-color: #4CAF50;
  color: #fff;
}

.option.incorrecta {
  background-color: #F44336;
  color: #fff;
}

/* ======== FEEDBACK CORRECTO / INCORRECTO ======== */
body.correcto {
  background-color: #4CAF50 !important;
  transition: background-color 0.4s ease;
}
body.incorrecto {
  background-color: #f3483b !important;
  transition: background-color 0.4s ease;
}

/* ======== PERSONAJE ABAJO ======== */
.helper-bottom {
  position: fixed;
  bottom: 15px;
  right: 15px;
  z-index: 10;
}

.helper-bottom img {
  width: 90px;
  cursor: pointer;
}

.helper-bottom .balloon {
  bottom: 100px;
  right: 0;
  background: #fff;
  color: #000;
  padding: 12px;
  border-radius: 10px;
  max-width: 260px;
  font-size: 14px;
  display: none;
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

.logros ul, .salas ul {
  list-style: none;
  text-align: left;
  padding-left: 15px;
  margin-top: 10px;
}

.logros li, .salas li {
  background: #E7F0FA;
  margin-bottom: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  color: #003366;
  font-size: 14px;
}
