:root {
    --bg-color: #0b0b0b;
    --card-bg: #141414;
    --gold: #d4af37;
    --gold-light: #f3d675;
    --white: #ffffff;
    --gray-text: #a0a0a0;
    --border-color: #262626;
    --font-main: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--white);
    line-height: 1.5;
    padding-top: 107px; /* Suma de la barra superior (32px) y la cabecera (75px) */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 92%;
    max-width: 1280px;
    margin: 0 auto;
}

/* BARRA SUPERIOR */
.top-announcement-bar {
    background-color: var(--gold);
    color: #000000;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 0;
    text-align: center;
    border-bottom: 1px solid #000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    overflow: hidden;
    height: 32px;
}

.announcement-slider {
    display: flex;
    justify-content: center;
    gap: 50px;
    animation: ticker 18s linear infinite;
    white-space: nowrap;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* CABECERA PRINCIPAL */
.main-header {
    background-color: #000000;
    position: fixed;
    top: 32px;
    left: 0;
    width: 100%;
    z-index: 1050;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
    gap: 20px;
}

/* LOGO + MARCA */
.logo-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 52px;
    width: auto;
    display: block;
    mix-blend-mode: screen;
}

.brand-name {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #ffffff;
    line-height: 0.85;
    display: flex;
    flex-direction: column;
}

.brand-name span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    margin-top: 5px;
}

/* NAVEGACIÓN */
.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu > ul {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff !important;
    transition: color 0.3s ease;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-menu a i {
    font-size: 10px;
    color: var(--gold);
}

.nav-menu a:hover {
    color: var(--gold) !important;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #121212;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    border: 1px solid var(--border-color);
    display: none;
    flex-direction: column;
    padding: 10px 0;
    z-index: 100;
}

.dropdown-content a {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    color: var(--gray-text) !important;
}

.dropdown-content a:hover {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--gold) !important;
}

.dropdown:hover .dropdown-content {
    display: flex;
}

/* MEGA MENÚ */
.mega-content {
    display: none;
    flex-direction: row;
    min-width: 640px;
    padding: 25px 30px;
    gap: 40px;
}

.dropdown.mega:hover .mega-content {
    display: flex;
}

.mega-col {
    display: flex;
    flex-direction: column;
    min-width: 130px;
}

.mega-col h5 {
    color: var(--gold);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.mega-col a {
    padding: 6px 0;
    font-size: 13px;
    color: var(--gray-text) !important;
}

.mega-col a:hover {
    color: var(--gold) !important;
}

/* SECTOR DERECHO */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-club {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    padding: 7px 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    white-space: nowrap;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-club:hover {
    background: var(--gold);
    color: #000;
}

.icon-btn, .cart-btn {
    background: none !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 18px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover, .cart-btn:hover {
    color: var(--gold) !important;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: var(--gold);
    color: #000;
    font-size: 10px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 22px;
    cursor: pointer;
}

/* HERO SECTION */
.hero-slider {
    height: 80vh;
    min-height: 500px;
    position: relative;
}

.hero-slide {
    height: 100%;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 650px;
}

.hero-tag {
    display: inline-block;
    background-color: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 4px 10px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: 1px;
    color: #ffffff;
}

.hero-content p {
    font-size: 16px;
    color: var(--gray-text);
    margin-bottom: 30px;
}

.cta-btn {
    display: inline-block;
    background-color: var(--gold);
    border: 2px solid var(--gold);
    color: #000000;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background-color: transparent;
    color: var(--gold);
}

/* CONFIANZA */
.features-bar {
    background-color: #121212;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 25px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    font-size: 32px;
    color: var(--gold);
}

.feature-item h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
    color: #ffffff;
}

.feature-item p {
    font-size: 13px;
    color: var(--gray-text);
}

/* TÍTULOS DE SECCIÓN */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title.split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    text-align: left;
}

.section-title h2.brands-title {
    font-size: 20px;
    white-space: nowrap;
    margin-bottom: 10px;
    text-align: center;
    width: 100%;
}

.brands-banner {
    max-width: 500px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 30px auto;
}

.section-title p {
    color: var(--gray-text);
    font-size: 15px;
}

.link-arrow {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gold) !important;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.link-arrow:hover {
    gap: 12px;
}

/* CATEGORÍAS */
.categories-section {
    padding: 90px 0 20px 0;
    background-color: var(--bg-color);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}

.category-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 30px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.category-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--gold);
}

.category-card span {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* PRODUCTOS */
.products-section {
    padding: 90px 0;
    background-color: var(--bg-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #333;
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    z-index: 10;
}

.product-badge.gold {
    background-color: var(--gold);
    color: #000;
}

.product-img {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: rgba(212, 175, 55, 0.5);
    border-bottom: 1px solid var(--border-color);
    background: radial-gradient(circle at 30% 20%, #1c1c1c, #0d0d0d);
}

.combo-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    color: #000;
    border-bottom: 1px solid var(--border-color);
}

.combo-1 { background: linear-gradient(135deg, var(--gold-light), var(--gold)); }
.combo-2 { background: linear-gradient(135deg, #e8c766, #b8912a); }
.combo-3 { background: linear-gradient(135deg, #f3d675, #ad841f); }

.product-info {
    padding: 20px;
    text-align: center;
}

.product-category {
    font-size: 11px;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 6px;
}

.product-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.combo-tags {
    font-size: 12px;
    color: var(--gray-text);
    margin-bottom: 12px;
}

.product-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.price-sale {
    font-size: 18px;
    font-weight: 800;
    color: var(--gold);
}

.price-regular {
    font-size: 13px;
    color: var(--gray-text);
    text-decoration: line-through;
}

.add-to-cart-btn {
    width: 100%;
    background-color: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    padding: 10px 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    background-color: var(--gold);
    border-color: var(--gold);
    color: #000;
}

/* COMBOS */
.combos-section {
    padding: 20px 0 90px 0;
    background-color: var(--bg-color);
}

.combos-grid {
display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.combo-card {
  background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    position: relative;
    width: 450px;
    max-width: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.combo-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

/* BANNER DESTACADO */
.highlight-banner {
    background-color: #121212;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 70px 0;
}

.highlight-content {
    text-align: center;
    max-width: 720px;
}

.highlight-content h2 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 15px;
    color: #fff;
}

/* BLOG */
.blog-section {
    padding: 90px 0;
    background-color: var(--bg-color);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    display: block;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.blog-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    color: var(--gold);
    background: radial-gradient(circle at 70% 30%, #1c1c1c, #0d0d0d);
    border-bottom: 1px solid var(--border-color);
}

.blog-tag {
    display: block;
    font-size: 11px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 18px 20px 8px 20px;
}

.blog-card h3 {
    font-size: 15px;
    font-weight: 700;
    padding: 0 20px 20px 20px;
    color: #fff;
    line-height: 1.4;
}

/* EMBAJADORES */
.ambassadors-section {
    padding: 90px 0;
    background-color: #121212;
    border-top: 1px solid var(--border-color);
}

.ambassadors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.ambassador-card {
    text-align: center;
}

.ambassador-img {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 54px;
    color: var(--gold);
    background: linear-gradient(160deg, #1a1a1a, #050505);
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.ambassador-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.ambassador-card p {
    font-size: 13px;
    color: var(--gray-text);
}

/* FOOTER */
.main-footer {
    background-color: #070707;
    border-top: 1px solid var(--border-color);
    padding: 70px 0 20px 0;
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand .footer-logo {
    height: 52px;
    margin-bottom: 15px;
    mix-blend-mode: screen;
}

.footer-col p {
    font-size: 14px;
    color: var(--gray-text);
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background-color: #161616;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--gold);
    border-color: var(--gold);
    color: #000;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 14px;
    color: var(--gray-text);
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--gold);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    background-color: #161616;
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    color: var(--white);
    font-size: 14px;
    outline: none;
}

.newsletter-form button {
    background-color: var(--gold);
    border: none;
    color: #000;
    font-weight: 700;
    padding: 12px;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 1px;
    transition: opacity 0.2s ease;
}

.newsletter-form button:hover {
    opacity: 0.9;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 4% 0 4%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 11px;
    color: var(--gray-text);
    text-align: center;
}

.payment-icons {
    display: flex;
    gap: 14px;
    font-size: 24px;
    color: var(--gray-text);
}

@media (max-width: 992px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 107px;
        left: 0;
        width: 100%;
        height: calc(100vh - 107px);
        background-color: #000;
        overflow-y: auto;
        padding: 20px;
        z-index: 1040;
    }
    .nav-menu.active { display: block; }
    .nav-menu > ul { flex-direction: column; gap: 0; }
    .nav-menu > ul > li { border-bottom: 1px solid var(--border-color); }
    .dropdown-content, .mega-content { display: none; position: static; border: none; box-shadow: none; min-width: 0; }
    .dropdown.active .dropdown-content,
    .dropdown.active .mega-content { display: flex; }
    .mega-content { flex-direction: column; padding: 10px 0 10px 15px; gap: 10px; }
    .features-grid { grid-template-columns: 1fr; gap: 20px; }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 30px; }
    .hero-content h1 { font-size: 38px; }
    .mobile-menu-toggle { display: block; }
    .section-title.split { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
    .btn-club { display: none; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
.brands-card-full {
    background-color: #0b0b0b;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: 100%;
    margin-bottom: 20px;
    padding: 0;
    overflow: hidden;
}

.brands-card-full .brands-banner {
    width: 100%;
    max-width: none;
    height: auto;
    display: block;
    transform: scale(1.02); /* Amplía mínimamente la imagen para cubrir todo el borde */
    margin: 0 auto;
}
.section-title.split {
    justify-content: center;
}

.section-title h2.brands-title {
    text-align: center;
    width: 100%;
    white-space: normal;
}
categories-grid {
    perspective: 1000px;
}

.flip-card {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    height: 160px;
    perspective: 1000px;
}

.flip-card:hover {
    transform: none !important;
    border-color: transparent !important;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 4px;
}

.flip-card-front {
    gap: 15px;
}

.flip-card-back {
    transform: rotateY(180deg);
    border-color: var(--gold);
}

.flip-card-back h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.flip-card-back p {
    font-size: 12px;
    color: var(--gray-text);
    line-height: 1.3;
}
/* --- ESTILOS DE TARJETA DE PRODUCTO (Versión Alta/Vertical) --- */

.products-grid {
    /* Aumentamos el número de columnas para que no queden gigantes al hacerlas más altas */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.product-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Bordes un poco más redondeados */
    padding: 0; /* Quitamos el padding general para controlar las secciones */
    display: flex;
    flex-direction: column; /* Ordenamos de arriba hacia abajo */
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    height: 100%; /* Para que todas las tarjetas se estiren igual en la grilla */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-color: var(--gold);
}

/* Contenedor de la imagen (parte superior) */
.product-img {
    width: 100%;
    height: 200px; /* Aumentamos la altura para que sea alta */
    background-color: #000; /* Fondo negro por si la imagen no llena */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.product-img img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain; /* Mantiene la proporción de la imagen sin deformarla */
    transition: transform 0.3s;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

/* Contenedor de la información (parte inferior) */
.product-info {
    padding: 15px;
    flex-grow: 1; /* Hace que esta área ocupe el espacio restante */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Separa el título del botón */
}

.product-category {
    font-size: 11px;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: block;
}

.product-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-price {
    margin-top: auto; /* Empuja el precio hacia abajo si el título es corto */
    margin-bottom: 15px;
}

.price-sale {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
}

.add-to-cart-btn {
    width: 100%;
    padding: 10px;
    background-color: var(--gold);
    color: #000;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-cart-btn:hover {
    background-color: #e6bf00; /* Un tono más oscuro de dorado al pasar el mouse */
}

/* Etiqueta (Badge) */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #fff;
    color: #000;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 10;
}

.product-badge.gold {
    background-color: var(--gold);
    color: #000;
}
.catalog-logo {
    display: block;
    max-height: 55px;
    width: auto;
    margin: 0 auto 15px auto;
}

.catalog-heading {
    color: var(--gold);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin: 50px 0 25px 0;
}

.catalog-page {
    padding-top: 50px;
}

.catalog-page .section-title {
    margin-bottom: 30px;
}

.catalog-page .catalog-heading:first-of-type {
    margin-top: 0;
}

.nav-menu a.current {
    color: var(--gold);
}
.catalog-back-btn {
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.catalog-back-btn:hover {
    background-color: var(--gold);
    color: #000;
}
.catalog-page-body {
    padding-top: 75px;
}

.catalog-page-body .main-header {
    top: 0;
}
.products-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.products-grid .product-card {
    width: 380px;
    max-width: 100%;
}
@media (max-width: 768px) {
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}
/* ============================================================
   CATÁLOGO REDISEÑADO + PROMOCIONES  (agregado en la mejora)
   ============================================================ */

/* Encabezado del catálogo */
.catalog-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(11,11,11,1)), radial-gradient(circle at 50% 0%, #1c1c1c, #0b0b0b);
    padding: 55px 0 35px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.catalog-hero h1 {
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.catalog-hero > .container > p {
    color: var(--gray-text);
    font-size: 15px;
    margin-bottom: 28px;
}

/* Buscador */
.catalog-search {
    position: relative;
    max-width: 420px;
    margin: 0 auto 28px auto;
}

.catalog-search i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-text);
    font-size: 15px;
}

.catalog-search input {
    width: 100%;
    padding: 14px 18px 14px 46px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: #fff;
    font-size: 15px;
    outline: none;
    font-family: var(--font-main);
    transition: border-color 0.3s ease;
}

.catalog-search input:focus {
    border-color: var(--gold);
}

/* Filtros por categoría (chips) */
.catalog-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.filter-chip {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--gray-text);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font-main);
}

.filter-chip:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.filter-chip.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #000;
}

/* Grilla del catálogo */
.catalog-section {
    padding: 45px 0 80px 0;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 24px;
}

/* Aseguramos que las tarjetas del catálogo se comporten como flex-column */
.catalog-grid .product-card {
    display: flex;
    flex-direction: column;
    width: auto;
    max-width: none;
}

/* Etiquetas de sabor */
.flavor-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin: 10px 0 4px 0;
}

.flavor-tag {
    border: 1px solid var(--border-color);
    color: var(--gray-text);
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 10.5px;
    letter-spacing: 0.3px;
}

/* Botón WhatsApp dentro de la tarjeta */
.wsp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px;
    background: #25d366;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    border-radius: 6px;
    transition: background 0.25s ease, transform 0.2s ease;
}

.wsp-btn:hover {
    background: #1fb855;
    transform: translateY(-2px);
    color: #fff;
}

/* Badge de promoción / descuento */
.product-badge.promo {
    background: #e63946;
    color: #fff;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(230,57,70,0.4);
}

/* Precio anterior tachado (promos) */
.product-price .price-regular {
    font-size: 14px;
    color: var(--gray-text);
    text-decoration: line-through;
    margin-right: 8px;
}

@media (max-width: 600px) {
    .catalog-hero h1 { font-size: 30px; }
    .catalog-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
}

/* ============================================================
   PANEL DE ADMINISTRACIÓN REDISEÑADO
   ============================================================ */
.admin-body {
    padding-top: 0;
    background: #0b0b0b;
    color: #fff;
    font-family: var(--font-main);
}

.admin-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px 80px 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-bottom: 22px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.admin-header h1 {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
}

.admin-sub {
    font-size: 13px;
    color: var(--gray-text);
}

.admin-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Botones */
.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    font-family: var(--font-main);
}
.admin-btn.gold { background: var(--gold); color: #000; }
.admin-btn.gold:hover { background: var(--gold-light); }
.admin-btn.gold.saved { background: #4CAF50; color: #fff; }
.admin-btn.ghost { background: transparent; border-color: var(--border-color); color: #fff; }
.admin-btn.ghost:hover { border-color: var(--gold); color: var(--gold); }
.admin-btn.danger { background: #e63946; color: #fff; }
.admin-btn.danger:hover { background: #c92d3a; }
.admin-btn.danger-ghost { background: transparent; border-color: #5a2a2f; color: #ff6b6b; }
.admin-btn.danger-ghost:hover { background: #e63946; color: #fff; border-color: #e63946; }
.admin-btn.small { padding: 8px 12px; font-size: 12px; }

/* Ayuda */
.admin-help {
    background: #141414;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--gold);
    border-radius: 8px;
    padding: 18px 22px;
    margin-bottom: 28px;
}
.admin-help strong { color: var(--gold); font-size: 14px; }
.admin-help ul { margin: 10px 0 0 0; padding: 0; }
.admin-help li { font-size: 13px; color: var(--gray-text); margin-bottom: 6px; list-style: none; }
.admin-help li b { color: #fff; }

/* Tarjetas */
.admin-card {
    background: #141414;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 34px;
}
.add-card { border-color: var(--gold); }
.admin-card-title { color: var(--gold); font-size: 16px; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }

/* Formulario agregar */
.add-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 12px; color: var(--gray-text); font-weight: 600; }
.field label .opt { color: #666; font-weight: 400; font-style: italic; }
.field input[type="text"],
.field input[type="number"] {
    padding: 10px 12px;
    background: #000;
    border: 1px solid var(--border-color);
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-family: var(--font-main);
    outline: none;
    transition: border-color 0.2s ease;
}
.field input:focus { border-color: var(--gold); }
.field input[type="number"] { color: var(--gold); font-weight: 700; }
.field input[type="file"] { font-size: 12px; color: var(--gray-text); padding: 6px 0; }
.field.checks { flex-direction: row; align-items: center; gap: 18px; }
.field-submit { justify-content: flex-end; }
.check {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 13px; color: #fff; cursor: pointer; user-select: none;
}
.check input { width: 16px; height: 16px; accent-color: var(--gold); cursor: pointer; }

/* Cabecera de la lista */
.admin-list-header {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 10px; margin-bottom: 18px;
}
.admin-list-header h2 { font-size: 18px; color: #fff; display: flex; align-items: center; gap: 8px; }
.admin-hint { font-size: 12px; color: var(--gray-text); }

/* Tarjeta de edición */
.admin-products { display: flex; flex-direction: column; gap: 14px; }
.edit-card {
    background: #141414;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    display: grid;
    grid-template-columns: auto 90px 1fr auto;
    gap: 16px;
    align-items: center;
}
.edit-card.sortable-ghost { opacity: 0.4; border-color: var(--gold); }

.drag-handle { color: #555; cursor: grab; font-size: 18px; padding: 0 4px; }
.drag-handle:hover { color: var(--gold); }

.edit-photo { position: relative; width: 90px; height: 90px; }
.edit-photo img {
    width: 90px; height: 90px; object-fit: contain;
    background: #000; border-radius: 8px; border: 1px solid var(--border-color);
}
.remove-photo {
    position: absolute; top: -8px; right: -8px;
    background: #e63946; color: #fff; border-radius: 50%;
    width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 11px;
}
.remove-photo input { display: none; }
.remove-photo.active { background: #333; color: #ff6b6b; }

.edit-fields { display: flex; flex-direction: column; gap: 10px; }
.edit-fields .row { display: flex; gap: 12px; flex-wrap: wrap; }
.edit-fields .field { flex: 1; min-width: 120px; }
.edit-fields .field-grow { flex: 1 1 100%; }
.checks-row { gap: 22px; padding-top: 2px; }

.edit-actions { display: flex; flex-direction: column; gap: 8px; }

@media (max-width: 820px) {
    .add-form { grid-template-columns: 1fr 1fr; }
    .edit-card { grid-template-columns: 1fr; }
    .drag-handle { display: none; }
    .edit-photo { margin: 0 auto; }
    .edit-actions { flex-direction: row; }
    .edit-actions .admin-btn { flex: 1; justify-content: center; }
}
@media (max-width: 500px) {
    .add-form { grid-template-columns: 1fr; }
}

/* ============================================================
   CARRITO + BOTONES DE COMPRA  (agregado)
   ============================================================ */

/* Botones de accion en las tarjetas de producto */
.card-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}
.btn-buy {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 12px;
    background: var(--gold);
    color: #000;
    border: 1px solid var(--gold);
    border-radius: 6px;
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}
.btn-buy:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-add {
    width: 46px;
    flex: 0 0 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-add:hover { background: rgba(212,175,55,0.14); }
.btn-add.added { background: #25d366; border-color: #25d366; color: #fff; }

/* Icono de carrito en el header */
.cart-toggle {
    position: relative;
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
    flex-shrink: 0;
}
.cart-toggle:hover { color: var(--gold); }
.cart-count {
    position: absolute;
    top: -2px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: var(--gold);
    color: #000;
    font-size: 11px;
    font-weight: 800;
    font-family: var(--font-main);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: transform 0.2s ease;
}
.cart-count.has-items { transform: scale(1); }

/* Overlay */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 2000;
}
.cart-overlay.open { opacity: 1; visibility: visible; }

/* Panel lateral */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 90vw;
    height: 100%;
    background: #111;
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 40px rgba(0,0,0,0.5);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(.4,0,.2,1);
    z-index: 2001;
    display: flex;
    flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }

.cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}
.cart-head h3 { font-size: 17px; color: #fff; display: flex; align-items: center; gap: 10px; }
.cart-head h3 i { color: var(--gold); }
.cart-close {
    background: none; border: none; color: var(--gray-text);
    font-size: 20px; cursor: pointer; transition: color 0.2s ease;
}
.cart-close:hover { color: #fff; }

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 10px 16px;
}

/* Item del carrito */
.cart-item {
    display: grid;
    grid-template-columns: 62px 1fr auto;
    gap: 12px;
    padding: 14px 4px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}
.ci-img {
    width: 62px; height: 62px;
    background: #000; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; border: 1px solid var(--border-color);
}
.ci-img img { max-width: 90%; max-height: 90%; object-fit: contain; }
.ci-title { font-size: 13.5px; font-weight: 600; color: #fff; margin: 0 0 3px; line-height: 1.3; }
.ci-price { font-size: 12px; color: var(--gray-text); margin: 0 0 8px; }
.ci-qty { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--border-color); border-radius: 6px; overflow: hidden; }
.ci-qty button {
    width: 28px; height: 28px; background: #1c1c1c; color: var(--gold);
    border: none; font-size: 16px; cursor: pointer; line-height: 1;
    transition: background 0.2s ease;
}
.ci-qty button:hover { background: #262626; }
.ci-qty span { min-width: 30px; text-align: center; font-size: 13px; font-weight: 700; color: #fff; }
.ci-right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; height: 100%; }
.ci-remove { background: none; border: none; color: #ff5c5c; font-size: 14px; cursor: pointer; opacity: 0.7; transition: opacity 0.2s ease; }
.ci-remove:hover { opacity: 1; }
.ci-subtotal { font-size: 14px; font-weight: 800; color: var(--gold); }

/* Estado vacio */
.cart-empty {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    padding: 40px;
    color: var(--gray-text);
}
.cart-empty i { font-size: 46px; color: #333; margin-bottom: 18px; }
.cart-empty p { font-size: 16px; color: #fff; font-weight: 600; margin: 0 0 6px; }
.cart-empty span { font-size: 13px; }
.cart-drawer.is-empty .cart-items { display: none; }
.cart-drawer.is-empty .cart-empty { display: flex; }
.cart-drawer.is-empty .cart-foot { opacity: 0.45; pointer-events: none; }

/* Pie: direccion + total + enviar */
.cart-foot {
    flex-shrink: 0;
    padding: 18px 22px 22px;
    border-top: 1px solid var(--border-color);
    background: #0d0d0d;
}
.cart-addr-label { font-size: 12.5px; color: var(--gray-text); display: block; margin-bottom: 7px; }
.cart-addr-label i { color: var(--gold); margin-right: 4px; }
.cart-addr-label span { color: #666; }
.cart-addr {
    width: 100%;
    padding: 11px 13px;
    background: #000;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-family: var(--font-main);
    outline: none;
    margin-bottom: 16px;
    transition: border-color 0.2s ease;
}
.cart-addr:focus { border-color: var(--gold); }
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
}
.cart-total span { font-size: 14px; color: var(--gray-text); text-transform: uppercase; letter-spacing: 1px; }
.cart-total-value { font-size: 24px; font-weight: 800; color: var(--gold); }
.cart-send {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px;
    background: #25d366;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 14.5px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}
.cart-send i { font-size: 19px; }
.cart-send:hover { background: #1fb855; transform: translateY(-2px); }
.cart-clear {
    width: 100%;
    background: none;
    border: none;
    color: var(--gray-text);
    font-size: 12.5px;
    padding: 12px 0 2px;
    cursor: pointer;
    transition: color 0.2s ease;
}
.cart-clear:hover { color: #ff5c5c; }

/* Toast de confirmacion */
.cart-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translate(-50%, 30px);
    background: #1c1c1c;
    color: #fff;
    border: 1px solid var(--gold);
    padding: 13px 22px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    z-index: 2100;
}
.cart-toast i { color: #25d366; margin-right: 6px; }
.cart-toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* El boton flotante de WhatsApp se corre para no chocar con el carrito en mobile */
@media (max-width: 480px) {
    .cart-drawer { width: 100%; max-width: 100%; }
    .btn-buy { font-size: 11.5px; padding: 11px 8px; }
}

/* ============================================================
   FIX MEGA-MENÚ: panel centrado, contenido y en grilla pareja
   ============================================================ */
.header-container { position: relative; }
.dropdown.mega { position: static; }
.dropdown.mega .dropdown-content.mega-content {
    left: 50%;
    transform: translateX(-50%);
    width: min(1060px, 95vw);
    max-width: 95vw;
    display: none;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px 28px;
    padding: 28px 32px;
    box-sizing: border-box;
}
.dropdown.mega:hover .dropdown-content.mega-content { display: grid; }
.mega-col { min-width: 0; }
.mega-col h5 { margin-bottom: 12px; }
.mega-col a { padding: 5px 0; line-height: 1.35; }

@media (max-width: 992px) {
    /* En mobile el mega-menú vuelve a columna simple dentro del menú desplegable */
    .dropdown.mega { position: relative; }
    .dropdown.mega .dropdown-content.mega-content {
        left: 0; transform: none; width: 100%; max-width: 100%;
        grid-template-columns: 1fr; gap: 6px; padding: 10px 0 10px 15px;
    }
    .dropdown.mega.active .dropdown-content.mega-content { display: grid; }
}

/* ============================================================
   PRODUCTOS AGOTADOS (sin stock)
   ============================================================ */
.product-badge.sinstock {
    background: #555;
    color: #fff;
    font-size: 11px;
    padding: 5px 11px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}
.product-card.agotado .product-img img,
.combo-card.agotado .product-img img {
    filter: grayscale(1);
    opacity: 0.55;
}
.product-card.agotado:hover { transform: none; border-color: var(--border-color); }
.btn-agotado {
    width: 100%;
    margin-top: 14px;
    padding: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #2a2a2a;
    color: #8a8a8a;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    cursor: not-allowed;
}

/* ============================================================
   RESPONSIVE MOBILE — arreglos
   ============================================================ */
@media (max-width: 560px) {
    /* Botones de compra: apilados para que no se corte el carrito */
    .card-actions { flex-direction: column; }
    .card-actions .btn-add { width: 100%; flex: 1 1 auto; height: 42px; }
    .btn-buy { font-size: 12px; padding: 11px 8px; }
    /* Logo del header un poco más chico */
    .brand-name { font-size: 26px; }
}
