/* ===============================
   FILTROS - ESTADO NORMAL
================================ */

.tg-filtros {
    margin: 20px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tg-filtros a {
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid #d5971d;
    color: #d5971d;
    background: transparent;
    font-weight: 600;
    transition: 0.3s ease;
}

/* HOVER */

.tg-filtros a:hover {
    background: #d5971d;
    color: #40230c;
    transform: translateY(-2px);
}

/* ACTIVE (se activará con clase JS) */

.tg-filtros a.active {
    background: #f3e18e;
    color: #40230c;
    border-color: #f3e18e;
}
/* ===============================
   BUSCADOR TIENDAS
================================ */

.tg-search {
    margin: 20px 0;
}

.tg-search input {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border-radius: 30px;
    outline: none;
    background: #40230c;
    color: #fff6c2;
    border: 1px solid #d5971d;
    transition: 0.3s ease;
}

/* Placeholder */

.tg-search input::placeholder {
    color: rgba(243, 225, 142, 0.6);
}

/* Hover */

.tg-search input:hover {
    border-color: #f3e18e;
}

/* Focus */

.tg-search input:focus {
    box-shadow: 0 0 20px rgba(213,151,29,0.5);
    border-color: #f3e18e;
    background: #2e1909;
}
/* ===============================
   GRID
================================ */

.tiendas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 40px;
    align-items: stretch;
}

/* ===============================
   CARD
================================ */

.tienda-card-pro {
    background: #432610;
    border-radius: 22px;
    position: relative;
    padding: 28px;
    color: #fff3d0;
    border: 1px solid rgba(213,151,29,0.55);
    box-shadow: 0 0 25px rgba(213,151,29,0.25);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 260px;
}

.tienda-card-pro:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 30px rgba(213,151,29,0.8);
    border-color: #f3e18e;
}

/* ===============================
   TOP ROW
================================ */

.tg-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tg-left {
    display: flex;
    gap: 15px;
    align-items: center;
}

.tg-logo img {
    width: 55px;
    border-radius: 12px;
    background: #40230c;
    padding: 5px;
}

.tg-title-area h3 {
    margin: 0;
    font-size: 16px;
    color: #fff3d0;
    font-weight: 700;
}

.tg-sub-meta {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;   /* evita salto de línea */
    white-space: nowrap; /* mantiene todo en una línea */
}

.tg-cat {
    background: #5a3418;
    color: #f3e18e;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 10px;
}

.tg-percent {
    background: #00c853;
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: bold;
}

.tg-status-badge {
    background: #d5971d;
    color: #40230c;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 12px;
}

/* ===============================
   STATS ROW
================================ */

.tg-stats-row {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #2a170a;
    border-radius: 18px;
    overflow: hidden;
}

.tg-stat {
    padding: 22px;
    border-right: 1px solid rgba(213,151,29,0.35);
}

.tg-stat:last-child {
    border-right: none;
}

.tg-stat span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d5971d;
    font-weight: 600;
    font-size: 12px;
}

.tg-stat .dashicons {
    font-size: 16px;
    color: #d5971d;
}

.tg-stat strong {
    display: block;
    margin-top: 6px;
    color: #fff3d0;
    font-size: 12px;
}
/* ===============================
   NOTE
================================ */

.tg-note-pro {
    margin-top: 18px;
    color: #f3e18e;
    opacity: 0.9;
	  font-size: 12px;
    margin-top: 14px;
}

/* ===============================
   BOTÓN
================================ */

.tg-btn,
.tg-btn:link,
.tg-btn:visited {
    background: #d5971d !important;
    color: #40230c !important;
    text-decoration: none !important;
    display: inline-block;
    margin-top: 20px;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: bold;
    transition: 0.3s ease;
}

.tg-btn:hover {
    background: #f3e18e !important;
    color: #40230c !important;
    transform: scale(1.05);
}

.tg-btn:active {
    background: #c58510 !important;
    color: #40230c !important;
}

/* ===============================
   GRID RESPONSIVE PRO
================================ */

.tiendas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 40px;
    align-items: stretch;
}

/* Tablet */

@media (max-width: 1024px) {
    .tiendas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Mobile */

@media (max-width: 768px) {

    .tiendas-grid {
        grid-template-columns: 1fr !important;
        width: 100%;
    }

    .tienda-card-pro {
        width: 100%;
        min-width: 0;
    }

}
/* ===============================
   STATS RESPONSIVE MÓVIL
================================ */

@media (max-width: 768px) {

    .tg-stats-row {
        grid-template-columns: 1fr !important;
    }

    .tg-stat {
        border-right: none !important;
        border-bottom: 1px solid rgba(213,151,29,0.35);
    }

    .tg-stat:last-child {
        border-bottom: none;
    }

}
/* ===============================
   CARD VERDE (Instant / Popular)
================================ */

.tienda-card-green {
    background: linear-gradient(
        135deg,
        #432610 0%,
        rgba(0, 255, 136, 0.15) 100%
    );
    
    border: 1px solid #00ff88;
    box-shadow: 0 0 35px rgba(0,255,136,0.25);
    position: relative;
    overflow: hidden;
}
@media (max-width:768px){

.tienda-card-vip .stats,
.tienda-card-vip .tg-stats,
.tienda-card-vip .store-stats,
.tienda-card-vip .card-stats,
.tienda-card-vip .tienda-stats{

display:flex !important;
flex-wrap:nowrap !important;

}

.tienda-card-vip .stats > div,
.tienda-card-vip .tg-stats > div,
.tienda-card-vip .store-stats > div,
.tienda-card-vip .card-stats > div,
.tienda-card-vip .tienda-stats > div{

width:33.33% !important;

}

}

.tienda-card-green:hover {
    box-shadow: 0 0 20px rgba(0,255,136,0.8);
    border-color: #00ff88;
}

/* Badge verde */

.tienda-card-green .tg-status-badge {
    background: ;
    color: #000;
    display: flex;
    align-items: center;
    gap: 6px;
}
/* ===============================
   CARD DESACTIVADA PREMIUM
================================ */

.tienda-card-disabled {
    position: relative;
    pointer-events: none;
}

.tienda-card-disabled > *:not(.tg-disabled-badge) {
    filter: blur(3px);
    opacity: 0.55;
}

/* Badge flotante elegante */

.tg-disabled-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 10;

    background: rgba(120, 50, 50, 0.35);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);

    color: #ffffff;
    padding: 8px 18px;
    border-radius: 40px;

    font-size: 13px;
    font-weight: 600;

    display: flex;
    align-items: center;
    gap: 8px;

    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

/* Puntito rojo */

.tg-disabled-dot {
    width: 10px;
    height: 10px;
    background: #7a1f1f;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(200,0,0,0.6);
}
/* ===============================
   CARD VIP BLOQUEADA
================================ */

.tienda-card-vip {
    position: relative;
    pointer-events: none;
}

/* Desenfoque general */

.tienda-card-vip > *:not(.tg-vip-overlay) {
    filter: blur(4px);
    opacity: 0.4;
}

/* Overlay elegante */

.tg-vip-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 15;
    border-radius: 22px;
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(8px);
}

/* Badge central */

.tg-vip-badge {
    background: linear-gradient(135deg, #d5971d, #f3e18e);
    color: #40230c;
    padding: 10px 22px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 25px rgba(213,151,29,0.6);
}
/* BADGE PORCENTAJE NORMAL */

.tg-percent{
    background:linear-gradient(135deg,#d5971d,#c58510);
    color:#40230c;
    padding:6px 14px;
    border-radius:30px;
    font-weight:700;
    font-size:10px;
    display:inline-block;
    box-shadow:0 0 8px rgba(213,151,29,0.25);
}
/* ===============================
   BADGE INSTANT
================================ */

.tg-badge-instant{

background:linear-gradient(135deg,#d5971d,#f3e18e);

color:#40230c;

padding:6px 14px;

border-radius:30px;

font-weight:700;

font-size:10px;

display:inline-block;

margin-left:6px;

box-shadow:0 0 12px rgba(213,151,29,0.45);

}
/* VERSION DORADA 100% */

.tg-percent-gold{
    background:linear-gradient(135deg,#d4af37,#f9e27d,#b8860b);
    color:#3a2500;
    box-shadow:0 0 20px rgba(212,175,55,0.6);
    animation:goldGlow 2.5s ease-in-out infinite;
}

@keyframes goldGlow{
    0%{box-shadow:0 0 15px rgba(212,175,55,0.4);}
    50%{box-shadow:0 0 35px rgba(212,175,55,0.9);}
    100%{box-shadow:0 0 15px rgba(212,175,55,0.4);}
}
/* BLOQUE AHORRO NUEVO */

.resultado.ahorro{

margin-top:30px;
padding-top:20px;

border-top:1px solid rgba(213,151,29,0.35);

text-align:center;

display:flex;
flex-direction:column;
align-items:center;

}

/* TEXTO SUPERIOR */

.resultado.ahorro{

font-size:16px;
letter-spacing:1px;
color:#d5971d;
font-weight:600;

}

/* NUMERO GRANDE */

.resultado.ahorro span{

margin-top:8px;

font-size:44px;
font-weight:800;

color:#f3e18e;

text-shadow:
0 0 10px rgba(213,151,29,0.6),
0 0 20px rgba(213,151,29,0.5),
0 0 35px rgba(213,151,29,0.4);

}
.ahorro-label{

font-size:16px;
letter-spacing:1px;
color:#d5971d;
font-weight:600;

}
.porcentaje-activo{

margin-top:10px;

text-align:center;

font-size:14px;

color:#d5971d;

font-weight:600;

}

/* ===============================
CALCULADORA RESPONSIVE MOVIL
=============================== */

@media (max-width:768px){

.calculadora{

padding:22px;
max-width:100%;
border-radius:18px;

}

/* TITULO */

.calculadora h2{

font-size:22px;
margin-bottom:18px;

}

/* INPUT */

.calculadora input{

padding:12px;
font-size:16px;
margin-bottom:15px;

}

/* BOTONES */

.botones{

gap:8px;
margin-bottom:10px;

}

.botones button{

padding:10px 6px;
font-size:14px;
border-radius:10px;

}

/* PORCENTAJE ACTIVO */

.porcentaje-activo{

font-size:13px;
margin-top:6px;
margin-bottom:10px;

}

/* RESULTADOS */

.resultado{

font-size:16px;
margin-top:10px;

}

/* USDC */

.resultado.usdc{

font-size:15px;

}

/* BLOQUE AHORRO */

.resultado.ahorro{

margin-top:18px;
padding-top:15px;

}

/* TEXTO TE AHORRAS */

.ahorro-label{

font-size:14px;

}

/* NUMERO GRANDE */

.resultado.ahorro span{

font-size:32px;

}

}
/* =====================================
FORZAR 3 COLUMNAS EN MOVIL
===================================== */

.tg-stats-row{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:0;
}

.tg-stat{
border-right:1px solid rgba(255,255,255,0.08);
padding:12px;
text-align:center;
}

.tg-stat:last-child{
border-right:none;
}

/* AJUSTE MOVIL */

@media (max-width:768px){

.tg-stats-row{
grid-template-columns:repeat(3,1fr) !important;
}

.tg-stat{
padding:10px 6px;
}

.tg-stat span{
font-size:10px;
}

.tg-stat strong{
font-size:14px;
}

}

@media (max-width:768px){

.tg-stats-row{
grid-template-columns:repeat(3,1fr);
gap:0;
}

.tg-stat{
padding:10px 6px;
}

.tg-stat span{
font-size:11px;
}

.tg-stat strong{
font-size:15px;
}

}
.numero-dorado{

background:linear-gradient(135deg,#d4af37,#f9e27d,#b8860b);

-webkit-background-clip:text;
-webkit-text-fill-color:transparent;

font-weight:800;

}

/* BADGES SUPERIORES */

.tg-top-badges{
position:absolute;
top:14px;
right:14px;
display:flex;
gap:8px;
z-index:5;
}

.tg-badge-instant-top{
padding:6px 14px;
border-radius:20px;
font-size:13px;
font-weight:600;
color:#000;
}

.tg-badge-gold-top{
background:#f3e18e;
color:#40230c;
padding:6px 14px;
border-radius:20px;
font-size:13px;
font-weight:600;
}

/* CARD BORDE VERDE */

.tienda-card-green{
border:2px solid #00ff9c;
box-shadow:0 0 15px rgba(0,255,150,0.35);
}

/* CARD BORDE DORADO */

.tienda-card-gold{
border:2px solid #d5971d;
box-shadow:0 0 15px rgba(213,151,29,0.35);
}

.tg-top-badges{
position:absolute;
top:12px;
right:12px;
display:flex;
gap:8px;
z-index:5;
}

.tg-badge-instant-top{
padding:6px 14px;
border-radius:20px;
font-size:13px;
font-weight:600;
color:#000;
}

.tg-badge-gold-top{
background:#f3e18e;
color:#40230c;
padding:6px 14px;
border-radius:20px;
font-size:13px;
font-weight:600;
}

.tienda-card-gold{

background:linear-gradient(
135deg,
#3b2107 0%,
#6a3b0c 40%,
#b07a1b 100%
);

border:2px solid #d5971d;

box-shadow:
0 0 15px rgba(213,151,29,0.4),
0 0 30px rgba(213,151,29,0.2);

}

/* ===============================
BADGES RESPONSIVE MOVIL
=============================== */

@media (max-width:768px){

.tg-top-badges{

top:6px;
right:10px;
gap:6px;

}

/* tamaño badges */

.tg-badge-instant-top,
.tg-badge-gold-top{

font-size:11px;
padding:4px 10px;
border-radius:16px;

}

/* bajar un poco el header */

.tg-top-row{

margin-top:10px;

}

/* reducir logo */

.tg-logo img{

width:42px;

}

/* reducir titulo */

.tg-title-area h3{

font-size:14px;

}

}
