*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg: #020617;
    --bg-alt: #020617;
    --sidebar-bg: #020617;
    --card-bg: rgba(15, 23, 42, 0.94);
    --card-border: rgba(148, 163, 184, 0.45);
    --accent: #38bdf8;
    --accent-soft: rgba(56, 189, 248, 0.12);
    --accent-strong: #0ea5e9;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --danger: #f97316;
    --radius-lg: 1.25rem;
    --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.9);
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent),
                radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.12), #020617);
    color: var(--text);
}

body {
    min-height: 100vh;
}

.layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    min-height: 100vh;
}

/* Sidebar */

.sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    padding: 1.5rem 1.25rem;
    background: radial-gradient(circle at top left, #111827, #020617);
    border-right: 1px solid rgba(148, 163, 184, 0.35);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: conic-gradient(from 210deg, #22c55e, #0ea5e9, #6366f1, #22c55e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #0b1220;
    font-size: 1.1rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.03em;
}

.logo-subtitle {
    font-size: 0.8rem;
    color: var(--muted);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.75rem;
}

.nav-link {
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link.active,
.nav-link:hover {
    background: rgba(37, 99, 235, 0.25);
    color: var(--text);
}

.sidebar-box {
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.25), rgba(15, 23, 42, 0.96));
    border-radius: 1rem;
    padding: 0.9rem 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    font-size: 0.85rem;
    color: var(--muted);
}

.sidebar-box h3 {
    margin: 0 0 0.35rem;
    font-size: 0.9rem;
    color: var(--text);
}

.sidebar-whatsapp {
    background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.2), rgba(15, 23, 42, 0.95));
}

.sidebar-footer {
    margin-top: auto;
    font-size: 0.75rem;
    color: #6b7280;
}

/* Main */

.main {
    padding: 1.5rem 1.8rem 1.8rem;
}

/* Hero */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
    gap: 1.8rem;
    margin-bottom: 2.2rem;
}

.hero-text h1 {
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    margin: 0 0 0.8rem;
    line-height: 1.15;
}

.hero-text h1 span {
    color: var(--accent);
}

.hero-text p {
    margin: 0 0 0.8rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.hero-badges {
    list-style: none;
    padding: 0;
    margin: 0 0 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.hero-badges li {
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.8);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.hero-note {
    font-size: 0.8rem;
    color: var(--muted);
}

/* Hero Card */

.hero-card {
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), rgba(15, 23, 42, 0.97));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.5);
    padding: 1.2rem 1.2rem;
    box-shadow: var(--shadow-soft);
}

.hero-card h2 {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
}

.hero-card p {
    margin: 0 0 0.8rem;
    font-size: 0.85rem;
    color: var(--muted);
}

label {
    font-size: 0.8rem;
    color: var(--muted);
    display: block;
    margin-bottom: 0.6rem;
}

input, select, textarea {
    width: 100%;
    border-radius: 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.55);
    background: rgba(15, 23, 42, 0.92);
    padding: 0.55rem 0.7rem;
    color: var(--text);
    font-size: 0.85rem;
    outline: none;
}

input::placeholder {
    color: #6b7280;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.65);
}

.form-note {
    font-size: 0.76rem;
    color: var(--muted);
    margin: 0.65rem 0 0;
}

/* Buttons */

.btn-primary,
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #22c55e, #0ea5e9);
    color: #0b1120;
    box-shadow: 0 16px 30px rgba(34, 197, 94, 0.32);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #e5e7eb;
    box-shadow: 0 16px 30px rgba(22, 163, 74, 0.4);
}

.btn-primary:hover,
.btn-whatsapp:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.9);
}

.btn-primary:active,
.btn-whatsapp:active {
    transform: translateY(0);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.9);
}

.full {
    width: 100%;
}

/* Sections */

.section {
    margin-bottom: 2.1rem;
}

.section-header h2 {
    margin: 0 0 0.2rem;
    font-size: 1.3rem;
}

.section-header p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.section-alt {
    background: radial-gradient(circle at top left, rgba(30, 64, 175, 0.18), rgba(15, 23, 42, 0.96));
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.4rem;
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.8);
}

/* Filters & Grid */

.filters {
    margin-top: 1.1rem;
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.filters-left {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.filter-chip {
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.55);
    background: rgba(15, 23, 42, 0.9);
    color: var(--muted);
    font-size: 0.78rem;
    cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
    background: rgba(56, 189, 248, 0.16);
    border-color: var(--accent);
    color: #e5e7eb;
}

#search-input {
    max-width: 280px;
}

/* Product grid */

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    padding: 0.9rem 0.95rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    position: relative;
    overflow: hidden;
}

.product-chip-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--muted);
}

.product-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.6);
}

.product-condition {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(22, 163, 74, 0.65);
    color: #bbf7d0;
    background: rgba(22, 163, 74, 0.15);
}

.product-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 0.1rem;
}

.product-sub {
    font-size: 0.8rem;
    color: var(--muted);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--muted);
}

.product-desc {
    font-size: 0.78rem;
    color: var(--muted);
}

.product-footer {
    margin-top: 0.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--muted);
}

/* About & Contact */

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 1.3rem;
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.bullet-list {
    list-style: none;
    padding-left: 0;
    margin: 0.2rem 0 0;
}

.bullet-list li {
    margin-bottom: 0.25rem;
    padding-left: 1.2rem;
    position: relative;
    font-size: 0.88rem;
}

.bullet-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Contact */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 1.3rem;
    margin-top: 1rem;
}

.contact-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    padding: 1.05rem 1.1rem;
    box-shadow: var(--shadow-soft);
    font-size: 0.9rem;
}

.contact-card h3 {
    margin-top: 0;
    margin-bottom: 0.4rem;
}

.contact-note {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.6rem;
}

.map-placeholder {
    border-radius: 0.9rem;
    border: 1px dashed rgba(148, 163, 184, 0.7);
    padding: 1.1rem;
    text-align: center;
    font-size: 0.84rem;
    color: var(--muted);
}

/* Footer */

.footer {
    margin-top: 1.4rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(31, 41, 55, 0.9);
    font-size: 0.78rem;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    margin-left: 0.7rem;
}

.footer-links a:hover {
    color: var(--accent);
}

/* Responsive */

@media (max-width: 1024px) {
    .layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.75rem;
        padding: 0.9rem 1.1rem;
    }
    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        margin-bottom: 0;
    }
    .sidebar-box,
    .sidebar-footer {
        display: none;
    }
    .main {
        padding: 1.1rem 1.1rem 1.4rem;
    }
    .hero {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
    }
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }
    .hero-card {
        order: -1;
    }
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .contact-grid,
    .about-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .filters {
        flex-direction: column;
        align-items: stretch;
    }
    #search-input {
        max-width: 100%;
    }
}
