/* ============================================================
   HEISENBURGUER — global.css
   Dark industrial / lab aesthetic · Gold accents
   ============================================================ */

/* ---------- Variables ---------- */
:root {
    /* Brand colors */
    --gold: #c9a84c;
    --gold-light: #e8c96a;
    --gold-dark: #a07830;
    --black: #0a0a0a;
    --dark: #111111;
    --dark-2: #1a1a1a;
    --dark-3: #242424;
    --gray: #888888;
    --gray-light: #aaaaaa;
    --white: #f5f0e8;
    --white-pure: #ffffff;

    /* Legacy aliases (used in page CSS files) */
    --primary: #c9a84c;
    --primary-border: rgba(201, 168, 76, 0.2);
    --bg-dark: #0a0a0a;
    --bg-dark-alt: #1a1a1a;
    --accent-dark: #1a1a1a;
    --text-light: #f5f0e8;
    --text-muted: #aaaaaa;
    --text-dim: #666666;

    --font-display: 'Georgia', 'Times New Roman', serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --radius: 8px;
    --radius-lg: 16px;
    --transition: 0.3s ease;

    --header-h: 72px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

img {
    display: block;
    max-width: 100%;
}

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

ul {
    list-style: none;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    color: var(--white-pure);
}

/* ---------- Utilities ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gold {
    color: var(--gold);
}

.section {
    padding: 96px 0;
}

.section-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: var(--white-pure);
    margin-bottom: 16px;
}

.section-divider {
    width: 48px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto 48px;
}

/* ---------- Buttons ---------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--gold);
    color: var(--black);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    background: transparent;
    color: var(--white-pure);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition), transform var(--transition);
    text-decoration: none;
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.btn-outline-white {
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--white-pure);
}

/* ---------- Badges ---------- */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 4px;
}

.badge-primary {
    background: var(--gold);
    color: var(--black);
}

.badge-glass {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white-pure);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ---------- Tags ---------- */
.tag {
    display: inline-block;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid rgba(201, 168, 76, 0.4);
    color: var(--gold);
    border-radius: 4px;
}

/* ---------- No scrollbar ---------- */
.no-scrollbar {
    scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    transition: background var(--transition);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.header-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.header-logo-text {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white-pure);
}

/* Nav links */
.header-nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.header-nav-link {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-light);
    text-decoration: none;
    position: relative;
    transition: color var(--transition);
}

.header-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gold);
    transition: width var(--transition);
}

.header-nav-link:hover,
.header-nav-link.active {
    color: var(--white-pure);
}

.header-nav-link:hover::after,
.header-nav-link.active::after {
    width: 100%;
}

/* CTA button */
.header-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    background: var(--gold);
    color: var(--black);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background var(--transition), transform var(--transition);
}

.header-cta-btn:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}

/* Mobile menu button */
.header-mobile-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white-pure);
    cursor: pointer;
    padding: 4px;
}

.header-mobile-btn .material-symbols-outlined {
    font-size: 26px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {

    .header-nav,
    .header-cta-btn {
        display: none;
    }

    .header-mobile-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 64px 0;
    }

    .container {
        padding: 0 16px;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #0d0c08;
    border-top: 1px solid rgba(201, 168, 76, 0.15);
    padding: 72px 0 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    margin-bottom: 56px;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
        gap: 40px;
    }
}

/* Brand column */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.footer-logo-text {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white-pure);
}

.footer-description {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 50%;
    color: var(--gray);
    transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.footer-social-link:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201, 168, 76, 0.08);
}

.footer-social-link .material-symbols-outlined {
    font-size: 16px;
}

/* Columns */
.footer-column-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

/* Hours list */
.footer-hours-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-hours-list li {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--gray-light);
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-hours-list li:last-child {
    border-bottom: none;
}

/* Address */
.footer-address {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-address-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--gray-light);
    line-height: 1.6;
}

.footer-address-item .material-symbols-outlined {
    font-size: 16px;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Newsletter */
.footer-newsletter-text {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-newsletter-form {
    display: flex;
    gap: 0;
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition);
}

.footer-newsletter-form:focus-within {
    border-color: var(--gold);
}

.footer-newsletter-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    outline: none;
    padding: 11px 14px;
    font-size: 13px;
    color: var(--white-pure);
    font-family: var(--font-body);
}

.footer-newsletter-input::placeholder {
    color: var(--gray);
}

.footer-newsletter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    background: var(--gold);
    border: none;
    cursor: pointer;
    color: var(--black);
    transition: background var(--transition);
}

.footer-newsletter-btn:hover {
    background: var(--gold-light);
}

.footer-newsletter-btn .material-symbols-outlined {
    font-size: 18px;
}

/* Bottom bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--gray);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    font-size: 12px;
    color: var(--gray);
    transition: color var(--transition);
}

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

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* ============================================================
   FORM ELEMENTS (global)
   ============================================================ */
.form-input,
.form-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: var(--radius);
    padding: 11px 14px;
    font-size: 14px;
    color: var(--white-pure);
    font-family: var(--font-body);
    outline: none;
    transition: border-color var(--transition), background var(--transition);
    appearance: none;
}

.form-input::placeholder {
    color: var(--gray);
}

.form-input:focus,
.form-select:focus {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.05);
}

/* Card base */
.card {
    background: var(--dark-2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition);
}

.card:hover {
    border-color: rgba(201, 168, 76, 0.25);
    transform: translateY(-3px);
}

/* ── Cart Button (header) ── */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: var(--radius);
    color: var(--white-pure);
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.header-cart-btn:hover {
    background: rgba(201, 168, 76, 0.18);
    border-color: var(--gold);
    color: var(--gold);
}

.header-cart-btn .material-symbols-outlined {
    font-size: 22px;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--gold);
    color: var(--black);
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Ocultar badge cuando está en 0 */
.cart-badge[style*="none"] {
    display: none !important;
}

@media (max-width: 900px) {
    .header-cart-btn {
        display: flex;
        /* siempre visible en mobile */
    }
}

.dashboard-container {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
}

.admin-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
    background: var(--dark);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.admin-card {
    background: var(--dark-2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 22px;
}

.admin-actions {
    display: flex;
    gap: 16px;
    margin: 25px 0;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    font-size: 12px;
    color: var(--gray-light);
    letter-spacing: .08em;
    padding-bottom: 10px;
}

.admin-table td {
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(201, 168, 76, 0.15);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;

    /* Animación */
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.35s ease;
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--gray-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: color 0.2s, padding-left 0.2s;
    text-transform: uppercase;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--gold);
    padding-left: 1rem;
}

#page-loader {
    position: fixed;
    inset: 0;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

#loader-logo {
    width: 140px;
    animation: loader-pulse 1.5s ease-in-out infinite;
}

.loader-bar {
    width: 180px;
    height: 2px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.loader-fill {
    height: 100%;
    background: #D4AF37;
    border-radius: 2px;
    animation: loader-slide 1.5s ease-in-out infinite;
}

@keyframes loader-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(0.97);
    }
}

@keyframes loader-slide {
    0% {
        width: 0%;
        margin-left: 0;
    }

    50% {
        width: 80%;
        margin-left: 0;
    }

    100% {
        width: 0%;
        margin-left: 100%;
    }
}