/* =========================================
   STYLE.CSS - SUPREMACIAMC STORE
   Versión Final con Responsive & Menu Toggle
   ========================================= */

* {
    box-sizing: border-box;
}

:root {
    --bg-main: #020617;
    --bg-alt: #0b1220;
    --bg-card: #020617;
    --border-soft: #1f2937;
    --accent: #22c55e;
    --accent-soft: #16a34a;
    --accent-alt: #38bdf8;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-soft: 0 18px 40px rgba(0,0,0,0.55);
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #111827 0, #020617 46%, #000 100%);
    color: var(--text-main);
}

a {
    color: inherit;
    text-decoration: none;
}

.page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 16px 40px;
}

/* === NAVBAR === */

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(15,23,42,0.92);
    border: 1px solid rgba(55,65,81,0.9);
    box-shadow: 0 12px 35px rgba(0,0,0,0.6);
    position: sticky;
    top: 8px;
    z-index: 50;
    backdrop-filter: blur(16px);
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: .04em;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.navbar-pill {
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid #374151;
    color: var(--text-muted);
}

/* Botón Hamburguesa (oculto en PC) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #f9fafb;
    font-size: 24px;
    cursor: pointer;
    padding: 0 8px;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
}

.nav-link {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--text-muted);
    border: 1px solid transparent;
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    border-color: #374151;
    color: var(--text-main);
    background: rgba(15,23,42,0.9);
}

.nav-cta {
    padding: 6px 14px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--accent), var(--accent-alt));
    color: #022c22;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.nav-cta:hover {
    filter: brightness(1.08);
}

/* Dropdown */

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
}

.nav-dropdown-toggle:hover {
    border-color: #374151;
    color: var(--text-main);
    background: rgba(15,23,42,0.9);
}

.nav-dropdown-menu {
    position: absolute;
    right: 0;
    margin-top: 6px;
    min-width: 230px;
    background: rgba(15,23,42,0.98);
    border-radius: 14px;
    border: 1px solid #1f2937;
    box-shadow: var(--shadow-soft);
    padding: 8px 0;
    display: none;
    z-index: 60;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-item {
    display: block;
    padding: 6px 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.nav-dropdown-item span {
    display: block;
    font-size: 0.72rem;
    color: #6b7280;
}

.nav-dropdown-item:hover {
    background: rgba(15,23,42,0.9);
    color: var(--text-main);
}

/* === HERO SECTION === */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.6fr);
    gap: 22px;
    margin-top: 22px;
    margin-bottom: 26px;
}

.hero-main {
    padding: 22px 22px 20px;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at top left, rgba(34,197,94,0.13), transparent 55%),
                radial-gradient(circle at bottom right, rgba(56,189,248,0.16), transparent 55%),
                rgba(15,23,42,0.96);
    border: 1px solid rgba(55,65,81,0.9);
    box-shadow: var(--shadow-soft);
}

.hero-pre {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--accent-alt);
    margin-bottom: 6px;
}

.hero-title {
    font-size: 1.9rem;
    line-height: 1.2;
    margin: 0 0 8px;
}

.hero-highlight {
    background: linear-gradient(120deg, #f97316, #22c55e, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.hero-tag {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.7);
    background: rgba(15,23,42,0.9);
    color: #e5e7eb;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.btn-main {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    color: #022c22;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-main span.icon {
    font-size: 1rem;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    border-radius: 999px;
    border: 1px solid #374151;
    background: rgba(15,23,42,0.8);
    color: #e5e7eb;
    font-size: 0.85rem;
    cursor: pointer;
}

.btn-ghost span.icon {
    font-size: 1rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.hero-meta-item strong {
    display: block;
    color: #e5e7eb;
    font-size: 0.8rem;
}

.hero-side {
    padding: 16px 16px 14px;
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, #020617, #020617 40%, #022c22 110%);
    border: 1px solid rgba(55,65,81,0.9);
    box-shadow: var(--shadow-soft);
}

.hero-side-title {
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.hero-side-text {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.hero-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    font-size: 0.83rem;
}

.hero-list li {
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.hero-dot {
    font-size: 0.8rem;
    color: var(--accent);
    margin-top: 1px;
}

.hero-contact {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.hero-contact a {
    color: #4ade80;
    text-decoration: none;
}

.hero-contact a:hover {
    text-decoration: underline;
}

/* === STATS === */

.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-bottom: 26px;
}

.stat-card {
    padding: 9px 11px;
    border-radius: var(--radius-md);
    background: rgba(15,23,42,0.92);
    border: 1px solid #1e293b;
    font-size: 0.82rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.74rem;
}

.stat-value {
    font-weight: 600;
    margin-top: 3px;
}

/* === PLUGINS GRID === */

.section-title {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.section-subtitle {
    font-size: 0.86rem;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.plugins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.plugin-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 14px 15px 13px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 14px 35px rgba(0,0,0,0.55);
    position: relative;
    overflow: hidden;
}

.plugin-pill {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(22,163,74,0.15);
    border: 1px solid rgba(34,197,94,0.4);
    color: #bbf7d0;
}

.plugin-header {
    margin-bottom: 8px;
}

.plugin-title {
    margin: 0;
    font-size: 1.02rem;
}

.plugin-tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.plugin-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 10px;
}

.plugin-chip {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid #374151;
    color: var(--text-muted);
}

.plugin-desc {
    font-size: 0.83rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.plugin-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.price {
    font-weight: 700;
    font-size: 0.95rem;
}

.price span {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
}

.plugin-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.btn-small {
    font-size: 0.78rem;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid #334155;
    background: #020617;
    color: var(--text-main);
    cursor: pointer;
}

.btn-small.primary {
    border-color: var(--accent);
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    color: #022c22;
    font-weight: 600;
}

.btn-small.whatsapp {
    border-color: #22c55e;
    background: rgba(22,163,74,0.1);
    color: #bbf7d0;
}

.btn-small:hover {
    filter: brightness(1.07);
}

/* === GENERAL CARDS === */

.two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
    gap: 18px;
    margin-top: 18px;
}

.card {
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    border: 1px solid #1f2937;
    padding: 14px 15px 12px;
    box-shadow: 0 16px 35px rgba(0,0,0,0.5);
    font-size: 0.85rem;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1rem;
}

.steps {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step;
}

.steps li {
    margin-bottom: 8px;
    display: flex;
    gap: 8px;
}

.steps li::before {
    counter-increment: step;
    content: counter(step);
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(34,197,94,0.15);
    border: 1px solid rgba(34,197,94,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    margin-bottom: 7px;
    display: flex;
    gap: 6px;
}

.service-bullet {
    font-size: 0.8rem;
    color: var(--accent-alt);
    margin-top: 2px;
}

.badge-inline {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid #334155;
    background: rgba(15,23,42,0.9);
    font-size: 0.75rem;
    margin-top: 4px;
}

/* === INTERNAL PAGES (LAYOUT) === */

.breadcrumb {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.plugin-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr);
    gap: 18px;
    margin-top: 14px;
}

.plugin-main-card {
    padding: 18px 18px 14px;
    border-radius: var(--radius-lg);
    background: rgba(15,23,42,0.96);
    border: 1px solid rgba(55,65,81,0.9);
    box-shadow: var(--shadow-soft);
}

.plugin-header-large h1 {
    margin: 0 0 4px;
    font-size: 1.4rem;
}

.plugin-header-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.plugin-header-meta span {
    margin-right: 10px;
}

.plugin-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 12px;
}

.badge {
    font-size: 0.75rem;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid #4b5563;
    background: rgba(15,23,42,0.9);
}

.plugin-short {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* === TABS === */

.tabs {
    margin-top: 10px;
}

.tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
}

.tab-button {
    border-radius: 999px;
    border: 1px solid #374151;
    background: rgba(15,23,42,0.8);
    padding: 6px 11px;
    font-size: 0.78rem;
    cursor: pointer;
    color: var(--text-muted);
}

.tab-button.active {
    border-color: var(--accent);
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    color: #022c22;
    font-weight: 600;
}

.tab-panel {
    display: none;
    font-size: 0.85rem;
}

.tab-panel.active {
    display: block;
}

.tab-panel h3 {
    font-size: 0.95rem;
    margin-top: 0;
}

.tab-panel ul {
    margin-top: 4px;
    margin-bottom: 8px;
    padding-left: 18px;
}

code {
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 0.78rem;
    background: #020617;
    padding: 1px 5px;
    border-radius: 6px;
    border: 1px solid #1f2937;
}

/* === SIDE CARDS === */

.plugin-side-card {
    padding: 14px 14px 12px;
    border-radius: var(--radius-md);
    background: var(--bg-alt);
    border: 1px solid #1f2937;
    box-shadow: 0 16px 35px rgba(0,0,0,0.5);
    font-size: 0.85rem;
}

.plugin-price-big {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.plugin-price-big span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
    display: block;
}

.plugin-side-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.plugin-side-list {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
}

.plugin-side-list li {
    margin-bottom: 6px;
    display: flex;
    gap: 6px;
}

.plugin-side-dot {
    font-size: 0.8rem;
    color: var(--accent-alt);
    margin-top: 2px;
}

.plugin-side-footer {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* === FOOTER & CONTACT === */

.contact-strip {
    margin-top: 26px;
    padding: 10px 13px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(22,163,74,0.25), rgba(8,47,73,0.9));
    border: 1px solid rgba(74,222,128,0.7);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.85rem;
}

.contact-strip strong {
    font-size: 0.9rem;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer {
    margin-top: 22px;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* =========================================
   RESPONSIVE DESIGN (FINAL)
   ========================================= */

/* Tablets: 2 columnas de plugins */
@media (max-width: 1024px) {
    .plugins-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

/* Móviles: 1 columna, menú hamburguesa */
@media (max-width: 768px) {
    .page {
        padding-inline: 12px;
    }

    /* Hero apilado */
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-main {
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    /* Grid de una sola columna */
    .stat-row {
        grid-template-columns: 1fr;
    }

    .plugins-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .plugin-card {
        width: 100%;
    }

    .two-col,
    .plugin-layout {
        grid-template-columns: 1fr;
    }

    /* Navbar estilo Móvil */
    .navbar {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px;
    }

    .navbar-left {
        flex: 1;
    }

    /* Mostrar botón hamburguesa */
    .nav-toggle {
        display: block;
    }

    /* Ocultar menú por defecto */
    .navbar-links {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 12px;
        border-top: 1px solid #374151;
        padding-top: 12px;
    }

    /* Clase activa para JS (script.js) */
    .navbar-links.active {
        display: flex;
    }

    .nav-link,
    .nav-cta,
    .nav-dropdown {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .nav-dropdown-toggle {
        width: 100%;
        justify-content: center;
    }

    .nav-dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        background: rgba(0,0,0,0.2);
        margin-top: 0;
    }
}

/* Teléfonos pequeños */
@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    h1.hero-title {
        font-size: 1.5rem;
    }

    .btn-main,
    .btn-ghost,
    .btn-small {
        font-size: 0.85rem;
        padding: 9px 12px;
    }

    .hero-meta {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}