/* =========================
   SCROLL GLOBAL
========================= */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* =========================
   VARIABLES
========================= */
:root {
    --bg-main: #F5F5F5;
    --banner-orange: #FFB400;
    --banner-gradient: linear-gradient(135deg, #FFB400 0%, #FF9000 100%);
    --text-dark: #2D2D2D;
    --accent-red: #E31837;
    --white: #FFFFFF;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================
   BASE
========================= */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Carter One', cursive;
    text-transform: uppercase;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================
   HEADER
========================= */
#main-header {
    background: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Carter One', cursive;
    font-size: 1.8rem;
}

.logo span {
    color: var(--accent-red);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--accent-red);
}

.burger-menu {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}

/* =========================
   SECCIONES
========================= */
.category-section {
    padding: 2rem 0 4rem;
}

/* =========================
   BANNER (ASPECT RATIO)
========================= */
.promo-banner {
    background: var(--banner-gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 3rem 10%;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    min-height: 320px;
    box-shadow: 0 10px 20px rgba(255,180,0,.3);
}

.promo-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.2) 2px, transparent 2.5px);
    background-size: 20px 20px;
    opacity: .3;
}

.banner-content {
    flex: 1;
    z-index: 2;
}

.offer-tag {
    background: var(--accent-red);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 800;
    font-size: .9rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.promo-banner h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.price-badge {
    background: var(--white);
    color: var(--text-dark);
    font-family: 'Carter One', cursive;
    font-size: 2rem;
    padding: 10px 20px;
    border-radius: 50px;
    margin-top: 1rem;
    display: inline-block;
}

/* === CONTENEDOR DE IMAGEN CON ASPECT RATIO === */
.banner-image {
    flex: 1;
    max-width: 420px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,.3));
    transition: transform .3s;
}

.promo-banner:hover img {
    transform: scale(1.05) rotate(2deg);
}

/* =========================
   PRODUCTOS
========================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform .3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card.featured {
    border: 2px solid var(--banner-orange);
}

.ribbon {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--accent-red);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: .8rem;
}

.card-header {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.card-body {
    padding: 1.5rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.description {
    font-size: .9rem;
    color: #666;
    margin-bottom: 1rem;
}

.extras {
    list-style: none;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.price {
    font-family: 'Carter One', cursive;
    font-size: 2rem;
    color: var(--accent-red);
    margin-top: auto;
}

.btn-order {
    margin-top: 1rem;
    padding: 12px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    background: var(--text-dark);
    color: white;
    font-weight: bold;
}

.btn-order:hover {
    background: var(--accent-red);
}

/* =========================
   PERSONALIZACIÓN
========================= */
.customization-section {
    background: white;
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
}

.custom-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-btn {
    padding: 10px 15px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
}

.option-btn.selected {
    background: #FFF4E0;
    border-color: var(--banner-orange);
    font-weight: bold;
}

/* =========================
   BOTONES RÁPIDOS MÓVIL
========================= */
.mobile-quick-actions {
    display: none;
}

/* =========================
   TOAST
========================= */
.toast-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-dark);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    opacity: 0;
    transition: .4s;
    z-index: 2000;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* =========================
   RESPONSIVE (ÚNICO)
========================= */
@media (max-width: 768px) {

    .promo-banner {
        flex-direction: column-reverse;
        text-align: center;
        padding: 1.5rem;
    }

    .promo-banner h2 {
        font-size: 2.5rem;
    }

    .banner-image {
        max-width: 260px;
        aspect-ratio: 1 / 1;
    }

    .custom-grid-wrapper {
        grid-template-columns: 1fr;
    }

    .burger-menu {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-quick-actions {
        display: flex;
        gap: 10px;
        padding: 12px;
        justify-content: center;
        position: sticky;
        top: 70px;
        background: white;
        z-index: 900;
        box-shadow: 0 4px 10px rgba(0,0,0,.08);
    }

    .quick-btn {
        flex: 1;
        text-align: center;
        padding: 10px;
        border-radius: 25px;
        font-weight: 700;
        text-decoration: none;
        background: var(--banner-orange);
        color: var(--text-dark);
    }

    .quick-btn.secondary {
        background: var(--text-dark);
        color: white;
    }
}
/* === FONDO POLÍGONOS === */
.polygon-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    width: 100%;  /* Asegurar ancho */
    height: 100%; /* Asegurar alto */
    display: block; /* Evita espacios inline */
}