@font-face {
    font-family: 'Velocraze';
    src: url('./fonts/VELOCRAZE.woff') format('woff');
    font-weight: 400;
}

@font-face {
    font-family: 'Velocraze';
    src: url('./fonts/VELOCRAZE-Thin.woff') format('woff');
    font-weight: 300;
}

@font-face {
    font-family: 'Velocraze';
    src: url('./fonts/VELOCRAZE-Bold.woff') format('woff');
    font-weight: 700;
}

/* GENERAL */
body {
    margin: 0;
    font-family: 'Velocraze', Arial, Helvetica, sans-serif;
    background: #110B21;
    color: #fff;
    position: relative;
}

.logo {
    width: 100%;
    height: auto;
    top: 20px;
    left: 20px;
    font-family: 'Velocraze', sans-serif;
    font-weight: 700;
    font-size: 25px;
    color: #f3eef8;
    margin: 5px;
    z-index: 100;
}

/* HERO */
.container {
    width: 100vw;
    background: linear-gradient(180deg, #6f3cc3, #110B21);
    border-radius: 0 0 16px 16px;
    padding: 20px;
    color: #fff;
    margin-left: calc(-50vw + 50%);
    box-sizing: border-box;

  
}

.container > * {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.warning {
    background: #38B0C7;
    color: #000;
    padding: 10px;
    border-radius: 10px;
    font-weight: bold;
    text-align: center;
    max-width: 400px;
    margin: 0 auto 15px;
}

h1,
h2,
h3 {
    text-align: center;
    font-family: 'Velocraze', sans-serif;
    font-weight: 700;
}

.subtitle {
    text-align: center;
}

/* BOTONES */
.btn {
    width: 90%;
    max-width: 250px;
    background: #CC00CC;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Velocraze', sans-serif;
    font-weight: 400;
    cursor: pointer;
    margin: 15px auto 0;
    display: block;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    transform: scale(1);
}

.btn-big {
    width: 90%;
    max-width: 300px;
    background: #CC00CC;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Velocraze', sans-serif;
    font-weight: 400;
    cursor: pointer;
    margin: 0;
    display: block;
    text-align: center;
    margin-bottom: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: scale(1);
}

.btn:hover {
    background: #8B008B;
    transform: scale(1.05);
}

.btn-big:hover {
    background: #8B008B;
    transform: scale(1.05);
}

.btn.secondary {
    background: #888;
}

/* SECCIÓN PRODUCTOS */
.products-section {
    background: #110B21;
    padding: 30px 20px;
    max-width: 1100px;
    margin: auto;
    position: relative;
}

.carousel-container {
    position: relative;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #CC00CC;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    color: #fcfcfc;
    display: none;
}

.carousel-arrow:hover {
    background: #8B008B;
}

.carousel-arrow.left {
    left: -20px;
}

.carousel-arrow.right {
    right: -20px;
}

.products-section::after {
    content: "← Swipe →";
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: #888;
    font-size: 12px;
    opacity: 0.7;
    display: none;
}
.final-section .btn {
    margin-bottom: 30px;
}

.products-section h3,
.products-text {
 
    text-align: center;
    color: #fff;
    overflow-wrap: break-word;
    word-break: break-word;
}

.products {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    margin: 25px 0;
    padding: 0 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

.product {
    background: #ffffff;
    color: #000;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    font-size: 15px;
    min-width: 280px;
    flex-shrink: 0;
    scroll-snap-align: center;
    text-decoration: none;
    display: block;
    transition: transform 0.2s ease;
}

.product:hover {
    transform: translateY(-2px);
}

.product h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 700;
}

.product img {
    width: 100%;
    max-width: 200px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.price {
    display: block;
    margin-top: 8px;
    color: #e6005c;
    font-weight: bold;
    font-size: 18px;
}

.price-old {
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
    margin-right: 8px;
}

.price-container {
    margin-top: 10px;
}

.gift-text {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.product-btn {
    background: #CC00CC;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    margin-top: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.product-btn:hover {
    background: #8B008B;
}

/* SECCIÓN FINAL */
.final-section {
    background: linear-gradient(180deg, #110B21, #260855);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    text-align: center;
    border-radius: 16px 16px 0 0;
    padding: 20px;
    box-sizing: border-box;
}

.final-section > * {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.final-section .products-text {
    color: #fff;
    margin: 0 auto;
    margin-bottom: 5px;
}

@media (max-width: 767px) {
    .products-section::after {
        display: block;
    }
    
    .container {
        padding: 5px;
    }
    
    h1 {
        font-size: 20px;
        margin: 8px 0;
    }
    
    h2 {
        font-size: 16px;
        margin: 6px 0;
    }
    
    h3 {
        font-size: 16px;
        margin: 8px 0;
    }
    
    .subtitle {
        font-size: 14px;
        margin: 5px 0;
    }
    
    .warning {
        padding: 8px;
        font-size: 12px;
        margin: 0 auto 10px;
    }
    
    .products-section {
        padding: 5px 0px;
    }
    
    .products-text {
        font-size: 14px;
        margin: 10px 0;
    }
    
    .product {
        padding: 5px;
        min-width: 140px;
    }
    
    .product h4 {
        font-size: 10px;
        margin: 0 0 3px 0;
    }
    
    .product img {
        max-width: 200px;
        height: 80px;
        margin-bottom: 3px;
    }
    
    .price {
        font-size: 11px;
        margin-top: 2px;
    }
    
    .price-old {
        font-size: 9px;
    }
    
    .gift-text {
        font-size: 8px;
        margin-top: 1px;
    }
    
    .product-btn {
        padding: 6px 12px;
        font-size: 10px;
        margin-top: 5px;
    }
    
    .final-section {
        padding: 20px 15px;
    }
    
    .final-section .products-text {
        font-size: 14px;
        margin-bottom: 15px;
    }
}

/* RESPONSIVE */
@media (min-width: 768px) {
    .products {
        display: flex;
        overflow-x: auto;
        gap: 15px;
        padding: 0 10px;
    }

    .carousel-arrow {
        display: block;
    }

    .product {
        min-width: 280px;
    }

    .btn-big {
        max-width: 450px;
        font-size: 18px;
        padding: 18px;
        margin: 15px auto;
    }
}

/* DIALOG */
dialog {
    border: none;
    border-radius: 14px;
    width: 90%;
    max-width: 360px;
    padding: 0;
    box-sizing: border-box;
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.75);
}

.dialog-content {
    padding: 20px;
    background: #fff;
    color: #000;
    border-radius: 14px;
    box-sizing: border-box;
}

.dialog-content input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.dialog-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.error {
    font-size: 13px;
    color: red;
    text-align: center;
}