@import url('carousel.css');

/* El resto de tu style.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
  
}

/* ===================== THEME (MORADO/LILA) ===================== */
:root{
  --lt-bg1: #1c0f2a;
  --lt-bg2: #10071a;
  --lt-bg3: #0b0512;
  --lt-border: #9b5de5;
  --lt-accent: #b164f7;
  --lt-accent-2: #d8b6ff;
  --lt-text: #f3e9ff;
  --lt-text-dim: #d6c5ff;
  --lt-black: #000;
  --lt-white: #fff;
}

/* ===== Reset & Base ===== */
* { box-sizing: border-box; }
html, body { height: 100%; }           /* asegúrate de tenerlo */
body{
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--lt-text, #fff);
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(28,15,42,.18) 0%, rgba(16,7,26,.18) 60%, rgba(11,5,18,.18) 100%),
    url('assets/img/background.webp') center center / cover fixed no-repeat;
  background-color: #0b0512;
  /* CAMBIOS CLAVE: ELIMINA CUALQUIER padding-top INNECESARIO Y DEJA SÓLO EL padding-left DINÁMICO */
}


/* ===================== TARJETAS/CONTENEDORES (estética carrito) ===================== */
.overlay-card,
.product-card,
.cta-box,
.teamtap-box{
  background: radial-gradient(120% 120% at 20% 10%, rgba(28,15,42,.85) 0%, rgba(16,7,26,.85) 60%, rgba(11,5,18,.85) 100%);
  border: 1px solid rgba(155,93,229,.45);
  border-radius: 14px;
  color: var(--lt-text);
}

.glow-card:hover{ transform: translateY(-2px) scale(1.02); box-shadow: 0 0 14px var(--lt-accent); }

/* =========================================================
   SECCIÓN TIBIA DAILY (ESTILO UNIFICADO LADY TAP)
   ========================================================= */
.tibia-daily-section {
    margin: 40px auto;
    max-width: 1100px;
    padding: 0 16px;
    width: 100%;
}

.daily-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

/* Tarjeta Unificada (Mismo ADN que Product Card) */
.info-card {
    /* Fondo degradado idéntico al de la tienda */
    background: radial-gradient(120% 120% at 20% 10%, rgba(28,15,42,.85) 0%, rgba(16,7,26,.85) 60%, rgba(11,5,18,.85) 100%);
    border: 1px solid rgba(155,93,229,.45); /* Borde morado base */
    border-radius: 14px;
    color: var(--lt-text);
    display: flex;
    flex-direction: column;
    min-height: 220px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
    overflow: hidden;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--lt-accent); /* Borde brilla al hover */
    box-shadow: 0 0 20px rgba(177, 100, 247, 0.25); /* Glow morado */
}

/* Encabezados (Adaptados al tema oscuro, sin fondo sólido) */
.card-header {
    padding: 15px 20px;
    font-family: 'Russo One', sans-serif; /* Tipografía del sitio */
    font-size: 1.1rem;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(155,93,229,.3); /* Separador sutil */
    background: rgba(0,0,0,0.2); /* Ligeramente más oscuro que la tarjeta */
}

/* Colores para los ICONOS y TEXTO (no fondo) */
.bg-green { color: #00C09A; }
.bg-red { color: #ff5555; }
.bg-orange { color: #ffca28; }

/* Ajuste de Iconos en el Header */
.header-content, .header-content-rashid {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.header-content-rashid { justify-content: space-between; }
.rashid-title-header { display: flex; align-items: center; gap: 10px; }

.rashid-day {
    font-size: 0.85rem;
    color: var(--lt-text-dim);
    font-family: Arial, sans-serif;
    font-weight: bold;
    text-transform: capitalize;
    background: rgba(155,93,229,0.15);
    padding: 4px 10px;
    border-radius: 12px;
}

/* Cuerpo */
.card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Layout Interno: Imagen Izq - Texto Der */
.daily-data-layout {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 20px;
    align-items: center;
    width: 100%;
}

/* Imágenes */
.daily-big-img {
    width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 8px rgba(177,100,247,0.3)); /* Glow suave en la imagen */
}
.rashid-img { max-height: 90px; }

/* Textos */
.daily-info-text { text-align: left; }

.daily-title {
    color: var(--lt-white);
    font-family: 'Russo One', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 6px;
    line-height: 1.2;
}

.daily-description {
    color: var(--lt-text-dim); /* Color lila claro del tema */
    font-size: 0.9rem;
    line-height: 1.4;
    font-family: Arial, sans-serif;
}

/* Loader (Color del tema) */
.loader-spinner {
    border: 3px solid rgba(155,93,229,0.2);
    border-left-color: var(--lt-accent);
    border-radius: 50%;
    width: 30px; height: 30px;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 768px) {
    .daily-grid { grid-template-columns: 1fr; }
    .daily-data-layout { grid-template-columns: 70px 1fr; gap: 15px; }
}

/* ===================== ¿Quién es Lady Tap? ===================== */
.overlay-card{ margin: 0 16px; padding: 18px; }
.lady-tap-container{ display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:nowrap; }
.lady-tap-texto{ flex:1; text-align:left; }
.lady-tap-title{ font-family:'Russo One', sans-serif; color: var(--lt-accent); font-size: clamp(20px, 3.2vw, 30px); margin:0 0 8px; }
.lady-tap-text{ color: var(--lt-text-dim); font-size: clamp(14px, 1.8vw, 17px); margin:0; line-height:1.6; }
.lady-tap-img{ flex:0 0 auto; }
.lady-tap-photo{ max-width: min(240px, 28vw); height:auto; display:block; }

/* ===================== CTA (TC, Premium, TeamTap) ===================== */
.cta-section{ padding: 24px 16px; }
.cta-container{ display:grid; gap:16px; grid-template-columns:repeat(auto-fit, minmax(160px, 1fr)); max-width:980px; margin:0 auto; }
.cta-box{ padding:16px; text-decoration:none; transition: transform .2s, box-shadow .2s; min-height:160px; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.cta-box img{ width:100%; max-height:110px; object-fit:contain; }
.cta-box span{ margin-top:10px; font-family:'Russo One', sans-serif; color: var(--lt-accent); font-size:1rem; text-align:center; }

/* ===== Catálogo TIBIACOINS — compacto, centrado y bonito ===== */
.shop-section{
  margin: 92px auto 32px;
  max-width: 1100px;
  padding: 0 16px;
  text-align: center;
}

.section-title{
  text-align: center;
  font-size: clamp(20px, 2.4vw, 26px);
  margin: 0 0 16px;
  font-weight: 800;
}

/* Grid de productos — columnas más anchas en escritorio */
.tc-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* antes 130px */
  gap: 30px;
  place-items: center;
}

/* Tarjeta (sin tope de ancho para que llene su columna) */
.product-card{
  width:100%;
  max-width:none;  /* antes 160px */
  padding:2px;
  text-align:center;
  border-radius:14px;
  background: radial-gradient(120% 120% at 20% 10%, rgba(28,15,42,.85) 0%, rgba(16,7,26,.85) 60%, rgba(11,5,18,.85) 100%);
  border:1px solid rgba(155,93,229,.45);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

.product-card:hover{
  transform: translateY(-2px) scale(1.02);
  border-color: var(--lt-accent, #b164f7);
  box-shadow: 0 0 12px rgba(177,100,247,.35);
}

/* Tarjeta cuadrada — tamaños para ESCRITORIO */
.box-square{
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: grid;
  /* img / (espacio) / qty / precio / botón  */
  grid-template-rows: 140px auto 36px auto 44px; 
  align-items: center;
  justify-items: center;
  row-gap: 8px;                                  /* ↑ antes: 4px */
}



/* ——— Imagen y título compactos ——— */
.product-img{
  width:100%;
  height:100%;
  max-height:none;                  /* la altura ya la marca la fila (52px) */
  object-fit:contain;
}

.tc-title{
  max-width:92%;
  font-weight:800;
  font-size:.78rem;                 /* ↓ más chico */
  line-height:1.12;
  color: var(--lt-accent, #b164f7);
  margin:0;
  display:-webkit-box;
  -webkit-line-clamp:2;             /* máx 2 líneas */
  -webkit-box-orient:vertical;
  overflow:hidden;
  text-align:center;
}


/* Pastilla (− 0 +) para ESCRITORIO */
.qty-field{
  display: grid;
  grid-template-columns: 30px 54px 30px; /* − | input | +  (antes 24|34|24) */
  align-items: center;
  justify-items: center;
  height: 36px;                          /* ↑ antes 24px */
  margin: 4px auto 4px;
  border-radius: 999px;
  border: 1px solid var(--lt-border, #9b5de5);
  background: #140a24;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
.btn-qty{
  width: 100%; height: 100%;
  border: 0; background: transparent; color: #fff;
  font-size: 16px; font-weight: 900; line-height: 1;
  display: grid; place-items: center; cursor: pointer;
  transition: background .12s, filter .12s;
}
.tc-qty{
  width: 100%; height: 100%; margin: 0; padding: 0; border: 0;
  background: transparent; color: #fff; font-weight: 800;
  font-size: .95rem;                         /* ↑ antes .78rem */
  text-align: center; line-height: 36px;     /* ↑ antes 24px */
  appearance: textfield; -moz-appearance: textfield;
}
.tc-qty:focus{ outline: none; }
.tc-qty::-webkit-outer-spin-button,
.tc-qty::-webkit-inner-spin-button{ -webkit-appearance: none; margin: 0; }

/* Precio y botón — ESCRITORIO */
.price-total{
  margin:0;
  font-size:.95rem;                           /* ↑ antes .75rem */
  color: var(--lt-text-dim, #d6c5ff);
}
.add-btn.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  max-width: none;
  white-space: nowrap;
  padding: 8px 14px;                          /* ↑ antes 4px 10px */
  font-size: .9rem;                           /* ↑ antes .75rem */
  font-weight: 800;
  letter-spacing: .2px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg,#7a2bd6,#a559f1);
  color: #fff;
  margin: 4px auto 0;
  box-shadow: 0 4px 12px rgba(122,43,214,.22), inset 0 1px 0 rgba(255,255,255,.08);
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.add-btn.btn:hover:not([disabled]){
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(122,43,214,.28), inset 0 1px 0 rgba(255,255,255,1);
}



/* Opcional: en pantallas muy pequeñas, aún más compacto */
@media (max-width: 480px){
  .product-card{ max-width:140px; padding:6px; }
  .box-square{
    grid-template-rows: 46px auto 22px auto 28px; /* menos alto por fila */
  }
  .tc-title{ font-size:.74rem; }
  .qty-field{
    max-width:110px;
    grid-template-columns:22px 28px 22px;
    height:22px;
  }
  .tc-qty{ font-size:.74rem; line-height:22px; }
  .price-total{ font-size:.72rem; }
  .add-btn.btn{ min-width:78px; height:28px; font-size:.7rem; padding:3px 6px; }
}



/* Responsive: grillas más densas en pantallas chicas */
@media (max-width: 640px){
  .tc-grid{ grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
  .product-card{ max-width: 150px; padding: 9px; }
  .product-img{ max-height: 64px; }
}


/* ===================== TEAMTAP (cuadrado y pequeño) ===================== */
.teamtap{ margin: 92px auto 32px; max-width:1200px; padding:0 16px; }
.teamtap-title{ text-align:center; color: var(--lt-accent); font-family:'Russo One', sans-serif; margin:0 0 14px; }
.teamtap-grid{
  display:grid;
  gap:30px;
  /* En escritorio queremos “como móvil” pero grande */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  justify-items:center;
}

/* Card de TeamTap: misma estructura visual que tienda pero cuadrada */
.teamtap-box{
  width:100%;
  max-width:none;             /* sin límite en escritorio */
  aspect-ratio: 1 / 1;
  padding:2px;
  display:grid;               /* grid para ordenar verticalmente */
  grid-template-rows: 140px 1fr auto;  /* logo / nombre (crece) / redes */
  align-content:space-between;
  justify-items:center;
  transition: transform .2s, box-shadow .2s;
}
/* En escritorio el “slot” del logo es más alto; en móvil lo ajustamos abajo */
.streamer-logo.small{
  width:100%;
  max-height:140px;
  object-fit:contain;
  margin:0 auto;
}

/* ===== TeamTap (ESCRITORIO) — usar exactamente los tamaños de la vista móvil ===== */
@media (min-width: 641px){
.teamtap-grid{
  display: grid;
  gap: 14px;
  /* Igual que móvil (se ve ordenado), pero centrado en cualquier ancho */
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  place-items: center;          /* centra horizontal + vertical */
}


.teamtap-box{
  width: 100%;
  max-width: 160px;
  aspect-ratio: 1 / 1;
  padding: 10px;
  margin: 0 auto;                                   /* centra la card */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;                   /* logo arriba / redes abajo */
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}

/* Empuja las redes a la base para que todos queden alineados */
.teamtap-box .social-icons{ margin-top: auto; }

.streamer-logo.small{
  max-height: 82px;
  width: 100%;
  object-fit: contain;
  margin: 0 auto;
}


  .social-icons{
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }
}


  /* Que la card llene su columna como hace .product-card */
  .teamtap-box{
    max-width: none;         /* elimina el límite de 160px en desktop */
    width: 100%;
    padding: 2px;            /* mismo “aire” fino que la tienda */
    display: grid;           /* parecida a .box-square */
    aspect-ratio: 1 / 1;
    grid-template-rows: 140px auto auto; /* alto de imagen como en tienda */
    row-gap: 8px;
    justify-items: center;
  }

  /* Alto de logo parecido al “slot” de imagen de la tienda */
  .streamer-logo.small{
    max-height: 140px;
    width: 100%;
    object-fit: contain;
  }


/* ===== TeamTap: nombres sin texto duplicado/cortado ===== */
.streamer-name{
  position: static;
  font-family: 'Russo One', sans-serif;            /* misma tipografía del sitio */
  color: var(--lt-accent) !important;              /* morado del tema */
  font-weight: 800;
  letter-spacing: 1px;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(0,0,0,.35),
    0 0 6px rgba(155,93,229,.35);
  margin-top: 3px;
}

.streamer-name::before{ content: none !important; }  /* elimina el “doble texto” */

/* (Opcional) si algún nombre se parte en 2 líneas y quieres más compacto: */
@media (min-width: 641px){ .streamer-name{ font-size:.86rem; } }
@media (max-width: 640px){ .streamer-name{ font-size:.84rem; } }

.social-icons{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Base (móvil) ligeramente más grande que antes */
.social-icons img{ width:20px; height:20px; }

/* En WEB (>=641px) todavía más grandes */
@media (min-width: 641px){
  .social-icons img{ width:24px; height:24px; }
}


/* ===== FOOTER centrado: logo arriba + sólo íconos ===== */
.site-footer{
  background: linear-gradient(180deg, rgba(25,6,43,.88) 0%, rgba(17,3,31,.88) 100%);
  border-top: 1px solid rgba(155,93,229,.35);
  padding: 22px 16px;
}

.footer-top{
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-direction: column; 
  align-items: center; justify-content: center;
  gap: 14px; text-align: center;
}

.footer-logo{
  height: 40px; width: auto; display: block;
}

/* Sólo íconos, sin “botón” ni marco */
.social-links{
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
}
.social-links a{
  display: inline-flex; align-items: center; justify-content: center;
  width: auto; height: auto;
  padding: 0; margin: 0;
  background: none !important; border: none !important; box-shadow: none !important;
  text-decoration: none; opacity: .9;
  transition: transform .15s, opacity .15s, filter .15s;
}
.social-links a:hover{
  transform: translateY(-1px) scale(1.06);
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(155,93,229,.6));
}
.social-links img{
  width: 26px; height: 26px; display: block;
}

/* Oculta cualquier texto junto al ícono (si existiera) */
.social-links span{ display: none !important; }

/* Quita la franja de copyright si aún se muestra */
.copyright{ display: none !important; }


/* ===================== FAB Carrito (siempre visible, ya morado) ===================== */
.lt-cart-fab{
  position: fixed; right: calc(16px + env(safe-area-inset-right,0)); bottom: calc(16px + env(safe-area-inset-bottom,0));
  width: 56px; height: 56px; border: none; border-radius: 50%;
  background: linear-gradient(135deg,#7a2bd6,#a559f1); color: #fff;
  display:inline-flex; align-items:center; justify-content:center; box-shadow: 0 10px 24px rgba(0,0,0,.35);
  cursor: pointer; z-index: 10010;
}
.lt-cart-fab:hover{ filter: brightness(1.05); }
.lt-cart-fab .lt-fab-count{
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; line-height: 20px; padding: 0 6px;
  border-radius: 10px; background: #fff; color: #7a2bd6; font-weight: 700; font-size: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.lt-cart-fab .lt-fab-count.is-empty{ opacity: .35; }

/* ===================== Panel Carrito + Backdrop (coincidir con theme) ===================== */
#ltCartBackdrop{ position: fixed; inset:0; background: rgba(0,0,0,.45); z-index: 10005; opacity:0; pointer-events:none; transition:opacity .2s; }
#ltCartBackdrop.show{ opacity:1; pointer-events:auto; }

.lt-cart-panel{
  position: fixed; top: 80px; right: 20px; width: 360px; max-width: calc(100vw - 24px);
  max-height: calc(100vh - 120px);
  background: radial-gradient(120% 120% at 20% 10%, var(--lt-bg1) 0%, var(--lt-bg2) 60%, var(--lt-bg3) 100%);
  border: 2px solid var(--lt-border); border-radius: 14px; color: var(--lt-text); z-index: 10020;
  overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.5); transform: translateX(115%); transition: transform .25s ease;
}
.lt-cart-panel.show{ transform: translateX(0); }
.lt-cart-header{ display:flex; align-items:center; justify-content:space-between; padding:10px 14px; background: linear-gradient(180deg, rgba(25,6,43,.95) 0%, rgba(17,3,31,.95) 100%); border-bottom:1px solid rgba(155,93,229,.45); }
.lt-cart-title{ font-weight:800; color: var(--lt-text); }
.lt-cart-close{ background:transparent; border:none; color:#fff; font-size:22px; cursor:pointer; }
.lt-cart-close:hover{ color:#ff7be5; }

.lt-cart-body{ padding:12px; max-height: calc(100vh - 180px); overflow:auto; }
.lt-cart-line{ margin:10px 0; }
.lt-cart-line input, .lt-cart-line select{
  width:100%; padding:10px; border-radius:8px; border:1px solid var(--lt-border); background:#130922; color:#fff; outline:none;
}
.lt-cart-line input:focus, .lt-cart-line select:focus{ box-shadow: 0 0 0 2px rgba(155,93,229,.4); }

.lt-instructions{ background: rgba(255,255,255,.05); border:1px dashed rgba(155,93,229,.45); border-radius:10px; padding:10px; font-size:.9rem; color: var(--lt-text-dim); }
.lt-instructions ol{ padding-left:18px; margin:8px 0 0; }

.lt-cart-summary{ border-top:1px solid rgba(255,255,255,.08); margin-top:10px; padding-top:10px; }
.lt-cart-row{ display:flex; justify-content:space-between; margin:6px 0; }

.lt-cart-item{ display:flex; gap:10px; border-bottom:1px solid rgba(255,255,255,.08); padding:8px 0; }
.lt-cart-thumb img{ width:52px; height:52px; object-fit:contain; border-radius:8px; background:#000; }
.lt-cart-info{ flex:1; }
.lt-cart-name{ font-weight:700; }
.lt-cart-meta{ font-size:.9rem; opacity:.9; display:flex; gap:8px; align-items:center; }
.lt-cart-qty{ display:flex; align-items:center; gap:6px; margin-top:6px; }
.lt-qty-btn{ width:28px; height:28px; border:none; background:#2c1a40; color:#fff; border-radius:6px; cursor:pointer; }
.lt-qty-input{ width:50px; text-align:center; border:1px solid #7e3acb; background:#140a24; color:#fff; border-radius:6px; padding:4px; }
.lt-remove{ margin-left:auto; background:transparent; border:none; color:#ff8a8a; font-size:18px; cursor:pointer; }

.lt-cart-pay{ margin:12px 0 6px; padding:10px; border:1px dashed rgba(155,93,229,.5); border-radius:10px; background: rgba(255,255,255,.04); }
.lt-pay-title{ color: var(--lt-accent-2); font-weight:700; margin-bottom:6px; }

.lt-cart-proof-actions .lt-proof-note{ display:block; opacity:.85; margin-top:6px; font-size:.85rem; }

.lt-cart-wa{
  width:100%; padding:12px; border:none; border-radius:10px; background:#25D366; color:#0b2717; font-weight:800; cursor:pointer; margin-top:10px;
}
.lt-cart-wa[disabled]{ opacity:.6; cursor:not-allowed; }
.lt-cart-wa:hover:not([disabled]){ filter: brightness(1.07); }

/* ===================== Responsive ===================== */
@media (max-width: 880px){
  .lady-tap-photo { max-width: 200px; }
}
@media (max-width: 640px){
  .logo { height: 30px; }
  .header.is-shrink .logo{ height: 24px; }
  .lady-tap-photo { max-width: 160px; }
  .tc-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .teamtap-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
}
/* ====== BOX FUSION (hero + controles) ====== */
.box-fusion{
  overflow: hidden;
  position: relative;
}

/* Hero superior: integra la ilustración que me pasaste */
.box-fusion .fusion-hero{
  width: 100%;
  height: 150px;                 /* se adapta con el grid existente */
  display: grid;
  place-items: center;
  background:
    radial-gradient(80% 80% at 30% 20%, rgba(28,15,42,.85) 0%, rgba(16,7,26,.9) 60%, rgba(11,5,18,.95) 100%);
  border-bottom: 1px solid rgba(155,93,229,.35);
}
.box-fusion .fusion-hero img{
  max-width: 92%;
  max-height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.45));
}

/* Ajustes sutiles al resto del contenido dentro de la card */
.box-fusion .tc-title{
  margin: 8px 0 0;
  font-size: .86rem;
}

/* Móvil: hero más compacto para que todo quepa sin perder estética */
@media (max-width: 480px){
  .box-fusion .fusion-hero{ height: 110px; }
  .box-fusion .fusion-hero img{ max-height: 100px; }
}
/* ====== Ajustes específicos para móvil ====== */
@media (max-width: 480px){
  .box-square{
    /* menos altura de imagen para que no empuje al título */
    grid-template-rows: 110px auto 32px auto 42px;
    row-gap: 6px;
  }
@media (max-width: 480px){
  /* Evita que se recorte el botón en móvil sin cambiar la estética */
  .product-card.box-square{
    aspect-ratio: auto;
    overflow: visible;
  }
}

  /* asegúrate de que el título no se corte */
  .tc-title{
    font-size: .74rem;
    line-height: 1.1;
    padding: 0 8px;         /* evita que el texto pegue a los bordes */
    -webkit-line-clamp: 2;  /* máximo 2 líneas visibles */
  }

  /* pastilla de cantidad un poco más compacta en móvil */
  .qty-field{
    height: 32px;
    grid-template-columns: 28px 52px 28px;
  }

  /* centra mejor la ilustración en su fila */
  .product-img{
    object-fit: contain;
    object-position: center bottom;
    max-height: 100%;
    width: 100%;
  }
}
/* ====== BOX FUSION (ajustes responsivos) ====== */
.box-fusion{ overflow: hidden; position: relative; }

/* Hero con la imagen */
.box-fusion .fusion-hero{
  width: 100%;
  height: 150px;              /* desktop */
  display: grid;
  place-items: center;
  background: radial-gradient(80% 80% at 30% 20%,
              rgba(28,15,42,.85) 0%, rgba(16,7,26,.9) 60%, rgba(11,5,18,.95) 100%);
}
.box-fusion .fusion-hero img{
  max-width: 92%;
  max-height: 140px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.45));
}

/* Línea divisoria independiente para que no tape el título */
.box-fusion .fusion-divider{
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, rgba(155,93,229,.2), rgba(155,93,229,.5), rgba(155,93,229,.2));
}

/* Cuerpo inferior */
.box-fusion .fusion-body{
  display: grid;
  grid-template-rows: auto 36px auto 44px; /* título, qty, total, botón */
  align-items: center;
  justify-items: center;
  row-gap: 8px;
  padding: 6px 10px 12px;
}

.box-fusion .tc-title{
  margin: 4px 0 0;
  text-align: center;
  line-height: 1.2;
  min-height: 1.8em; /* evita corte en 1-2 líneas */
}

/* Ajustes móviles */
@media (max-width: 480px){
  .box-fusion .fusion-hero{ height: 110px; }
  .box-fusion .fusion-hero img{ max-height: 100px; }

  .box-fusion .fusion-body{
    grid-template-rows: auto 32px auto 42px;
    row-gap: 6px;
    padding: 6px 8px 10px;
  }

  .box-fusion .tc-title{
    font-size: .80rem;
    padding: 0 6px;           /* aire lateral para que no pegue al borde */
  }

  .box-fusion .qty-field{ height: 32px; }
}
/* ====== BOX FUSION (sin título / sin líneas) ====== */
.box-fusion{ overflow: hidden; position: relative; }

/* Hero (arriba) */
.box-fusion .fusion-hero{
  width: 100%;
  height: 150px;                 /* desktop */
  display: grid;
  place-items: center;
  background: radial-gradient(80% 80% at 30% 20%,
              rgba(28,15,42,.85) 0%, rgba(16,7,26,.9) 60%, rgba(11,5,18,.95) 100%);
  /* quitamos cualquier separación que parezca “línea” */
  border-bottom: none;
}
.box-fusion .fusion-hero img{
  max-width: 92%;
  max-height: 140px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.45));
}

/* Si todavía existe una línea separadora previa, la ocultamos */
.box-fusion .fusion-divider{ display: none !important; }

/* Cuerpo inferior: SIN título → solo qty, total, botón */
.box-fusion .fusion-body.no-title{
  display: grid;
  grid-template-rows: 36px auto 44px;  /* qty / total / botón */
  align-items: center;
  justify-items: center;
  row-gap: 8px;
  padding: 6px 10px 12px;
}

/* Evitar líneas generadas por reglas globales dentro de esta card */
.box-fusion hr,
.box-fusion::before,
.box-fusion::after { display: none !important; }

/* MÓVIL */
@media (max-width: 480px){
  .box-fusion .fusion-hero{ height: 110px; }
  .box-fusion .fusion-hero img{ max-height: 100px; }

  .box-fusion .fusion-body.no-title{
    grid-template-rows: 32px auto 42px; /* qty / total / botón */
    row-gap: 6px;
    padding: 6px 8px 10px;
  }

  .box-fusion .qty-field{ height: 32px; }
}
/* ====== FIX: móvil no muestra precio/botón en box-fusion ====== */
@media (max-width: 480px){
  /* Deja de forzar la tarjeta a ser un cuadrado en móvil,
     permite crecer en altura y no escondas el contenido */
  .box-fusion.box-square{
    aspect-ratio: auto !important;
    min-height: 268px;         /* margen de seguridad */
    overflow: visible !important;
  }

  /* Un poco menos alto el hero para dar espacio al botón */
  .box-fusion .fusion-hero{
    height: 98px !important;
  }
  .box-fusion .fusion-hero img{
    max-height: 90px !important;
  }

  /* Reajusta el grid del cuerpo para que quepan qty/total/botón */
  .box-fusion .fusion-body,
  .box-fusion .fusion-body.no-title{
    grid-template-rows: 32px auto 46px !important;  /* qty / total / botón */
    row-gap: 6px;
    padding-bottom: 12px;       /* asegúrate de que no se pegue al borde */
  }

  /* Asegura que el botón ocupe su propia fila y no se colapse */
  .box-fusion .add-btn{
    display: block;
    width: auto;               /* respeta tu ancho actual del tema */
    margin-top: 4px;
  }
}
/* ====== FIX: ajustar filas reales de la box-fusion ====== */
/* La card fusion solo tiene 2 hijos (hero y body), forzamos 2 filas */
.box-fusion.box-square{
  display: grid;
  grid-template-rows: auto auto;    /* imagen / cuerpo */
  row-gap: 0;
}

/* En móvil también quitamos alturas sobrantes para que no quede hueco */
@media (max-width: 480px){
  .box-fusion.box-square{
    aspect-ratio: auto !important;   /* ya agregado antes, lo mantenemos */
    grid-template-rows: auto auto !important;
    min-height: auto !important;     /* elimina el alto mínimo que pusimos */
    overflow: visible !important;
  }
}
/* ================== FOOTER estilo video (íconos redondos + tooltip) ================== */
.site-footer{
  background: linear-gradient(180deg, rgba(25,6,43,.88) 0%, rgba(17,3,31,.88) 100%);
  border-top: 1px solid rgba(155,93,229,.35);
  padding: 24px 16px 28px;
}

.footer-top{
  max-width: 1100px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center;
}

.footer-logo{ height: 42px; width: auto; }

.wrapper{
  display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; align-items: center;
}

/* El “botón” circular del ícono */
.wrapper .icon{
  position: relative;
  text-decoration: none;
  outline: none;
}
.wrapper .icon .bubble{
  width: 44px; height: 44px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: radial-gradient(120% 120% at 30% 30%, rgba(155,93,229,.25), rgba(155,93,229,.05) 60%, rgba(155,93,229,.0));
  border: 1px solid rgba(155,93,229,.35);
  box-shadow: 0 8px 18px rgba(0,0,0,.35), inset 0 0 10px rgba(155,93,229,.15);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.wrapper .icon img{
  width: 22px; height: 22px; display: block;
  transition: transform .18s ease;
}

/* Tooltip */
.wrapper .icon .tooltip{
  position: absolute;
  left: 50%; transform: translateX(-50%) translateY(8px);
  bottom: 100%;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: .80rem; font-weight: 700; letter-spacing:.2px;
  color: #cdb7ff;
  background: rgba(22,10,35,.85);
  border: 1px solid rgba(155,93,229,.35);
  box-shadow: 0 10px 24px rgba(0,0,0,.45);
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  white-space: nowrap;
}

/* === Efecto EXACTO del snippet que enviaste === */
.wrapper .icon:hover span{               /* (span = tooltip) */
  color: #fff;
}
.wrapper .icon:hover span,
.wrapper .icon:hover .tooltip{
  text-shadow: 0px -1px 0px rgba(0,0,0,.4);
}

/* Hover general (glow + scale) */
.wrapper .icon:hover .bubble{
  transform: translateY(-2px) scale(1.06);
  filter: drop-shadow(0 0 8px rgba(155,93,229,.55));
}
.wrapper .icon:hover img{
  transform: scale(1.06);
}
.wrapper .icon:hover .tooltip{
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
}

/* Colores ligeros por red (opcional) */
.wrapper .icon.instagram .bubble{ border-color: rgba(193,53,132,.45); }
.wrapper .icon.facebook  .bubble{ border-color: rgba(24,119,242,.45); }
.wrapper .icon.tiktok    .bubble{ border-color: rgba(255,255,255,.28); }
.wrapper .icon.whatsapp  .bubble{ border-color: rgba(37,211,102,.45); }

/* Móvil: separa un poco y reduce tooltip */
@media (max-width:640px){
  .wrapper{ gap: 14px; }
  .wrapper .icon .bubble{ width: 42px; height: 42px; }
  .wrapper .icon .tooltip{ font-size: .76rem; }
}
/* ====== FEED CAROUSEL (3D estilo “puro CSS” visual) ====== */
.feed-carousel{
  position: relative;
  width: 100%;
  height: clamp(240px, 42vw, 500px);
  margin-top: 8px;
  overflow: hidden;
  perspective: 1000px;
  perspective-origin: 50% 50%;
}

.feed-track{
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

/* Tarjetas */
.feed-slide{
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(94%, 980px);
  height: 100%;
  transform-style: preserve-3d;
  transform-origin: center;
  transform: translate(-50%, -50%) translateZ(0);
  transition: transform .45s ease, opacity .35s ease, filter .35s ease;
  will-change: transform, opacity, filter;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  pointer-events: none;
}
.feed-slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;      /* se ve como en el video */
  user-select: none;
  -webkit-user-drag: none;
}

/* Velo en laterales (como el ejemplo) */
.feed-slide::after{
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 50% 50%, rgba(0,0,0,.35), rgba(0,0,0,.45));
  opacity: 0; transition: opacity .35s ease;
}
.feed-slide.is-side::after{ opacity: .85; }  /* laterales más oscuras */
.feed-slide.is-far::after{  opacity: .92; }  /* las más lejanas aún más oscuras */

.feed-slide.is-active{ pointer-events: auto; }

/* Posiciones (simétricas) */
.feed-slide.pos-0{
  transform: translate(-50%, -50%) translateZ(180px) rotateY(0) scale(1);
  z-index: 100; opacity: 1; filter: none;
}
.feed-slide.pos--1{
  transform: translate(-50%, -50%) translateX(-30%) translateZ(40px) rotateY(28deg) scale(.9);
  z-index: 90; opacity: .95; filter: none;
}
.feed-slide.pos-1{
  transform: translate(-50%, -50%) translateX(30%) translateZ(40px) rotateY(-28deg) scale(.9);
  z-index: 90; opacity: .95; filter: none;
}
.feed-slide.pos--2{
  transform: translate(-50%, -50%) translateX(-60%) translateZ(-140px) rotateY(32deg) scale(.78);
  z-index: 80; opacity: .7; filter: blur(.4px);
}
.feed-slide.pos-2{
  transform: translate(-50%, -50%) translateX(60%) translateZ(-140px) rotateY(-32deg) scale(.78);
  z-index: 80; opacity: .7; filter: blur(.4px);
}

/* Flechas */
.feed-arrow{
  position: absolute; top: 0; bottom: 0;
  width: 32%;
  border: 0; background: transparent; cursor: pointer;
  z-index: 120; color: transparent;
}
.feed-arrow.prev{ left: 0; }
.feed-arrow.next{ right: 0; }
.feed-arrow::after{
  content: ""; position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 999px;
  background: rgba(16,7,26,.55);
  border: 1px solid rgba(155,93,229,.45);
  box-shadow: 0 6px 18px rgba(0,0,0,.4), inset 0 0 10px rgba(155,93,229,.12);
}
.feed-arrow.prev::after{ left: 12px; }
.feed-arrow.next::after{ right: 12px; }
.feed-arrow i{
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: #fff; z-index: 1;
}
.feed-arrow.prev i{ left: 26px; }
.feed-arrow.next i{ right: 26px; }

/* Dots */
.feed-dots{
  position: absolute; left: 0; right: 0; bottom: 12px;
  display: flex; gap: 8px; justify-content: center; align-items: center;
  z-index: 130;
}
.feed-dots button{
  width: 8px; height: 8px; border-radius: 999px;
  border: 1px solid rgba(155,93,229,.6);
  background: rgba(255,255,255,.15);
  cursor: pointer; padding: 0;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.feed-dots button[aria-selected="true"]{
  transform: scale(1.25);
  background: linear-gradient(135deg,#7a2bd6,#a559f1);
  box-shadow: 0 0 8px rgba(155,93,229,.6);
}

.feed-carousel.is-dragging .feed-slide{ transition: none; cursor: grabbing; }

@media (prefers-reduced-motion: reduce){
  .feed-slide{ transition: transform .001s, opacity .001s, filter .001s; }
}
@media (max-width: 640px){
  .feed-arrow{ width: 45%; }
  .feed-arrow::after{ width: 44px; height: 44px; }
  .feed-arrow.prev i{ left: 22px; }
  .feed-arrow.next i{ right: 22px; }
}
/* ===== CSS-ONLY 3D CAROUSEL (adaptado) ===== */
.feed-css3d{
  width: 100%;
  margin-top: 8px;
  display: grid;
  place-items: center;
}

.feed-css3d .container__slider{
  width: 100%;
  max-width: 1000px;
  height: clamp(240px, 42vw, 500px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 10px;
}

.feed-css3d input[type=radio]{ display: none; }

.feed-css3d .container{
  width: 100%;
  max-width: 800px;
  height: 100%;
  max-height: 600px;
  transform-style: preserve-3d;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;             /* profundidad 3D */
}

.feed-css3d .cards{
  position: relative;
  width: 100%;
  height: 100%;
}

.feed-css3d .card{
  position: absolute;
  left: 0; right: 0; margin: auto;
  width: 60%;
  height: 100%;
  cursor: pointer;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  transition: transform .45s cubic-bezier(0.165, 0.84, 0.44, 1),
              opacity .35s ease, filter .35s ease;
}
.feed-css3d .card img{
  width: 100%; height: 100%;
  object-fit: cover;                 /* igual al video */
  user-select: none; -webkit-user-drag: none;
}


/* ========================================================================= */
/* ===== INICIO: ESTILOS DE LOOT PARTY HUNT (Integrado desde lootpartyhunt.html) ===== */
/* ========================================================================= */

/* Aseguramos que el contenido principal no esté bajo el header */
main { 
    padding-top: 96px; 
    min-height: 100vh;
} 

/* Contenedor principal (estilo tarjeta) */
.loot-split-container {
    max-width: 900px;
    margin: 0 auto 50px auto; 
    padding: 24px;
    /* Usamos el mismo estilo de fondo que tus otras tarjetas */
    background: radial-gradient(120% 120% at 20% 10%, rgba(28,15,42,.85) 0%, rgba(16,7,26,.85) 60%, rgba(11,5,18,.85) 100%);
    border: 1px solid rgba(155,93,229,.45);
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.loot-split-container h1, .loot-split-container h2 {
    color: var(--lt-accent, #b164f7);
    text-align: center;
}

.loot-instructions { 
    max-width: 400px; 
    margin: 0 auto 20px; 
    color: var(--lt-text-dim); 
    list-style-position: inside; /* Mantiene la lista centrada */
}

/* Área de texto para pegar el log */
#logInput {
    width: 100%;
    max-width: 500px; /* Limita el ancho en desktop */
    display: block;
    margin: 10px auto 20px auto; /* Centrar */
    padding: 12px;
    border: 1px solid var(--lt-border, #9b5de5);
    background-color: #140a24;
    color: var(--lt-text, #f3e9ff);
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    border-radius: 8px;
    resize: none;
    overflow-y: hidden;
}

/* CENTRADO DE BOTONES */
.button-group-center {
    text-align: center;
    margin-bottom: 30px;
}

/* ESPACIO PARA LA IMAGEN Y RESPONSIVIDAD */
#image-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto; /* Margen superior e inferior */
    max-width: 100%;
}
/* Estilo para la imagen (cuando la agregues) */
#guide-image {
    max-width: 100%; /* Totalmente responsiva */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Estilo de botón (basado en .submit-btn) */
.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .2px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.12);
    background: linear-gradient(135deg,#7a2bd6,#a559f1);
    color: #fff;
    margin: 4px 8px 0 0;
    box-shadow: 0 4px 12px rgba(122,43,214,.22), inset 0 1px 0 rgba(255,255,255,.08);
    cursor: pointer;
    transition: transform .12s, box-shadow .12s, filter .12s;
}
.submit-btn:hover:not([disabled]) {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(122,43,214,.28), inset 0 1px 0 rgba(255,255,255,1);
}
.submit-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(1);
}

/* Resultados */
#results {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(155,93,229,.45);
}

#results p { line-height: 1.8; color: var(--lt-text-dim); }
#results strong { color: var(--lt-accent-2); font-weight: 700; }
#results hr { border-color: rgba(155,93,229,.2); margin: 20px 0; }

/* Botón de copia para las transacciones */
.copy-btn {
    background: #505050; 
    color: #fff; 
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    margin-left: 8px;
}
.copy-btn:hover { background: #6a6a6a; }

/* RESPONSIVIDAD: Ajuste para móvil */
@media (max-width: 600px) {
    .loot-split-container {
        padding: 16px;
        margin-left: 10px;
        margin-right: 10px;
    }
    .submit-btn {
        display: block; /* Que cada botón ocupe su propia línea */
        width: 90%;
        max-width: 250px;
        margin: 8px auto; /* Centrar botones */
    }
    .button-group-center {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}
/* ========================================================================= */
/* ===== FIN: ESTILOS DE LOOT PARTY HUNT ===== */
/* ========================================================================= */

/* ========================================================================= */
/* ===== INICIO: ESTILOS DE IMBUEMENTS PRICES (INTEGRACIÓN) ===== */
/* ========================================================================= */

/* Contenedor principal de la calculadora de Imbuements */
.imbuements-container {
    max-width: 1200px;
    margin: 0 auto 50px auto; 
    padding: 24px;
}

/* --- Barra de Filtros (Search Bar) --- */
.imbuement-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
    margin-bottom: 24px;
    border-radius: 12px;
    background: radial-gradient(120% 120% at 20% 10%, rgba(28,15,42,.85) 0%, rgba(16,7,26,.85) 60%, rgba(11,5,18,.85) 100%);
    border: 1px solid rgba(155,93,229,.45);
}

.imbuement-filters select,
.imbuement-filters input {
    /* Estilo general para todos los campos de filtro */
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--lt-border, #9b5de5);
    background-color: #140a24;
    color: var(--lt-text, #f3e9ff);
    font-size: 0.95rem;
    height: 40px;
    min-width: 120px;
}
.imbuement-filters button {
    height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    background-color: var(--lt-accent, #b164f7);
    color: var(--lt-white);
    border: none;
    cursor: pointer;
    font-weight: bold;
}
.imbuement-filters input::placeholder {
    color: var(--lt-text-dim);
    opacity: 0.7;
}

/* --- Grid de Imbuements --- */
.imbuements-grid {
    display: grid;
    /* 3 columnas en pantallas medianas, 4 en grandes */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

/* --- Card de Imbuement --- */
.imbuement-card {
    display: flex;
    align-items: center;
    padding: 8px;
    min-height: 64px;
    position: relative;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    /* Usamos glow-card para el efecto visual */
    background: radial-gradient(120% 120% at 20% 10%, rgba(28,15,42,.85) 0%, rgba(16,7,26,.85) 60%, rgba(11,5,18,.85) 100%);
    border: 1px solid rgba(155,93,229,.45);
}

.imbuement-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 10px rgba(177,100,247,.4);
}

.imbuement-icon {
    min-width: 48px;
    max-width: 48px;
    height: 48px;
    margin-right: 12px;
    object-fit: contain;
}

.imbuement-info {
    flex-grow: 1;
    overflow: hidden;
}

.imbuement-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--lt-text, #f3e9ff);
}

.imbuement-effect {
    font-size: 0.85rem;
    color: var(--lt-text-dim, #d6c5ff);
}

.imbuement-price-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: auto;
}

.imbuement-price {
    font-weight: bold;
    font-size: 1.1em;
    color: var(--lt-accent-2, #d8b6ff);
}

.imbuement-cc {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-left: 4px;
}

.imbuement-tier-tag {
    font-size: 0.75rem;
    background-color: #3b3f46;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
}

/* RESPONSIVIDAD */
@media (max-width: 900px) {
    .imbuements-grid {
        /* Pasa a 2 columnas en móvil */
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .imbuement-filters {
        /* Permite que los inputs tomen el ancho completo en móvil */
        flex-direction: column;
    }
}
@media (max-width: 600px) {
    .imbuement-card {
        padding: 6px;
        min-height: 80px;
    }
    .imbuement-filters select,
    .imbuement-filters input,
    .imbuement-filters button {
        width: 100%;
        margin-right: 0;
    }
}

/* ========================================================================= */
/* ===== FIN: ESTILOS DE IMBUEMENTS PRICES ===== */
/* ========================================================================= */

/* ========================================================================= */
/* ===== INICIO: ESTILOS MODAL DE IMBUEMENTS (Segunda Vista - FIX) ===== */
/* ========================================================================= */

.imbuement-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: none;
    justify-content: center;
    align-items: flex-start; /* Alineación arriba para mejor vista en móvil */
    z-index: 3000;
    overflow-y: auto; /* Controla el scroll vertical */
    overflow-x: hidden; /* ELIMINA LA BARRA HORIZONTAL */
    padding: 10px 0; /* Padding vertical, el wrapper maneja el horizontal */
}

.imbuement-modal.is-open {
    display: flex;
}

.modal-content-wrapper {
    width: 95%; /* CLAVE: Toma casi todo el ancho disponible */
    max-width: 1200px;
    margin: 10px auto; /* Centrado */
}

.modal-content {
    background: radial-gradient(120% 120% at 20% 10%, rgba(28,15,42,1) 0%, rgba(16,7,26,1) 60%, rgba(11,5,18,1) 100%);
    border: 1px solid var(--lt-accent, #b164f7);
    border-radius: 14px;
    box-shadow: 0 0 30px rgba(177, 100, 247, 0.4);
    color: var(--lt-text);
    padding: 20px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(155, 93, 229, 0.3);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.modal-name {
    margin: 0;
    font-size: 1.8em;
    color: var(--lt-accent-2);
}

.modal-effect {
    margin: 0;
    color: var(--lt-text-dim);
    font-size: 0.9em;
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--lt-text-dim);
    font-size: 1.5em;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: var(--lt-accent);
}

/* --- Niveles de Imbuement (Basic, Intricate, Powerful) --- */
.levels-container {
    display: grid;
    /* CLAVE DE RESPONSIVIDAD: En desktop muestra 3 columnas, en móvil solo 1 */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 0; /* Remove bottom margin to clean up spacing */
}

.level-card {
    padding: 15px;
    border-radius: 10px;
    background-color: rgba(28, 15, 42, 0.8); 
    border: 1px solid rgba(155, 93, 229, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    /* Aseguramos que la tarjeta se ajuste al 100% de su columna */
    min-width: unset;
}

.level-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px dashed rgba(155, 93, 229, 0.2);
}

.level-header img {
    width: 32px;
    height: 32px;
}

.level-name {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--lt-accent);
    margin: 0;
}

.level-leech {
    font-size: 0.9em;
    color: var(--lt-text);
    margin: 0;
}

/* --- Estilos de los ítems de recurso/scroll dentro de la tarjeta --- */

.level-resource-item {
    display: flex;
    align-items: flex-start; /* Alinea los ítems de recursos a la parte superior */
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.95em;
    color: var(--lt-text-dim);
}

.resource-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    /* Permite que el texto del nombre del recurso o scroll fluya y envuelva */
    flex-direction: row; 
    flex-wrap: wrap; 
    max-width: 85%; /* Deja espacio para el botón de copiar */
}

.resource-group span {
    white-space: normal; /* CLAVE: Permite que el texto se envuelva */
    line-height: 1.2;
}

.resource-group img {
    /* Mantén el tamaño de los iconos de recurso */
    width: 24px;
    height: 24px;
    flex-shrink: 0; /* Evita que el ícono se encoja */
    margin-top: 2px; /* Alineación visual con el texto */
}

/* --- Responsive para dispositivos muy pequeños --- */
@media (max-width: 600px) {
    /* CLAVE: Fuerza una sola columna en móviles */
    .levels-container {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        /* Aseguramos que el contenido quepa en la pantalla del teléfono */
        max-height: none; 
        overflow-y: visible;
    }
    
    .modal-content-wrapper {
        width: 95%; /* Asegura que el modal no sea más ancho que el viewport */
        margin: 10px auto;
    }

    .modal-content {
        padding: 15px;
    }
}

.dropdown-menu.is-open {
    max-height: 300px; /* Suficiente para que se despliegue */
}

.dropdown-menu .nav-link {
    padding-left: 52px; /* Indentación para sub-items */
    font-size: 0.95em;
    font-weight: 400;
}
/* Corrección de padding-top para main content */
main { 
    /* Ajusta el padding para que el contenido no quede bajo el header */
    padding-top: 56px !important; 
    min-height: 100vh;
} 
/* Elimina el padding-top innecesario de un contenedor si existe */
.imbuements-container {
    padding-top: 0 !important;
}
/* --- AJUSTE CLAVE: TARJETAS CUADRADAS UNIFORMES Y COMPACTAS --- */
.imbuements-grid {
    display: grid;
    /* Reducimos el minmax para que las tarjetas sean más pequeñas,
       uniformes y quepan más en pantalla. */
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); 
    gap: 16px;
}

.imbuement-card {
    /* Forzar la relación de aspecto 1:1 */
    aspect-ratio: 1 / 1; 
    padding: 10px;
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.imbuement-card .imbuement-icon {
    /* Mantenemos el tamaño del ícono grande */
    min-width: 64px; 
    max-width: 64px;
    height: 64px;
    margin: 0 auto 4px; /* Reducimos el margen inferior */
}

.imbuement-card .imbuement-name {
    font-size: 0.95rem; /* Hacemos el nombre ligeramente más chico */
    line-height: 1.1;
    margin-bottom: 2px;
}

.imbuement-card .imbuement-effect {
    font-size: 0.8rem; /* Hacemos el efecto más chico para que quepa */
}

/* Responsive Móvil: Que quepan 2-3 columnas */
@media (max-width: 600px) {
    .imbuements-grid {
        /* Permite 2 o 3 columnas más pequeñas para mejor uso del espacio */
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
    }
}
/* ========================================================================= */
/* ===== AJUSTE PARA MÓVIL (Corrige recorte de texto en tarjetas) ===== */
/* ========================================================================= */
@media (max-width: 600px) {
    /* Fuerza que la cuadrícula muestre tarjetas muy compactas en móvil */
    .imbuements-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
    }
    
    /* Ajusta el tamaño del ícono y el margen */
    .imbuement-card .imbuement-icon {
        min-width: 44px; /* Reducción de ícono */
        max-width: 44px;
        height: 44px;
        margin: 0 auto 2px; 
    }

    /* Nombre del Imbuement */
    .imbuement-card .imbuement-name {
        font-size: 0.75rem; /* Reducido para que quepa en una línea o dos */
        line-height: 1;
        margin-bottom: 1px;
    }

    /* Efecto (Life Leech, Daño de Fuego) */
    .imbuement-card .imbuement-effect {
        font-size: 0.65rem; /* Aún más reducido */
        line-height: 1.1;
    }

    /* Aseguramos que el contenedor de la info no oculte nada */
    .imbuement-card .imbuement-info {
        overflow: visible;
        max-height: 40px; /* Limita la altura de la info para mantener el cuadrado */
    }
}

/* ===================== AJUSTE DE CONTENIDO PRINCIPAL (Centrado) ===================== */

/* Contenedor principal que limitará el ancho de todo el contenido de la página */
.page-content-wrapper {
    max-width: 1200px; /* Límite de ancho para que no se estire demasiado */
    margin: 0 auto;    /* Centrado horizontal CLAVE */
    padding: 24px 16px; /* Padding interior para los bordes */
    /* Aseguramos que el contenedor herede el margen lateral del sidebar.css */
}

/* En dispositivos más pequeños, reducimos el padding para ahorrar espacio */
@media (max-width: 768px) {
    .page-content-wrapper {
        padding: 16px 10px;
    }
}
/* ========================================================================= */
/* ===== AJUSTES PARA CALCULADORA DE EXP SHARE (NUEVOS ESTILOS) ===== */
/* ========================================================================= */

/* 1. Estructura de Instrucciones + Imagen */
.instructions-image-group {
    display: flex;
    align-items: center; /* Alinea verticalmente al centro */
    justify-content: center; /* Centra el grupo */
    gap: 10px; /* ⬅️ CLAVE: Reducido para acercar el texto a la imagen */
    margin-bottom: 20px;
    padding: 0 10px;
    max-width: 500px; /* ⬅️ NUEVO: Limita el ancho para que los elementos no se separen tanto */
    margin-left: auto; /* ⬅️ NUEVO: Centra el grupo dentro del contenedor más grande */
    margin-right: auto; /* ⬅️ NUEVO: Centra el grupo dentro del contenedor más grande */
}

.loot-instructions {
    flex-basis: 70%; /* ⬅️ Aumentamos el espacio del texto */
    text-align: left; 
}

.calculator-image-wrapper {
    flex-basis: 30%; /* ⬅️ Reducimos el espacio de la imagen */
    max-width: 140px; /* ⬅️ Reducimos el ancho máximo para una imagen más compacta */
}

.calculator-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 220px;
    object-fit: contain;
    /* Efecto de sombra para que se integre al fondo oscuro */
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4)); 
}

/* 2. Eliminar barra de desplazamiento del input de nivel (#level) */
#level {
    /* Oculta las flechas del input type="number" en Firefox */
    -moz-appearance: textfield;
}

/* Oculta las flechas del input type="number" en Chrome, Safari, Edge, Opera */
#level::-webkit-outer-spin-button,
#level::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/* Responsivo para móviles: apila los elementos */
@media (max-width: 600px) {
    .instructions-image-group {
        flex-direction: column; /* Apila los elementos verticalmente */
        padding: 0;
        gap: 15px;
    }
    
    .loot-instructions {
        flex-basis: auto;
        text-align: center;
        margin-top: 10px;
        order: 2; /* Mueve las instrucciones debajo de la imagen */
    }

    .calculator-image-wrapper {
        flex-basis: auto;
        max-width: 180px; /* Reduce el tamaño de la imagen en móvil */
        order: 1; /* Mueve la imagen arriba */
    }
}