@font-face {
    font-family: 'Blippo Becker Stencil';
    src: url('../blippo-becker-stencil/blippo_becker_stencil.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-color: #fcf9f2;
    --red-dark: #7b1616;
    --red-hero: #9a1616;
    --yellow-bright: #ffcc00;
    --green-box: #006847;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --orange-combo: #e67e22;
    --font-main: 'Poppins', sans-serif;
    --font-stencil: 'Blippo Becker Stencil', 'Impact', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-dark);
    overflow-x: hidden;
    width: 100%;
    min-width: 320px;
}

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

/* ==========================================================================
   Main Header
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 10px clamp(16px, 4vw, 40px);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, padding 0.3s ease;
    overflow: hidden;
}

.main-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../imagenes/fondo%20header@2x-100.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.75;
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.main-header.scrolled::before {
    opacity: 0.95;
}

.logo-link {
    display: inline-block;
    pointer-events: auto;
}

.main-logo {
    width: clamp(75px, 8vw, 105px);
    height: auto;
    transition: filter 0.35s ease, transform 0.3s ease;
    filter: brightness(0) invert(1) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
}

.main-header.scrolled .main-logo {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.header-right {
    position: absolute;
    right: clamp(16px, 4vw, 40px);
    display: flex;
    align-items: center;
    gap: clamp(10px, 2vw, 18px);
    pointer-events: auto;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    transition: color 0.3s ease;
    white-space: nowrap;
}

.phone-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.main-header.scrolled .header-phone {
    color: var(--text-dark);
}

.header-phone:hover {
    color: var(--yellow-bright);
}

.main-header.scrolled .header-phone:hover {
    color: var(--orange-combo);
}

/* Header Socials */
.header-socials {
    display: flex;
    align-items: center;
    gap: 6px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.social-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: filter 0.35s ease;
}

.main-header.scrolled .social-img {
    filter: none;
}

.social-icon:hover {
    transform: scale(1.12);
}

/* ==========================================================================
   Hero Section & Canvas Animation
   ========================================================================== */
.hero-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 520px;
    overflow: hidden;
    background-color: #000;
    background-image: url('../Hero-secuence/Comp 1_00044.webp');
    background-size: cover;
    background-position: center;
}

.hero-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.65) 100%);
    pointer-events: none;
    z-index: 10;
}

#hero-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: brightness(0.95) contrast(1.1) saturate(1.15);
}

.hero-title-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 2.5vh, 24px);
    pointer-events: none;
    z-index: 15;
    color: white;
    text-align: center;
    padding: clamp(16px, 4vw, 32px);
    background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 75%, rgba(0,0,0,0.55) 100%);
}

.hero-main-title {
    font-family: var(--font-stencil);
    font-size: clamp(2.3rem, 7vw, 5.5rem);
    font-weight: 400;
    margin: 0;
    line-height: 1.08;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    max-width: min(920px, 94vw);
    overflow-wrap: break-word;
}

.hero-btn-container {
    position: relative;
    z-index: 20;
    pointer-events: auto;
}

.btn-ordena-ahora {
    display: inline-block;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.btn-img {
    width: clamp(190px, 32vw, 320px);
    height: auto;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.4));
}

.btn-ordena-ahora:hover {
    transform: translateY(-3px) scale(1.02);
    filter: brightness(1.08);
}

.scroll-indicator {
    position: absolute;
    bottom: clamp(1rem, 3vh, 2.2rem);
    font-family: var(--font-main);
    font-size: clamp(0.78rem, 1.8vw, 0.95rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.05em;
    animation: bounce 2s infinite;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* Loading Bar */
.loading-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 20;
    transition: opacity 0.5s ease;
}

.loading-bar {
    height: 100%;
    width: 0%;
    background-color: var(--yellow-bright);
    transition: width 0.1s ease;
}

/* ==========================================================================
   Complementos Section
   ========================================================================== */
.complementos-section {
    padding: clamp(45px, 7vw, 75px) clamp(16px, 4vw, 32px);
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-stencil);
    font-size: clamp(2.3rem, 6vw, 4rem);
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: clamp(25px, 4vw, 40px);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.complementos-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(14px, 2.5vw, 24px);
    justify-items: center;
}

.complemento-item {
    text-align: center;
    width: 100%;
    max-width: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.complemento-item .img-wrapper {
    background-color: var(--yellow-bright);
    border-radius: clamp(14px, 2vw, 20px);
    padding: 12px;
    margin-bottom: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: clamp(110px, 16vw, 135px);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.complemento-item:hover .img-wrapper {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.complemento-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.complemento-item p {
    font-weight: 700;
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    line-height: 1.25;
}

/* ==========================================================================
   Combos & Precios Section
   ========================================================================== */
.combos-section {
    padding: clamp(35px, 5vw, 65px) clamp(16px, 4vw, 32px);
    max-width: 1200px;
    margin: 0 auto;
}

.combos-title {
    text-align: center;
    text-transform: uppercase;
}

.combos-container {
    display: flex;
    gap: clamp(20px, 3vw, 30px);
    align-items: stretch;
}

.combos-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 3vw, 30px);
}

.combo-card {
    border-radius: clamp(14px, 2vw, 20px);
    padding: clamp(20px, 3.5vw, 30px);
    position: relative;
    color: white;
    display: flex;
    flex-direction: column;
    min-height: 250px;
    flex: 1;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.combo-master {
    background: #faa300 url('../imagenes/combo-master@2x.png') no-repeat center center / cover;
}

.combo-medium {
    background: #840303 url('../imagenes/combo%20premium@2x.png') no-repeat center center / cover;
}

.combo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    color: var(--red-dark);
    padding: clamp(6px, 1.5vw, 10px) clamp(14px, 2.5vw, 22px);
    border-radius: 30px;
    margin-bottom: 16px;
    font-weight: 900;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: fit-content;
    max-width: 100%;
    gap: 12px;
    position: relative;
    z-index: 3;
}

.combo-header h3 {
    font-family: var(--font-stencil);
    font-size: clamp(1.2rem, 2.4vw, 1.8rem);
    font-weight: 400;
    white-space: nowrap;
    margin-right: 6px;
}

.price-badge-img img {
    height: clamp(30px, 3.5vw, 42px);
    width: auto;
    display: block;
}

.combo-list {
    list-style: disc inside;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    line-height: 1.65;
    position: relative;
    z-index: 2;
}

.combo-img {
    position: absolute;
    bottom: 12px;
    right: 15px;
    width: clamp(130px, 17vw, 200px);
    height: auto;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.35));
    pointer-events: none;
    z-index: 1;
}

.combo-master .combo-img {
    width: clamp(145px, 19vw, 230px);
}

/* Right Green Box */
.combos-right {
    flex: 1;
    background-color: var(--green-box);
    border-radius: clamp(14px, 2vw, 20px);
    padding: clamp(24px, 4vw, 42px);
    color: white;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.green-box-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: clamp(20px, 3vw, 30px);
    line-height: 1.2;
}

.price-list {
    list-style: none;
    margin-bottom: 25px;
}

.price-list li, .coca-item {
    display: flex;
    align-items: center;
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    font-weight: 700;
    margin-bottom: 14px;
}

.item-name {
    white-space: nowrap;
}

.dots {
    flex-grow: 1;
    border-bottom: 3px dotted white;
    margin: 0 clamp(8px, 1.5vw, 12px);
    min-width: 12px;
    position: relative;
    top: -4px;
}

.price {
    white-space: nowrap;
}

.coca-cola-prices {
    margin-bottom: clamp(20px, 3vw, 35px);
}

.btn-ordenar-container {
    text-align: center;
    margin-top: auto;
    padding-top: 10px;
}

.btn-secondary {
    display: inline-block;
    background-color: var(--yellow-bright);
    color: black;
    padding: clamp(12px, 2vw, 16px) clamp(30px, 5vw, 55px);
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    font-weight: 900;
    text-decoration: none;
    border-radius: 30px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   "Pídela bien fría" Section
   ========================================================================== */
.fria-section {
    background-color: #000;
    color: white;
    padding: 0 clamp(16px, 4vw, 32px);
    margin-top: clamp(60px, 9vw, 100px);
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.fria-content {
    display: flex;
    align-items: flex-end;
    gap: clamp(20px, 4vw, 50px);
    max-width: 1000px;
    width: 100%;
    justify-content: space-between;
}

.title-fria {
    font-size: clamp(2.3rem, 5.5vw, 4rem);
    font-weight: 900;
    margin-bottom: clamp(20px, 4vw, 40px);
    line-height: 1.12;
}

.coca-bottles-container {
    display: flex;
    gap: clamp(12px, 2vw, 24px);
    align-items: flex-end;
}

.coca-bottle {
    max-height: clamp(260px, 32vw, 350px);
    width: auto;
    margin-top: -80px;
    margin-bottom: 0;
    position: relative;
    z-index: 10;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--red-dark);
    color: white;
}

.footer-top {
    padding: clamp(35px, 5vw, 50px) clamp(16px, 4vw, 32px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(25px, 4vw, 50px);
    flex-wrap: wrap;
}

.location {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.icon-pin {
    width: clamp(32px, 4vw, 40px);
    height: clamp(32px, 4vw, 40px);
    flex-shrink: 0;
}

.address strong {
    display: block;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.address span {
    font-size: clamp(0.9rem, 1.6vw, 1rem);
    opacity: 0.9;
}

.footer-socials {
    display: flex;
    gap: clamp(12px, 2vw, 16px);
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    margin-right: 8px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.footer-phone:hover {
    color: var(--yellow-bright);
}

.footer-socials .social-icon {
    width: 44px;
    height: 44px;
}

.footer-socials .social-img {
    width: 28px;
    height: 28px;
}

.footer-bottom {
    background-color: #5c0f0f;
    text-align: center;
    padding: 15px clamp(16px, 3vw, 24px);
    font-size: clamp(0.8rem, 1.6vw, 0.9rem);
    opacity: 0.85;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablets and below (<= 992px) */
@media (max-width: 992px) {
    .combos-container {
        flex-direction: column;
    }

    .complementos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .complementos-grid .complemento-item:last-child {
        grid-column: 2 / 3;
    }

    .combo-card {
        padding-bottom: 25px;
    }

    .combo-img {
        position: static;
        display: block;
        margin: 12px auto 0;
        max-width: 170px;
        width: 100%;
    }

    .combo-master .combo-img {
        max-width: 200px;
    }
}

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
    .main-header {
        padding: 8px 16px;
        justify-content: space-between;
    }

    .main-logo {
        max-width: 70px;
    }

    .header-right {
        position: static;
        right: auto;
        gap: 12px;
    }

    .header-phone {
        padding: 6px;
    }

    .header-phone span {
        display: none;
    }

    .header-phone .phone-icon {
        width: 22px;
        height: 22px;
    }

    .header-socials .social-icon {
        width: 36px;
        height: 36px;
    }

    .header-socials .social-img {
        width: 24px;
        height: 24px;
    }

    .hero-title-overlay {
        gap: 16px;
        padding: 20px 16px;
    }

    .hero-main-title {
        font-size: clamp(2.2rem, 9vw, 3.8rem);
    }

    .btn-img {
        width: clamp(200px, 60vw, 270px);
    }

    .fria-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
        padding-top: 35px;
    }

    .title-fria {
        margin-bottom: 5px;
    }

    .coca-bottle {
        margin-top: 0;
        max-height: clamp(220px, 45vw, 290px);
    }

    .footer-top {
        flex-direction: column;
        gap: 22px;
        text-align: center;
    }

    .location {
        flex-direction: column;
        gap: 8px;
    }

    .footer-socials {
        flex-direction: row;
        gap: 12px;
    }

    .footer-phone {
        margin-right: 4px;
    }
}

/* Small Phones (<= 520px) */
@media (max-width: 520px) {
    .complementos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 12px;
    }

    .complementos-grid .complemento-item:last-child {
        grid-column: 1 / -1;
        max-width: 150px;
    }

    .combo-header {
        border-radius: 18px;
        padding: 6px 12px;
        gap: 8px;
    }

    .combo-header h3 {
        font-size: 1.25rem;
    }

    .price-badge-img img {
        height: 32px;
    }

    .combos-right {
        padding: 20px 16px;
    }

    .item-name, .price {
        font-size: 1.05rem;
    }

    .dots {
        margin: 0 6px;
    }

    .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 13px 20px;
    }
}

/* Extra small devices (<= 360px) */
@media (max-width: 360px) {
    .main-logo {
        max-width: 60px;
    }

    .header-right {
        gap: 8px;
    }

    .header-socials .social-icon {
        width: 32px;
        height: 32px;
    }

    .header-socials .social-img {
        width: 20px;
        height: 20px;
    }

    .hero-main-title {
        font-size: 2rem;
    }
}
