:root {
    --bg: #0f172a;
    --muted: #1e293b;
    --card: #0b1220;
    --brand: #22d3ee;
    --accent: #60a5fa;
    --ok: #34d399;
    --text: #e5e7eb;
    --sub: #94a3b8;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    height: 100%;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Arial, sans-serif;
    background: linear-gradient(180deg, #0b1220, #0f172a 60%, #0b1220);
    color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; border-radius: 14px; }

.wrap { max-width: 1180px; margin: auto; padding: 24px; }
.grid { display: grid; gap: 22px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 18px; border-radius: 14px;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #041317; font-weight: 800;
    box-shadow: 0 8px 30px rgba(34, 211, 238, .25);
    transition: .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 36px rgba(96, 165, 250, .35); }
.btn.outline { background: transparent; color: var(--text); border: 1px solid #23324a; }
.whatsapp { filter: drop-shadow(0 10px 22px rgba(16, 185, 129, .35)); }

/* Layout: Hero */
.hero { padding: 64px 0; }
.hero h1 { font-size: clamp(28px, 4vw, 54px); line-height: 1.05; margin: 0 0 12px; }
.hero p { color: var(--sub); font-size: clamp(16px, 2vw, 20px); max-width: 820px; }
.cols { grid-template-columns: 1.2fr .8fr; }

/* Components: KPI */
.kpis { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: 28px; }
.kpi {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(148, 163, 184, .12);
    border-radius: 18px; padding: 18px; text-align: center;
}
.kpi .v { font-size: 28px; font-weight: 800; color: #a7f3d0; }

/* Sections */
.section { padding: 32px 0; }
.title { display: flex; align-items: end; justify-content: space-between; margin-bottom: 16px; }
.title h2 { font-size: clamp(22px, 3vw, 34px); margin: 0; }

/* Cards & Products */
.cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
    background: var(--card);
    border: 1px solid rgba(148, 163, 184, .1);
    border-radius: 18px; padding: 18px;
    display: flex; flex-direction: column; gap: 14px;
}
.badge {
    display: inline-block;
    background: rgba(34, 211, 238, .15);
    color: #a5f3fc;
    border: 1px solid rgba(34, 211, 238, .35);
    padding: 4px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 700;
}
.price { display: flex; align-items: baseline; gap: 8px; }
.price .now { font-size: 22px; font-weight: 800; color: #e0e7ff; }
.price .old { text-decoration: line-through; color: #64748b; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 14px; }
.specs div {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(148, 163, 184, .08);
    border-radius: 12px; padding: 8px;
}
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Banner */
.banner {
    background: linear-gradient(135deg, rgba(34, 211, 238, .15), rgba(96, 165, 250, .12));
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 20px; padding: 20px;
}
.note { font-size: 13px; color: #93c5fd; }

/* Header & Footer */
header {
    position: sticky; top: 0;
    backdrop-filter: blur(10px); background: rgba(11, 18, 32, .6);
    border-bottom: 1px solid rgba(148, 163, 184, .12); z-index: 5;
}
nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.logo { font-weight: 900; letter-spacing: .5px; font-size: 18px; }

.footer { padding: 22px 0; border-top: 1px solid rgba(148, 163, 184, .12); color: var(--sub); font-size: 14px; }
.trust { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.trust span { background: #0e182a; border: 1px dashed #1c2b46; border-radius: 999px; padding: 6px 10px; }
.muted { color: var(--sub); }

@media (max-width: 920px) {
    .cols { grid-template-columns: 1fr; }
}

/* Modal */
#modal {
    position: fixed; inset: 0; display: none;
    align-items: center; justify-content: center;
    background: rgba(0, 0, 0, .55);
}
#modal-content {
    background: #0b1220; border: 1px solid #22314c;
    border-radius: 18px; padding: 18px;
    max-width: 640px; width: 92%;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
}

/* ─── Skeleton Loaders ──────────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg,
        rgba(255,255,255,.04) 25%,
        rgba(255,255,255,.08) 50%,
        rgba(255,255,255,.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 12px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    min-height: 380px;
}

.skeleton-badge {
    width: 80px;
    height: 24px;
    border-radius: 999px;
}

.skeleton-img {
    width: 100%;
    height: 180px;
}

.skeleton-title {
    width: 60%;
    height: 22px;
}

.skeleton-text {
    width: 100%;
    height: 14px;
}

.skeleton-text.short {
    width: 70%;
}

.skeleton-price {
    width: 120px;
    height: 26px;
}

/* ─── Card Entry Animation ──────────────────────────────────────── */
@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-enter {
    animation: cardEnter 0.4s ease-out forwards;
    opacity: 0;
}

/* ─── Stock Badge ───────────────────────────────────────────────── */
.badge-agotado {
    background: rgba(239, 68, 68, .15) !important;
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, .35) !important;
}

.card-agotado {
    opacity: 0.65;
}

.card-agotado img {
    filter: grayscale(40%);
}

