:root {
    --main-color: #1EADBD;
    --hover-effect: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --text-glow: 0 0 15px currentColor;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #C2714A;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    line-height: 1.6;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.container {
    position: relative;
    min-height: 100vh;
    padding: 20px;
    overflow: hidden;
}

.background-block {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 75vh;
    background: #C2714A url('images/fondo.png') center/cover;
    z-index: 0;
}

.logo-block {
    width: 600px;
    height: 300px;
    margin: 0 auto 20px;
    overflow: hidden;
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

.logo-block img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
}

.content {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-top: 25vh;
    padding-bottom: 50px;
}

.name {
    font-size: 2.8rem;
    margin: 15px 0;
    animation: textGlow 2s ease infinite alternate;
    letter-spacing: 2px;
}

.slogan {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: slideIn 1s ease-out;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.btn {
    padding: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid var(--main-color);
    border-radius: 15px;
    color: white;
    text-decoration: none;
    transition: var(--hover-effect);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.1rem;
    cursor: pointer;
}

.btn:hover {
    background: var(--main-color);
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);
}

.btn img {
    width: 28px;
    height: 28px;
    filter: drop-shadow(var(--text-glow));
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    grid-column: 1 / -1;
    background: rgba(0, 0, 0, 0.3);
    /* Slightly darker background for content */
    border-radius: 10px;
    margin-top: -10px;
    /* Pull closer to button */
    /* opacity: 0; handled by show-content now */
}

.show-content {
    max-height: 2000px;
    /* Allow enough height */
    padding: 20px;
    margin-bottom: 20px;
    opacity: 1;
}

.qr-code {
    width: 180px;
    margin: 15px auto;
    display: block;
}

.social-share {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
}

.social-share img {
    width: 45px;
    transition: transform 0.3s ease;
}

.social-share a:hover img {
    transform: scale(1.15);
}

/* Payment UI Improvements */
.payment-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    overflow: hidden;
    color: #333;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.payment-header {
    background: var(--main-color);
    color: white;
    padding: 10px 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.payment-body {
    padding: 15px;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.payment-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.copy-btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.copy-btn-icon:hover {
    transform: scale(1.2);
}

.titular {
    text-align: center;
    font-weight: bold;
    padding: 10px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border-radius: 8px;
}

/* WhatsApp Form Styles */
.wa-form-container {
    text-align: left;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 12px;
    color: #333;
}

.wa-form-container label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
    color: #444;
}

.wa-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    font-family: inherit;
}

.wa-input:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 2px rgba(30, 173, 189, 0.2);
}

.btn-send-wa {
    width: 100%;
    padding: 12px;
    background: #25D366;
    /* WhatsApp Green */
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-send-wa:hover {
    background: #20BA56;
}


.btn.full-width {
    grid-column: 1 / -1;
    width: 100%;
}

@media (max-width: 768px) {
    .button-grid {
        grid-template-columns: 1fr;
    }

    .name {
        font-size: 2.2rem;
    }

    .slogan {
        font-size: 1.1rem;
    }

    .logo-block {
        width: 100%;
        height: auto;
        max-width: 600px;
        max-height: 300px;
    }

    .btn {
        padding: 15px;
        font-size: 1rem;
    }

    /* Ocultar Productos Web en mobile */
    .productos-web {
        display: none;
    }
}

@media (min-width: 769px) {

    /* Ocultar Llamar y Productos en desktop */
    .llamar,
    .catalogo {
        display: none;
    }

    /* Mostrar Productos Web en desktop */
    .productos-web {
        display: flex;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes textGlow {
    from {
        text-shadow: 0 0 10px transparent;
    }

    to {
        text-shadow: var(--text-glow);
    }
}

@keyframes slideIn {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 0.9;
    }
}

/* ===== CARRITO WHATSAPP ===== */
.cart-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 12px;
    color: #333;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.cart-item:last-of-type {
    border-bottom: none;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-desc {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.cart-item-price {
    color: var(--main-color);
    font-weight: bold;
    font-size: 0.9rem;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--main-color);
    background: transparent;
    color: var(--main-color);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: var(--main-color);
    color: white;
}

.qty-value {
    font-weight: bold;
    font-size: 1.1rem;
    min-width: 20px;
    text-align: center;
}

/* ===== GALERÍA ===== */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    flex: 1 1 140px;
    min-width: 0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s;
    display: block;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

.gallery-caption {
    padding: 6px 8px;
    font-size: 0.8rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    color: white;
}

.gallery-download-btn {
    display: block;
    text-align: center;
    padding: 5px;
    font-size: 0.75rem;
    color: var(--main-color);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.9);
    transition: background 0.2s;
}

.gallery-download-btn:hover {
    background: rgba(255, 255, 255, 1);
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: -10px;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10000;
    line-height: 1;
}

.lightbox-desc {
    color: white;
    margin-top: 12px;
    font-size: 1rem;
    opacity: 0.9;
}

.lightbox-download-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    background: var(--main-color);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: bold;
    transition: opacity 0.2s;
}

.lightbox-download-link:hover {
    opacity: 0.85;
    color: white;
}

/* ===== FLYER OVERLAY ===== */
.flyer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.flyer-overlay.active {
    display: flex;
}

.flyer-content {
    position: relative;
    max-width: 95vw;
    max-height: 90vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flyer-content img {
    max-width: 95vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.flyer-close {
    position: absolute;
    top: -40px;
    right: -10px;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10000;
    line-height: 1;
}

.flyer-action-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 30px;
    background: var(--main-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.flyer-action-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
    color: white;
}

/* ===== VIDEO OVERLAY ===== */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.video-overlay.active {
    display: flex;
}

.video-content {
    position: relative;
    width: 90vw;
    max-width: 900px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-content iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.video-close {
    position: absolute;
    top: -40px;
    right: -10px;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10000;
    line-height: 1;
}

.video-action-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 30px;
    background: var(--main-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.video-action-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
    color: white;
}