/* ============================================
   KRAFT · Cocina & Bar — Estilos
   Diseño oscuro premium con carrusel
   ============================================ */

:root {
    --bg:        #0b0b0b;
    --bg-soft:   #121212;
    --gold:      #d4af37;
    --gold-soft: #b8942e;
    --white:     #ffffff;
    --gray:      #9a9a9a;
    --gray-dim:  #6f6f6f;
    --line:      rgba(255,255,255,0.12);
    --max:       1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Roboto', sans-serif;
    background: var(--bg);
    color: var(--white);
    overflow-x: hidden;
    /* textura sutil de fondo */
    background-image:
        radial-gradient(circle at 20% 10%, rgba(212,175,55,0.05), transparent 40%),
        radial-gradient(circle at 80% 90%, rgba(212,175,55,0.04), transparent 40%);
    background-attachment: fixed;
}

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

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(11,11,11,0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    transition: background .3s;
}

.header-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 16px 28px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

/* Hamburguesa */
.menu-toggle {
    justify-self: start;
    background: none;
    border: none;
    cursor: pointer;
    width: 34px; height: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
}
.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--white);
    transition: .3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(12px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-12px) rotate(-45deg); }

/* Marca / Logo */
.brand {
    justify-self: center;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}
.brand-main {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 30px;
    letter-spacing: 4px;
    color: var(--white);
}
.brand-accent { color: var(--gold); }
.brand-sub {
    font-family: 'Oswald', sans-serif;
    font-size: 9px;
    letter-spacing: 5px;
    color: var(--gray);
    margin-top: 3px;
}

/* Lado derecho */
.header-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 16px;
}
.social-ic {
    color: var(--gray);
    font-size: 14px;
    transition: color .25s, transform .25s;
}
.social-ic:hover { color: var(--gold); transform: translateY(-2px); }
.lang {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--gray);
    padding-left: 12px;
    border-left: 1px solid var(--line);
}

/* Menú lateral */
.side-nav {
    position: fixed;
    top: 0; left: -300px;
    width: 280px; height: 100vh;
    background: var(--bg-soft);
    border-right: 1px solid var(--line);
    padding: 100px 40px;
    display: flex;
    flex-direction: column;
    gap: 26px;
    transition: left .35s ease;
    z-index: 999;
}
.side-nav.open { left: 0; }
.side-nav a {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    letter-spacing: 2px;
    color: var(--gray);
    transition: color .25s, padding-left .25s;
}
.side-nav a:hover { color: var(--gold); padding-left: 8px; }
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transition: .35s;
    z-index: 998;
}
.nav-overlay.open { opacity: 1; visibility: visible; }

/* ============================================
   SECCIONES SHOWCASE
   ============================================ */
main { padding-top: 70px; }

.showcase {
    max-width: var(--max);
    margin: 0 auto;
    padding: 70px 28px 90px;
}
.bar-section { border-top: 1px solid var(--line); }

/* Título de sección con líneas laterales */
.section-title {
    text-align: center;
    margin-bottom: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
}
.section-title span {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 52px;
    letter-spacing: 6px;
    color: var(--gold);
}
.section-title::before,
.section-title::after {
    content: "";
    height: 1px;
    width: 90px;
    background: linear-gradient(90deg, transparent, var(--gold-soft));
}
.section-title::after { background: linear-gradient(90deg, var(--gold-soft), transparent); }

/* ============================================
   CATEGORÍAS CIRCULARES
   ============================================ */
.category-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}
.category {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 90px;
}
.cat-circle {
    width: 62px; height: 62px;
    border-radius: 50%;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--gray);
    transition: all .3s;
}
.category:hover .cat-circle {
    border-color: var(--gold-soft);
    color: var(--gold);
    transform: translateY(-4px);
}
.cat-label {
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--gray-dim);
    text-align: center;
    transition: color .3s;
    text-transform: uppercase;
}
.category.active .cat-circle {
    background: radial-gradient(circle, rgba(212,175,55,0.18), transparent);
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 22px rgba(212,175,55,0.35);
}
.category.active .cat-label { color: var(--gold); }

/* ============================================
   CARRUSEL
   ============================================ */
.carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 380px;
}
.products {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%;
    max-width: 860px;
    align-items: stretch;
}

/* Tarjeta de producto */
.product {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
    animation: fadeInUp .5s ease both;
}
.product-img-wrap {
    position: relative;
    width: 100%;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
/* halo detrás de la imagen */
.product-img-wrap::before {
    content: "";
    position: absolute;
    width: 240px; height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,175,55,0.14), transparent 65%);
    filter: blur(6px);
}
.product-img-wrap img {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    filter: drop-shadow(0 18px 26px rgba(0,0,0,0.7));
}
/* respaldo si la imagen no existe */
.product-fallback {
    position: relative;
    width: 200px; height: 200px;
    border-radius: 14px;
    background: linear-gradient(160deg, #1c1c1c, #0e0e0e);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--gold-soft);
}
.product-fallback i { font-size: 46px; }
.product-fallback span {
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--gray-dim);
}

.product-name {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 17px;
    letter-spacing: 1px;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 8px;
}
.product-desc {
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--gray);
    max-width: 260px;
    margin-bottom: 14px;
    font-weight: 300;
}
.product-price {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 26px;
    letter-spacing: 2px;
    color: var(--gold);
}
.product-price small {
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    color: var(--gray-dim);
    letter-spacing: 1px;
}

/* Flechas de navegación */
.nav-arrow {
    flex-shrink: 0;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    color: var(--gray);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
    z-index: 5;
}
.nav-arrow:hover {
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 18px rgba(212,175,55,0.3);
}
.nav-arrow:active { transform: scale(0.92); }

/* Puntos de paginación */
.dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}
.dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--gray-dim);
    border: none;
    cursor: pointer;
    transition: all .3s;
    opacity: .5;
}
.dot.active {
    background: var(--gold);
    opacity: 1;
    transform: scale(1.25);
    box-shadow: 0 0 10px rgba(212,175,55,0.6);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 50px 28px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}
.footer-social {
    display: flex;
    gap: 22px;
}
.footer-social a {
    color: var(--gray);
    font-size: 16px;
    transition: color .25s, transform .25s;
}
.footer-social a:hover { color: var(--gold); transform: translateY(-3px); }
.footer-brand .brand-main { font-size: 34px; }
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
}
.footer-nav a {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--gray);
    transition: color .25s;
}
.footer-nav a:hover { color: var(--gold); }
.footer-copy {
    font-size: 11px;
    color: var(--gray-dim);
    letter-spacing: 1px;
    margin-top: 6px;
}

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 820px) {
    .section-title span { font-size: 42px; }
    .section-title::before,
    .section-title::after { width: 50px; }
    .category-row { gap: 26px; }
    .products { gap: 18px; }
    .product-desc { font-size: 11.5px; }
}

@media (max-width: 620px) {
    .header-inner { padding: 14px 18px; }
    .header-right { gap: 12px; }
    .lang { display: none; }
    .brand-main { font-size: 26px; }

    .showcase { padding: 50px 16px 70px; }
    .section-title span { font-size: 36px; }
    .section-title { gap: 14px; }

    /* categorías: scroll horizontal en móvil */
    .category-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 22px;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    .category-row::-webkit-scrollbar { height: 3px; }
    .category-row::-webkit-scrollbar-thumb { background: var(--gold-soft); border-radius: 3px; }
    .category { flex: 0 0 auto; }

    /* carrusel: 1 producto a la vez en móvil */
    .products { grid-template-columns: 1fr; max-width: 340px; }
    .product:nth-child(2) { display: none; } /* JS controla cuál mostrar */
    .carousel { gap: 8px; min-height: 420px; }
    .nav-arrow { width: 44px; height: 44px; font-size: 14px; }
    .product-img-wrap { height: 210px; }

    .footer-nav { gap: 16px; }
    .footer-nav a { font-size: 11px; }
}
