/* style.css — Gameplay.cl soft gamer theme */

:root {
    --gp-bg: #0f1419;
    --gp-surface: #1a2332;
    --gp-card: #ffffff;
    --gp-accent: #2dd4bf;      /* cian suave */
    --gp-accent-2: #22c55e;    /* verde */
    --gp-accent-hover: #14b8a6;
    --gp-text: #e8eef5;
    --gp-muted: #94a3b8;
    --gp-danger: #ef4444;
    --gp-body-bg: #eef2f6;
    --gp-radius: 0.75rem;
}

body {
    background-color: var(--gp-body-bg);
    color: #1e293b;
}

/* ---- Site header (dark + accent) ---- */
.site-header {
    background: linear-gradient(135deg, var(--gp-bg) 0%, var(--gp-surface) 100%);
    border-bottom: 2px solid var(--gp-accent);
    box-shadow: 0 2px 12px rgba(15, 20, 25, 0.35);
}

.site-header .navbar-brand {
    color: #fff !important;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.site-header .navbar-brand:hover {
    color: var(--gp-accent) !important;
}

.site-header .navbar-brand .brand-accent {
    color: var(--gp-accent);
}

.site-header .nav-link {
    color: var(--gp-muted) !important;
    font-size: 0.9rem;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus {
    color: var(--gp-accent) !important;
}

.site-header .navbar-toggler {
    border-color: rgba(45, 212, 191, 0.45);
}

.site-header .navbar-toggler-icon {
    filter: invert(1) brightness(1.2);
}

/* Trust line under home title */
.trust-line {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.75rem;
    font-size: 0.875rem;
    color: #64748b;
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.35);
    border-radius: 2rem;
    padding: 0.4rem 1rem;
    margin-top: 0.75rem;
}

.trust-line .trust-sep {
    color: #cbd5e1;
}

.trust-line i {
    color: var(--gp-accent-hover);
}

/* Primary buttons → soft cyan/green accent without breaking Bootstrap layout */
.btn-primary {
    --bs-btn-bg: #0d9488;
    --bs-btn-border-color: #0d9488;
    --bs-btn-hover-bg: #0f766e;
    --bs-btn-hover-border-color: #0f766e;
    --bs-btn-active-bg: #115e59;
    --bs-btn-active-border-color: #115e59;
    --bs-btn-disabled-bg: #0d9488;
    --bs-btn-disabled-border-color: #0d9488;
}

.btn-outline-primary {
    --bs-btn-color: #0d9488;
    --bs-btn-border-color: #0d9488;
    --bs-btn-hover-bg: #0d9488;
    --bs-btn-hover-border-color: #0d9488;
    --bs-btn-active-bg: #0f766e;
    --bs-btn-active-border-color: #0f766e;
}

.text-primary,
.bi.text-primary {
    color: #0d9488 !important;
}

.page-link {
    color: #0d9488;
}

.page-item.active .page-link {
    background-color: #0d9488;
    border-color: #0d9488;
}

/* ---- Product cards ---- */
.product-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 1px solid #e2e8f0;
    border-radius: var(--gp-radius);
    overflow: hidden;
    background: var(--gp-card);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.65rem 1.25rem rgba(15, 20, 25, 0.14) !important;
    border-color: rgba(13, 148, 136, 0.35);
}

.product-card-img-wrap {
    position: relative;
    background: #fff;
    overflow: hidden;
}

.product-card img.card-img-top,
.product-card-img-wrap img {
    aspect-ratio: 1 / 1;
    max-height: 200px;
    width: 100%;
    object-fit: contain;
    padding: 0.75rem;
    background-color: #fff;
}

@media (min-width: 768px) {
    .product-card img.card-img-top,
    .product-card-img-wrap img {
        max-height: 220px;
    }
}

.product-card .card-body {
    padding: 0.85rem 0.95rem 1rem;
}

.product-card .card-title {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
    min-height: 2.5em; /* ~2 lines */
    max-height: 2.7em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 0.35rem;
}

.badge-off {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.35em 0.55em;
    background: var(--gp-danger) !important;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}

.badge-new {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.8rem;
    font-weight: bold;
}

.price-text,
.product-card .price-now {
    font-size: 1.35rem;
    font-weight: 700;
    color: #059669;
    line-height: 1.2;
    margin-bottom: 0.15rem;
}

.product-card .price-before {
    font-size: 0.8rem;
    color: #94a3b8;
    text-decoration: line-through;
    margin-bottom: 0.5rem;
}

.product-card .btn-cta-ml {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.45rem 0.6rem;
    white-space: normal;
    line-height: 1.25;
}

.product-card .offer-seen {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 0.55rem;
    margin-bottom: 0;
}

.product-title-link:hover .card-title {
    color: #0d9488;
    text-decoration: underline;
}

.history-btn {
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
}

/* Product page trust near CTA */
.cta-trust {
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.cta-trust i {
    color: #0d9488;
}

.hist-fresh-note {
    background: rgba(45, 212, 191, 0.1);
    border: 1px solid rgba(45, 212, 191, 0.35);
    border-radius: var(--gp-radius);
    padding: 0.85rem 1rem;
    color: #334155;
}

/* Soft dark footer (keeps legal clarity) */
.site-footer {
    background: linear-gradient(180deg, #1a2332 0%, #0f1419 100%);
    border-top: 2px solid var(--gp-accent);
    color: var(--gp-text);
}

.site-footer .alert {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.45);
    color: #fde68a;
}

.site-footer .alert strong,
.site-footer .alert-heading {
    color: #fef3c7;
}

.site-footer a {
    color: var(--gp-accent);
}

.site-footer a:hover {
    color: #5eead4;
}

.site-footer .text-muted,
.site-footer .small.text-muted {
    color: var(--gp-muted) !important;
}

.site-footer hr {
    border-color: rgba(148, 163, 184, 0.25);
}

/* Filter card soft edge */
.card.card-body.shadow-sm {
    border-radius: var(--gp-radius);
    border: 1px solid #e2e8f0;
}

/* ================================== */
/* === ESTILOS BOTÓN FLOTANTE TELEGRAM === */
/* ================================== */

.telegram-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #0088cc;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    text-decoration: none;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease-in-out;
    z-index: 1000;
}

.telegram-float:hover {
    transform: scale(1.1);
    color: #FFF;
    background-color: #0077b3;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 136, 204, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 136, 204, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 136, 204, 0);
    }
}

.telegram-float {
    animation: pulse 2s infinite;
}

@media (max-width: 575.98px) {
    .telegram-float {
        width: 52px;
        height: 52px;
        font-size: 28px;
        bottom: 16px;
        right: 16px;
    }

    .product-card .price-now {
        font-size: 1.2rem;
    }

    .product-card .btn-cta-ml {
        font-size: 0.78rem;
    }
}

/* ==========================================================================
   Mobile nav fix (2026-10-07)
   Cause: .navbar + .container on the SAME element lets Bootstrap's
   --bs-navbar-padding-x:0 wipe horizontal gutters; below md, .navbar-nav
   also forces --bs-nav-link-padding-x:0. Links sit flush-left with muted
   #94a3b8 on the dark header → "se pega a la izquierda / sale oscuro".
   ========================================================================== */

/* If markup still has navbar+container on one element, restore gutters */
.site-header .navbar.container {
    --bs-navbar-padding-x: 1rem;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

@media (max-width: 767.98px) {
    .site-header .navbar-collapse {
        width: 100%;
        flex-basis: 100%;
        margin-top: 0.5rem;
        padding: 0.5rem 0 0.25rem;
        border-top: 1px solid rgba(45, 212, 191, 0.28);
    }

    .site-header .navbar-nav {
        width: 100%;
        gap: 0.2rem;
        --bs-nav-link-padding-x: 1rem;
    }

    .site-header .nav-link {
        color: var(--gp-text) !important; /* #e8eef5 */
        font-size: 1rem;
        font-weight: 500;
        letter-spacing: 0.01em;
        padding: 0.85rem 1rem !important;
        border-radius: 0.5rem;
        text-align: center;
    }

    .site-header .nav-link:hover,
    .site-header .nav-link:focus,
    .site-header .nav-link:active {
        color: var(--gp-accent) !important;
        background: rgba(45, 212, 191, 0.14);
    }

    .site-header .navbar-toggler {
        padding: 0.4rem 0.7rem;
        border-width: 1.5px;
    }

    .site-header .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(45, 212, 191, 0.35);
    }
}


/* ==========================================================================
   Badge "📉 Bajó de precio" (2026-10-11)
   Bajada real detectada por el bot (último precio < precio anterior, <= 7 días).
   ========================================================================== */
.badge-drop {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.38em 0.6em;
    color: #5eead4;
    background: linear-gradient(135deg, var(--gp-bg) 0%, var(--gp-surface) 100%);
    border: 1px solid var(--gp-accent);
    border-radius: 2rem;
    box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.15), 0 0 10px rgba(45, 212, 191, 0.45);
    white-space: nowrap;
}

.badge-drop-inline {
    position: static;
    font-size: 0.85rem;
}

.product-card .price-drop-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.5rem;
    margin: -0.25rem 0 0.55rem;
    font-size: 0.78rem;
    line-height: 1.3;
}

.price-drop-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25em;
    font-weight: 700;
    color: #047857;
    background: rgba(45, 212, 191, 0.14);
    border: 1px solid rgba(13, 148, 136, 0.4);
    border-radius: 2rem;
    padding: 0.12em 0.55em;
    white-space: nowrap;
}

.price-drop-was {
    color: #64748b;
    white-space: nowrap;
}

.price-drop-detail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem 0.6rem;
}

.price-drop-detail-txt {
    font-size: 0.92rem;
    color: #334155;
}

@media (max-width: 575.98px) {
    .badge-drop {
        font-size: 0.7rem;
        top: 8px;
        right: 8px;
    }
    .product-card .price-drop-line {
        font-size: 0.76rem;
    }
}
