/* ============================================================
   POPUP VERIFICACIÓ D'EDAT — MoomaShop
   ============================================================ */

/* Contenedor principal que bloquea la pantalla */
#age-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Blur del fondo exterior */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background-color: rgba(0, 0, 0, 0.4);
}


/* Estado oculto cuando ya existe la cookie */
#age-gate-overlay.hidden {
  display: none !important;
}

/* Targeta central (La caja con la imagen) */
.age-gate-card {
  position: relative;
  width: min(480px, 92vw); /* Un poco más ancha para acomodar botones horizontales */
  padding: 60px 40px 50px;
  border-radius: 20px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);

  /* --- IMAGEN DE FONDO DE LA CAJA --- */
  background-image: 
    linear-gradient(to bottom, rgba(175, 193, 167, 0.92), rgba(175, 193, 167, 0.92)), 
    url('https://mooma.neorgvirtual.com/wp-content/uploads/2026/02/LOGO.svg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Cercle decoratiu al centre de la card */
.age-gate-card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

/* Text superior */
.age-gate-pre {
  display: block;
  font-family: "proxima-nova", "Inter", sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.01em;
  margin-bottom: 6px;
  position: relative;
}

/* Logo i interrogació en la mateixa línia */
.age-gate-brand-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 35px;
}

/* Logo / nom de la marca */
.age-gate-brand {
  display: block;
  position: relative;
}

.age-gate-logo {
  width: 180px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Signe d'interrogació */
.age-gate-question {
  display: inline;
  font-family: "proxima-nova", "Inter", sans-serif;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0;
  position: relative;
}

/* Contenedor de botones en horizontal */
.btns_edat {
  display: flex;
  flex-direction: row; /* Alineación horizontal */
  justify-content: center;
  gap: 15px; /* Espacio entre botones */
  position: relative;
  z-index: 10;
}

/* Estilo base de los botones */
.age-gate-btn {
  flex: 1;
  max-width: 220px;
  display: inline-block;
  padding: 14px 10px;
  border-radius: 50px;
  font-family: "proxima-nova", "Inter", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1.5px solid #fff;
}

/* Botón IZQUIERDO (Confirmar): Fondo blanco, texto verde Mooma */
#age-gate-confirm {
  background-color: #fff;
  color: #afc1a7; /* Color verde sage aproximado de la caja */
}

/* Botón DERECHO (Rechazar): Transparente con borde blanco */
#no_edat_btn {
  background-color: transparent;
  color: #fff;
}

.age-gate-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Mensaje de error (oculto por defecto) */
#age-gate-msg-error {
  margin-top: 25px;
  color: #fff;
  font-family: "proxima-nova", sans-serif;
  font-size: 0.85rem;
  line-height: 1.4;
  position: relative;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Estilo para la 'o' especial si es necesario */
#lletrao_w {
  /* Estilos específicos si el diseño lo requiere */
}

@media (max-width: 480px) {
  .age-gate-card {
    padding: 48px 24px 40px;
  }
  .btns_edat {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .age-gate-btn {
    max-width: 100%;
  }
}