/* Fondo general */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-image: url('img/fond0.jpg'); /* Ruta a la imagen de fondo */
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Encabezado */
header {
    background-color: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #f1c40f;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 150px;
    height: auto;
}

h1 {
    font-size: 1.8em;
    color: rgb(255, 255, 255);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info .icon {
    font-size: 1.5em;
    cursor: pointer;
}

/* Botones de Autenticación */
.auth-buttons {
    display: flex;
    gap: 10px;
    
}
.pill-button {
    margin-left: 10px;
    padding: 4px 10px;
    font-size: 0.85em;
    font-weight: bold;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}
.pill-button:hover {
    background-color: #2c80b4;
}

.login-btn, .register-btn {
    padding: 10px 20px;
    font-size: 0.9em;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn {
    background-color: #1abc9c;
    color: #fff;
}

.register-btn {
    background-color: #3498db;
    color: #fff;
}

.login-btn:hover, .register-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}


/* Área de Progreso */
.progress-area {
    background-color: #f5da53;
    margin: 20px auto;
    padding: 20px;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}
/* Flechas de navegación */
.arrow {
    cursor: pointer;
    font-size: 1.5em;
    margin: 0 5px;
}

.progress-area h2 {
    color: #010101;
    margin-bottom: 15px;
}

.boosters, .badges, .identifiers {
    margin: 15px 0;
}

/* Estilos del Slider */
.slider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.arrow {
    cursor: pointer;
    font-size: 1.5em;
    color: #000000;
    user-select: none;
}

.slider-content {
    display: flex;
    overflow: hidden;
    width: 70%;
    gap: 10px;
    scroll-behavior: smooth;
}

.slider-content span {
    min-width: 45%;
    text-align: center;
    color: #050000;
    font-size: 0.9em;
    padding: 8px;
    background-color: #fefffd;
    border-radius: 6px;
    white-space: nowrap;
}

/* Reset básico 
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
*/
body {
    font-family: Arial, sans-serif;
    background-color: #f9f0e9;
}

/* Zona Social y Rankings */
.social-area {
    background-color: #31d3fc;
    padding: 20px;
    margin: 20px auto;
    max-width: 500px;
    border-radius: 8px;
    text-align: center;
}

.social-chat {
    margin-bottom: 20px;
}

.social-chat ul {
    list-style: none;
    margin-top: 10px;
}

.social-chat li {
    display: flex;
    justify-content: space-between;
    padding: 5px;
    background-color: #f5f5f5;
    margin: 5px 0;
    border-radius: 4px;
}

.rankings .ranking-user {
    padding: 5px;
    background-color: #f5f5f5;
    margin: 5px 0;
    border-radius: 4px;
}

.medal-icon {
    font-size: 1.2em;
    margin-left: 10px;
}

/* Estilos de la Ventana Emergente de Mensajes */
.message-popup {
    display: none; /* Oculta la ventana por defecto */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    padding: 20px;
    background-color: #dbc450;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    z-index: 1000;
}

.message-popup h3 {
    font-size: 1.1em;
    margin-bottom: 10px;
    text-align: center;
}

.message-popup textarea {
    width: 100%;
    height: 80px;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #620d0d;
    border-radius: 4px;
    resize: none;
}

.message-popup button {
    width: 48%;
    padding: 8px;
    margin: 5px 1%;
    border: none;
    background-color: #f6f9f9;
    color: #000000;
    border-radius: 4px;
    cursor: pointer;
}

.message-popup button:last-child {
    background-color: #fcffff;
}

.message-popup button:hover {
    opacity: 0.9;
}
.user-info {
    display: flex;
    align-items: center;
    font-size: 0.9em;
    color: #f7eeee;
}

.user-info i {
    color: #fbf6f6;
}

.logout-link {
    margin-left: 10px;
    color: #007bff;
    text-decoration: none;
    cursor: pointer;
}

.logout-link:hover {
    text-decoration: underline;
}




    header {
        background-color: rgba(0, 0, 0, 0.8); /* Fondo translúcido */
        color: white;
        padding: 10px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
    }

    .main-content {
        padding: 20px;
        background: rgba(255, 255, 255, 0.9); /* Fondo blanco translúcido */
        border-radius: 10px;
        box-shadow: 0px 
    }
    /* Consultas de medios para hacer el sitio responsive el sitio*/
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    h1 {
        text-align: left;
        margin-top: 10px;
    }

    .auth-buttons {
        width: 100%;
        justify-content: space-evenly;
        margin-top: 10px;
    }

    .progress-area, .social-area {
        margin: 10px;
        padding: 15px;
    }

    .booster-icons, .badge-icons, .identifier-icons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .login-btn, .register-btn {
        padding: 8px 15px;
        font-size: 0.8em;
    }
}
/* Estilos para el Formulario de Registro */
.registration-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px auto;
    padding: 20px;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.1); /* Fondo transparente */
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #000; /* Color de texto negro */
}

.registration-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.registration-form label {
    font-size: 1em;
    color: #000; /* Color de texto negro */
}

.registration-form input {
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.5); /* Bordes más oscuros */
    border-radius: 8px;
    font-size: 1em;
    background-color: rgba(255, 255, 255, 0.2);
    color: #000; /* Color de texto negro */
    transition: background-color 0.3s, box-shadow 0.3s;
}

.registration-form input::placeholder {
    color: #777; /* Color de placeholder ajustado para mejor visibilidad con texto negro */
}

.registration-form input:focus {
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    outline: none;
    border-color: rgba(0, 0, 0, 0.7); /* Bordes más oscuros en foco */
}

.registration-form button {
    padding: 15px;
    font-size: 1.1em;
    border: none;
    border-radius: 25px;
    background-color: #3498db;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.registration-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.registration-form button:active {
    transform: translateY(1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

header {
    background-color: rgba(0, 0, 0, 0.9); /* Fondo translúcido */
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
}

.main-content {
    padding: 20px;
    background: rgba(255, 255, 255, 0.9); /* Fondo blanco translúcido */
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    margin: 20px;

}

/* ───────────────────────────────────────── */
/* RESPONSIVE PARA TABLETS Y MÓVILES         */
/* ───────────────────────────────────────── */
@media (max-width: 768px) {

  /* Header en columna */
  header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }
  header .logo img {
    height: 120px;
    margin-bottom: 10px;
  }
  header h1 {
    font-size: 1.6em;
    margin: 5px 0;
  }
  header .user-info {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* Main area full-width */
  .progress-area {
    width: 90% !important;
    margin: 20px auto !important;
    padding: 0 10px !important;
  }
  .progress-area h2 {
    font-size: 1.4em;
  }

  /* Sliders pasan a mostrar menos ítems */
  .slider {
    display: flex;
    align-items: center;
    overflow: hidden;
  }
  .slider-content {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
  }
  .slider-content span {
    flex: 0 0 auto;
    font-size: 0.9em;
  }
  .arrow {
    font-size: 1.2em;
    padding: 5px;
  }

  /* Botones “Canjear” a ancho completo */
  .pill-button,
  .btn-canjear {
    display: block;
    width: 100%;
    margin-top: 5px;
    padding: 8px;
    font-size: 0.9em;
  }

  /* Rankings y messagePopup */
  .rankings,
  .social-area {
    width: 100%;
    margin-top: 20px;
  }
  #ranking-container p {
    font-size: 1em;
  }
  .message-popup {
    width: 90% !important;
    padding: 15px !important;
  }
  .message-popup textarea {
    width: 100% !important;
    height: 100px !important;
  }
  .message-popup button {
    width: 48% !important;
    margin: 5px 1% !important;
  }
}

@media (max-width: 480px) {
  /* Titulares más compactos */
  header h1,
  .progress-area h2,
  .boosters h3,
  .badges h3,
  .identifiers h3,
  .social-area h2 {
    font-size: 1.2em !important;
  }

  /* Íconos y texto reducido */
  .slider-content span {
    font-size: 0.8em !important;
  }
  .arrow {
    font-size: 1em !important;
  }

  /* Secciones en bloque */
  .boosters,
  .badges,
  .identifiers {
    margin-bottom: 15px !important;
  }

  /* Sliders en una columna suave */
  .slider-content {
    gap: 6px !important;
  }
  .pill-button,
  .btn-canjear {
    font-size: 0.8em !important;
    padding: 6px !important;
  }

  /* Ajuste extra de textarea y botones del popup */
  .message-popup textarea {
    height: 80px !important;
  }
  .message-popup button {
    font-size: 0.8em !important;
    padding: 6px !important;
  }
}
