/* ============================
   Estilos Generales
   ============================ */
   * {
    box-sizing: border-box;
  }









  



  
  /* Encabezado */
header {
  position: relative;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 1rem 0;
  text-align: center;
}



  
  

  
  /* Sección Hero */
  .hero {
    text-align: center;
    padding: 1rem;
    
    
  }
  
.hero h1 {
  display: inline-block;
  margin: 0;
  padding: 0.3rem 0.8rem;           /* espacio horizontal y vertical */
  background: rgba(0, 0, 0, 0.5);   /* fondo semitransparente */
  border-radius: 4px;               /* esquinas redondeadas */
  
  white-space: nowrap;
  font-family: 'Georgia', serif;
  text-transform: uppercase;
  font-weight: bold;
  font-size: clamp(2rem, calc(100vw / 9), 3rem);

  /* texto con gradiente de fuego */
  background-image: linear-gradient(
    to bottom,
    #ffff00 0%,
    #ffa500 50%,
    #ff0000 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

  

  
  /* Sección de Productos */
  .cards-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    padding: 2rem;
    
  }
  
  /* Tarjetas de producto */
  .card-item {
    width: 250px;
    height: 200px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s;
    position: relative;
  }
  
  .card-item a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
  }
  
  .card-item img {
    width: 100%;
    height: 70%;
    object-fit: cover;
    position: relative;
    z-index: 1;
  }
  
  .card-item h3 {
    margin: 1rem 0;
    font-size: 1.2rem;
    color: #333;
    position: relative;
    z-index: 1;
  }
  
  .card-item:hover {
    transform: translateY(-10px);
  }
  

  



  
  /* Estilos para el mensaje de éxito o error */
  .mensaje {
    display: none;
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px;
    background-color: #4CAF50;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    width: 80%;
    max-width: 400px;
    text-align: center;
  }
  
  .mensaje.error { background-color: #f44336; }
  .mensaje.exito { background-color: #4CAF50; }
  
  
  
  /* Botones flotantes */
/* Botones flotantes */
.brand-name {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
  
  .brand-logo {
    width: 480px;
    max-height: 240px;
  }
  



  


  
  


  








  .bienvenida-dracollectors {
    display: none;
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #1a1a1a, #2c2c2c);
    color: #ffd700;
    padding: 1rem 2rem;
    border: 2px solid #d4af37;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
    font-size: 1.1rem;
    font-weight: bold;
    z-index: 9999;
    animation: bienvenidaFadeIn 0.6s ease-out;
  }
  
  @keyframes bienvenidaFadeIn {
    0% { opacity: 0; transform: translate(-50%, -20px); }
    100% { opacity: 1; transform: translate(-50%, 0); }
  }


  
  
  
 /* =============================== */
/* BOTONES FLOTANTES EN MÓVIL     */
/* =============================== */

/* =============================== */
/* 📱 MEDIA QUERY PARA MÓVILES */
/* =============================== */
@media (max-width: 768px) {

    

  

  
  
  
    /* === Tarjetas (cards) === */
    .cards-section {
      display: flex !important;
      flex-wrap: wrap !important;
      justify-content: space-between !important;
      gap: 8px !important;
      width: 100vw !important;
      margin: 0 auto !important;
      padding: 1rem !important;
    }
  
    .card-item {
      flex: 0 0 calc(50% - 4px) !important;
      margin-bottom: 8px !important;
      background: #fff !important;
      border-radius: 8px !important;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
      overflow: hidden !important;
      display: flex !important;
      flex-direction: column !important;
      height: 150px !important;
    }
  
    .card-item img {
      height: 70% !important;
      width: 100% !important;
      object-fit: cover !important;
      border-top-left-radius: 8px !important;
      border-top-right-radius: 8px !important;
    }
  
    .card-item h3 {
      height: 30% !important;
      margin: 0 !important;
      padding: 0 8px !important;
      font-size: 0.95rem !important;
      text-align: center !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
    }
  
    /* === Botones flotantes individualizados === */
  

   

    

  
    /* Logo más pequeño */
    .brand-logo {
      width: 400px;
      max-height: 200px;
      margin-top: 35px;
    }
  


  
    /* Encabezado */
    header {
      width: 100%;
    }
  
    header .header-content {
      width: 95%;
      margin: 0 auto;
    }
  
    header .header-content h1 {
      font-size: 2.5rem;
    }
  
    header .header-content p {
      font-size: 0.9rem;
    }
  }








/* =============================== */
/* EDITAR PERFIL */
/* =============================== */



/* Alinear un poco mejor el icono de dracocoin */
.draco-amount i {
  margin-left: 4px;
  vertical-align: middle;
  color: #FFD700;
}









  @media (max-width: 768px) {
    .footer {
      padding: 0.8rem 0 !important;
      font-size: 0.95rem !important;         /* 🔹 Letra más pequeña pero legible */
      text-align: center !important;
      line-height: 1.3 !important;
    }
  
    .footer a {
      font-size: 0.9rem !important;          /* 🔹 Enlaces más compactos */
      margin: 0 6px !important;              /* 🔹 Menos espacio lateral */
    }
  }
  
  
  @media (max-width: 300px) {

    /* ✅ Tarjetas siguen siendo 2 por fila */
    .cards-section {
      display: grid !important;
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 8px !important;
      padding: 0 6px !important;
      justify-content: center !important;
    }
  
    .card-item {
      flex: 0 0 auto !important;
      width: 100% !important;
      height: 140px !important;
      border-radius: 8px !important;
      overflow: hidden !important;
      display: flex !important;
      flex-direction: column !important;
    }
  
    .card-item img {
      height: 70% !important;
    }
  
    .card-item h3 {
      height: 30% !important;
      font-size: 0.8rem !important;
      padding: 0 6px !important;
    }
  

  }
  
/* ✅ Ajustes para pantallas pequeñas (300px o menos) */
@media (max-width: 300px) {
    .brand-logo {
      width: 180px !important;           /* 🔹 Logo más pequeño */
      max-height: 80px !important;       /* 🔹 Altura reducida */
      margin-top: 45px !important;       /* 🔹 Un poco más de margen arriba */
    }
  
    .hero h1 {
      font-size: 1.4rem !important;      /* 🔹 Título más pequeño */
      margin: 0 !important;
      line-height: 1.3 !important;       /* 🔹 Menos espacio vertical */
    }
  
    .hero p {
      font-size: 0.85rem !important;     /* 🔹 Texto más compacto */
      line-height: 1.2 !important;
      margin-top: 0.4rem !important;
      padding: 0 10px !important;        /* 🔹 Algo de espacio lateral para que no se pegue a los bordes */
      text-align: center !important;
    }
  }

  @media (max-width: 300px) {
    .footer {
      padding: 0.6rem 0 !important;
      font-size: 0.8rem !important;          /* 🔸 Letra más pequeña aún */
      text-align: center !important;
      line-height: 1.2 !important;
    }
  
    .footer a {
      font-size: 0.75rem !important;         /* 🔸 Texto de enlaces reducido */
      margin: 0 4px !important;              /* 🔸 Espacio más reducido entre enlaces */
    }
  }


  /* Media query para pantallas pequeñas (tablets y móviles) */
@media (max-width: 768px) {
  .account-sidebar {
    width: 90vw;
    max-width: 90vw;
    right: -90vw; /* fuera de pantalla inicialmente */
  }

  .account-sidebar.open {
    right: 0;
  }
  
}

/* Media query para pantallas muy pequeñas (ej. 300px) */
@media (max-width: 300px) {
  .account-sidebar {
    width: 90vw;
    max-width: 90vw;
    right: -100vw;
  }

  .account-sidebar.open {
    right: 0;
  }
  
}

  
/* Escritorio puro */
.banner-container {
  width: 90vw;          /* 90% del ancho de la ventana */
  
  margin: 1.5rem auto;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
}

.advantage-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0rem 0;
}

.advantage-item {
  position: relative;
  overflow: hidden;
  height: 200px;        /* ajusta aquí la altura deseada */
  border-radius: 8px;
}

.advantage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.advantage-item:hover img {
  transform: scale(1.05);
}

.advantage-item .overlay {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 0;
  text-align: center;
}

.advantage-item .overlay h3 {
  display: inline-block;
  margin: 0;
  background: rgba(0, 0, 0, 0.4);
  color: #ffdc00;
  padding: 0.2rem 0.6rem;
  border-radius: 0.25rem;
  line-height: 1.2;
  font-size: 1.3rem;
  white-space: nowrap;
}



/* ======== Versión Móvil (≤768px) ======== */
@media (max-width: 768px) {
  /* Grid de 2×n en móvil */
  .advantage-banner {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    gap: 0;
    margin: 0.2rem 0;
  }
    /* Si tienes un contenedor semitransparente */
  .banner-container {
    margin: 0.75rem auto;   /* menos espacio arriba/abajo */
    padding: 0.5rem;        /* menos acolchado interno */
  }

  /* Altura automática según contenido */
  .advantage-item {
    height: auto;
    border-radius: 8px;
  }

  /* Imagen más estrecha y borde fuego */
  .advantage-item img {
    height: 120px;
    object-position: center top;
    width: auto;
  }

  /* Overlay y texto más compactos */
  .advantage-item .overlay h3 {
    font-size: 0.9rem;
    padding: 0.1rem 0.4rem;
    margin: 0 0.5rem;
    max-width: calc(100% - 1rem);
    line-height: 1.1;
    white-space: nowrap;
  }
}
/* Si quieres controlarlo distinto en móvil: */
@media (max-width: 768px) {
  .advantage-banner {
    gap: 0.5rem;  /* menos separación en móvil */
  }
}

/* Móvil: contenedor al 100% del viewport */
@media (max-width: 768px) {
  .banner-container {
    width: 100%;
    max-width: 98vw;              /* ← así nunca se desborda */
    margin: 0 auto;               /* ← centrado horizontal */
    padding: 0.5rem 1rem;         /* ← margen interno estable */
    box-sizing: border-box;       /* ← para que padding no sume al ancho */
  }
  .advantage-item img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: 120px;
  object-fit: cover;
  object-position: center top;
}

}


@media (max-width: 768px) {
  .advantage-item img {
    border-radius: 8px !important;
  }
}
/* Reducir separación tras el héroe */
.hero {
  margin-bottom: 0;  /* quita el espacio bajo “Bienvenido al Reino” */
}

/* Pegar el banner justo debajo */
.banner-container {
  margin-top: 0.25rem; /* muy pequeño, ajústalo a tu gusto */
}

/* Si quieres controlarlo aún más fino en móvil */
@media (max-width: 768px) {
  .hero {
    margin-bottom: 0rem;
    margin-top: 0.5rem;
  }
  .banner-container {
    margin-top: -0.5rem;
  }

}
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem 0;
}
.hero-title-bg {
  display: inline-block;
  background: none;
  border-radius: 15px;
  padding: 0.3rem 0.8rem;

  /* sombra inicial y animada */
  box-shadow:
    0 0 10px rgba(255, 165, 0, 0.4),
    0 0 20px rgba(255, 140, 0, 0.5),
    0 0 30px rgba(255, 110, 0, 0.6);

  /* animación */
  animation: pulseGlow 1.5s ease-in-out infinite both;
}

@keyframes pulseGlow {
  0% {
    box-shadow:
      0 0 10px rgba(255, 165, 0, 0.4),
      0 0 20px rgba(255, 140, 0, 0.5),
      0 0 30px rgba(255, 110, 0, 0.6);
  }
  50% {
    box-shadow:
      0 0 15px rgba(255, 165, 0, 0.7),
      0 0 30px rgba(255, 140, 0, 0.8),
      0 0 45px rgba(255, 110, 0, 0.9);
  }
  100% {
    box-shadow:
      0 0 10px rgba(255, 165, 0, 0.4),
      0 0 20px rgba(255, 140, 0, 0.5),
      0 0 30px rgba(255, 110, 0, 0.6);
  }
}


.hero-title-bg h1 {
  margin: 0;
  line-height: 1;                /* altura exacta de la línea */
  white-space: nowrap;
  font-family: 'Georgia', serif;
  text-transform: uppercase;
  font-weight: bold;
  font-size: clamp(2rem, calc(100vw / 9), 3rem);

  /* degradado de fuego en el texto */
  background: linear-gradient(
    to bottom,
    #ffff00 0%,
    #ffa500 50%,
    #ff0000 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  /* borde blanco de 1px alrededor de cada letra */
  -webkit-text-stroke: 0.75px #ff0000;
  text-stroke: 0.75px #ff0000; /* para navegadores que lo soporten */
}

@media (max-width: 768px) {
  .hero-title-bg {
    width: 98vw;              /* ocupa casi todo el ancho de la pantalla */
    padding: 0.2rem 1vw;      /* padding horizontal en vw para adaptarse */
    margin: 0 auto;           /* centrado */
  }
  .hero-title-bg h1 {
    white-space: nowrap;      /* fuerza una sola línea */
    font-size: 7.8vw;           /* escala el tamaño según el ancho del viewport */
    line-height: 1;           /* elimina espacio extra vertical */
    text-align: center;       /* centro del texto */
  }
}

/* === Tarjetas de producto: fondo oscuro y texto blanco === */
.card-item {
  background: rgba(0, 0, 0, 0.6) !important; /* fondo semitransparente oscuro */
  border: 2px solid #ff6600 !important;                        /* borde blanco de 2px */
  box-shadow:
    0 0 8px rgba(255, 255, 0, 0.8),                         /* resplandor amarillo */
    0 4px 8px rgba(0, 0, 0, 0.3) !important; 
}

/* Texto de título en blanco */
.card-item h3 {
  color: #ffdc00 !important;
}

/* Aseguramos que el enlace no oscurezca el texto */
.card-item a {
  color: inherit !important;
}

  
  /* ============================
   Fondo “fijo” + footer pegado
   ============================ */

/* 1) html/body llenan la ventana, permiten pull-to-refresh */
html,
body {
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;            /* deja que la página siga scrollando */
  overscroll-behavior-y: auto !important; /* permite pull-to-refresh en iOS/Android */
}

/* 2) Fondo fijo en su propio elemento */
.fixed-bg {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-image: url('assets/images/fondo_index_1.webp') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  pointer-events: none !important; /* no interfiere con el scroll */
  z-index: -1 !important;
}

/* 2b) En móvil cambia la imagen */
@media (max-width: 768px) {
  .fixed-bg {
    background-image: url('assets/images/fondo_idex_movil_1_1.webp') !important;
  }
}

/* 3) Empuja el footer al fondo */
.page-content {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
}

/* Pie de página – versión escritorio */
.footer {
  margin-top: auto;                    /* empuja al fondo */
  text-align: center;
  padding: 1rem 0;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  transition: background-color 0.3s ease;
}

.footer:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.footer a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.footer a:hover {
  color: #f39c12;
}
/* ================================= */
/* HERO: desktop auto-width, móvil full-width */
/* ================================= */


/* 2) Móvil: contenedor casi full-width, texto se ajusta al 100% */
/*    Cambiamos a display:block para que width:98% abarque padding box */
@media (max-width: 768px) {
  .hero-title-bg {
    display: block;
    width: 98%;              /* 98% del viewport */
    max-width: 98%;
    margin: 0 auto;
    padding: 0.3rem 1vw;      /* padding en vw para no sumar demasiado */
  }
  .hero-title-bg h1 {
    white-space: normal;       /* ahora sí puede partirse si hiciera falta */
    word-break: break-word;
    font-size: clamp(1.6rem, 8vw, 2.4rem);  /* escala entre 1.6rem y 2.4rem */
    text-align: center;
  }
}


/* Clase para ocultar texto visualmente pero que siga en el DOM */
.seo-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* === FIX v2: Mantener 70/30 y permitir 2 líneas centradas === */
.card-item{
  display: flex !important;
  flex-direction: column !important;
  height: 200px !important;            /* tu altura en desktop */
}

.card-item img{
  flex: 0 0 70% !important;            /* 70% imagen */
  height: 70% !important;
  width: 100% !important;
  object-fit: cover !important;
}



/* Móvil: respeta 70/30 y ajusta tamaño para 2 líneas */
@media (max-width: 768px){
  .card-item{ height: 150px !important; }
  .card-item h3{
    font-size: clamp(0.85rem, 3.5vw, 1rem);
    max-height: calc(1.2em * 2) !important;
  }
}
/* === Centrar 1 sola línea en el área del título (manteniendo 70/30) === */
.card-item h3{
  height: 30% !important;        /* ocupa todo el área reservada al título */
  max-height: none !important;   /* evita que se encoja con 1 línea */
  margin: 0 !important;
  padding: 0 8px !important;
  text-align: center !important;

  display: flex !important;
  align-items: center !important;   /* centra vertical */
  justify-content: center !important; /* centra horizontal */

  line-height: 1.2 !important;
  overflow: hidden !important;    /* si hay muchas líneas, recorta */
}

