@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300&display=swap");

:root {
    --grad-1: #8e2de2;
    --grad-2: #4a00e0;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-blur: 10px;
    --card-radius: 1.5rem;
    --glow: rgba(142, 45, 226, 0.6);
}

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

html, body {
    touch-action: pan-y;
    font-family: "Quicksand", sans-serif, Arial, Helvetica;
    background: #111;
    color: #fff;
    text-align: center;
    overflow-x: hidden;
    overflow-y: auto !important;
    height: auto;
    position: relative;
}

/* —— HEADER —— */
header {
    padding: 1rem;
    background: #000;
    font-size: 1.2rem;
    font-style: italic;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-toggle {
    font-size: 1.8rem;
    cursor: pointer;
    margin-right: 10px;
}

/* —— LOGO —— */
.logo {
    width: 160px;
    margin: 30px auto;
    display: block;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(142, 45, 226, 0.5);
}

/* —— BOTÓN PRINCIPAL —— */
.btn {
    display: block;
    width: 80%;
    max-width: 300px;
    margin: 20px auto;
    padding: 15px;
    background: linear-gradient(135deg, #8e2de2, #4a00e0);
    color: #fff;
    font-size: 1.2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 0 15px rgba(142, 45, 226, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-7px);
    box-shadow: 0 0 25px rgba(142, 45, 226, 0.7);
}

/* —— NAV BOTTOM —— */
nav.bottom {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #000;
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid #333;
}

nav.bottom a {
    color: #fff;
    font-size: 0.85rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: color 0.3s;
}

nav.bottom a:hover {
    color: #9c27b0;
}

nav.bottom i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

/* —— SIDE MENU —— */
.side-menu {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background: #000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.7);
    transition: left 0.3s ease;
    padding-top: 60px;
    z-index: 999;
}

.side-menu a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    border-bottom: 1px solid #222;
    transition: background 0.3s;
}

.side-menu a:hover {
    background: #9c27b0;
}

.side-menu i {
    margin-right: 10px;
    font-size: 1.3rem;
}

.side-menu.open {
    left: 0;
}

.made-by {
    margin: 20px;
    font-size: 0.85rem;
    color: #aaa;
}

body::after {
    content: "";
    display: block;
    height: 100px;
}

/* —— UBICACIONES: TARJETAS —— */

.location-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.location-card {
    position: relative;
    padding: 2.2rem 1.4rem;
    backdrop-filter: blur(var(--card-blur));
    background: var(--card-bg);
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.location-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    animation: spin 6s linear infinite;
    opacity: 0.9;
}

.location-card:hover {
    transform: translateY(-6px) scale(1.03) rotateX(3deg);
    box-shadow: 0 0 25px var(--glow);
}

.location-name {
    font-family: "Montserrat", sans-serif;
    font-size: 1.6rem;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
    background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
    -webkit-background-clip: text;
    color: transparent;
}

.location-address {
    font-size: 0.95rem;
    color: #ddd;
    margin-bottom: 0.8rem;
}

.location-map a {
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
    padding: 0.45rem 1rem;
    border-radius: 50px;
    color: #fff;
    display: inline-block;
    transition: filter 0.3s;
}

.location-map a:hover {
    filter: brightness(1.2);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .location-card {
        animation: pulse 5s ease-in-out infinite alternate;
    }
    @keyframes pulse {
        from {
            box-shadow: 0 0 10px var(--glow);
        }
        to {
            box-shadow: 0 0 25px var(--glow);
        }
    }
}

@media (max-width: 768px) {
    .location-cards {
        grid-template-columns: 1fr;
    }
}

.ring {
  position: relative;
  width: 500px;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.ring i {
  position: absolute;
  inset: 0;
  border: 2px solid #fff;
  transition: 0.5s;
}
.ring i:nth-child(1) {
  border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
  animation: animate 6s linear infinite;
}
.ring i:nth-child(2) {
  border-radius: 41% 44% 56% 59%/38% 62% 63% 37%;
  animation: animate 4s linear infinite;
}
.ring i:nth-child(3) {
  border-radius: 41% 44% 56% 59%/38% 62% 63% 37%;
  animation: animate2 10s linear infinite;
}
.ring:hover i {
  border: 6px solid var(--clr);
  filter: drop-shadow(0 0 20px var(--clr));
}
@keyframes animate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes animate2 {
  0% {
    transform: rotate(360deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
/* styles.css o sobrescribe en un bloque <style> */
.login{
  position: relative;   /* <- antes era absolute */
  height: auto;         /* <- deja que crezca lo que necesite */
  max-width: 320px;     /* extra: delimita la anchura en móviles */
  margin: 3rem auto;    /* extra: respirito arriba/abajo */
  padding: 0 1rem;      /* extra: evita usar <br> como separador */
}

.login h2 {
  font-size: 2em;
  color: #fff;
}
.login .inputBx {
  position: relative;
  width: 100%;
}
.login .inputBx input {
  position: relative;
  width: 100%;
  padding: 12px 20px;
  background: transparent;
  border: 2px solid #fff;
  border-radius: 40px;
  font-size: 1.2em;
  color: #fff;
  box-shadow: none;
  outline: none;
}
.login .inputBx input[type="submit"] {
  width: 100%;
  background: #9c27b0;
  background: linear-gradient(45deg, #9c27b0, #7b1fa2);
  border: none;
  cursor: pointer;
}
.login .inputBx input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}
.login .links {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}
.login .links a {
  color: #fff;
  text-decoration: none;
}

.error {
    color: #ff0057; /* Rojo llamativo */
    font-weight: bold;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.2); /* Fondo semitransparente */
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}

.mensaje {
    color: #00ff0a; /* Verde brillante para que destaque */
    font-weight: bold;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1); /* Fondo semitransparente */
    padding: 10px;
    border-radius: 5px;
}
.logo {
    width: 160px;
    margin: 30px auto;
    display: block;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(142, 45, 226, 0.5);
}
@media (max-width: 430px) {
  /* Layout ajustado para iPhone 6s Plus y similares */

  /* Anillos más chicos para que no rompan el layout */
  .ring {
    width: 70vw;
    height: 70vw;
  }

  /* Tarjetas más compactas */
  .location-card {
    padding: 1.4rem 0.9rem;
    --card-blur: 5px; /* menos blur = más fluidez */
  }

  /* Espaciado entre tarjetas */
  .location-cards {
    gap: 1rem;
  }

  /* Fondo alternativo si no hay soporte para blur */
  @supports not ((-webkit-backdrop-filter: blur(5px)) or (backdrop-filter: blur(5px))) {
    .location-card {
      background: rgba(0, 0, 0, 0.65);
    }
  }

  /* Ocultar borde animado si no hay soporte para mask-composite */
  @supports not (mask-composite: exclude) {
    .location-card::before {
      display: none;
    }
  }

  /* Nav bottom amigable con notch y home bar */
  nav.bottom {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
}
/* nav bottom — enlace activo */
nav.bottom a[aria-current="page"]{
    color:#9c27b0;                          /* oro honey */
    position:relative;
}

/* rayita neon que respira */
nav.bottom a[aria-current="page"]::after{
    content:"";
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    bottom:-6px;
    width:18px;
    height:3px;
    border-radius:3px;
    background:linear-gradient(135deg,#9c27b0,#9c27b1);
    animation:breath 2s ease-in-out infinite;
}

/* glow ligero en el ícono */
nav.bottom a[aria-current="page"] i{
    filter:drop-shadow(0 0 6px #9c27b0);
}

/* animación pulse/barrita */
@keyframes breath{
    0%,100%{opacity:.45}
    50%    {opacity:1}
}
.estrellas {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  margin-bottom: 1em;
}
.estrellas input {
  display: none;
}
.estrellas label {
  font-size: 2em;
  color: #ccc;
  cursor: pointer;
  margin: 0 0.2em;
  transition: color 0.2s;
}
/* Pinta todas las estrellas a la derecha del seleccionado */
.estrellas label:hover,
.estrellas label:hover ~ label {
  color: #f1c40f;
}
.estrellas input:checked ~ label {
  color: #f1c40f;
}

/* Resalta el aviso de puntos actuales */
.puntos-actuales {
    background: #ffeb3b;
    color: #222;
    padding: 0.25em 0.7em;
    border-radius: 1em;
    font-size: 1.15em;
    font-weight: bold;
    box-shadow: 0 2px 8px -2px #ffeb3b55;
    margin-left: 0.5em;
    letter-spacing: 1px;
    display: inline-block;
}

.nivel-barra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.2em 0 0.7em 0;
    gap: 0.5em;
}
.nivel-barra .nivel {
    flex: 1;
    text-align: center;
    padding: 0.4em 0.2em;
    border-radius: 1em;
    background: rgba(255,255,255,0.13);
    color: #fff;
    font-weight: 600;
    font-size: 0.97em;
    opacity: 0.6;
    position: relative;
    transition: background 0.3s, color 0.3s, opacity 0.3s;
}
.nivel-barra .nivel.activo {
    background: #ffeb3b;
    color: #8e2de2;
    opacity: 1;
    box-shadow: 0 2px 8px #ffeb3b44;
}
.nivel-barra .nivel:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 4px;
    background: #fff;
    opacity: 0.3;
    border-radius: 2px;
    z-index: 1;
}

.nivel-linea {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    margin: 1.5em auto 2em auto;
    max-width: 420px;
    font-family: 'Montserrat', sans-serif;
}
.nivel-punto {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-width: 70px;
}
.nivel-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #fff;
    color: #8e2de2;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2em;
    border: 3px solid #8e2de2;
    margin-bottom: 0.3em;
    transition: all 0.3s;
}
.nivel-punto.activo .nivel-num {
    background: #ffeb3b;
    color: #8e2de2;
    border-color: #ffeb3b;
    box-shadow: 0 0 0 4px #ffeb3b55;
    font-size: 1.35em;
}
.nivel-label {
    font-size: 0.93em;
    color: #fff;
    opacity: 0.85;
    margin-top: 0.1em;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.nivel-separador {
    flex: 1;
    height: 4px;
    background: linear-gradient(90deg, #fff 60%, #8e2de2 100%);
    opacity: 0.25;
    border-radius: 2px;
    margin: 0 2px;
}
@media (max-width: 480px) {
    .nivel-linea { max-width: 98vw; gap: 0.2em; }
    .nivel-punto { min-width: 48px; }
    .nivel-num { width: 24px; height: 24px; font-size: 1em; }
}