/* ===== TARJETA PREVIEW CSS ===== */
/* Scoped under .tarjeta-preview to avoid conflicts */

.tarjeta-preview {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    font-family: 'Inter', 'Poppins', sans-serif;
}

.tp-phone-frame {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    min-height: 500px;
    animation: tp-float 4s ease-in-out infinite;
}

.tp-bg {
    height: 200px;
    background-size: cover;
    background-position: center bottom;
    position: relative;
}

.tp-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, var(--tp-bg));
}

.tp-content {
    padding: 20px;
    text-align: center;
    position: relative;
    margin-top: -40px;
    z-index: 1;
}

.tp-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    animation: tp-float 3s ease-in-out infinite;
}

.tp-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.3));
}

.tp-name {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.tp-slogan {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 25px;
    line-height: 1.5;
}

.tp-slogan p {
    margin: 0;
}

.tp-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid var(--tp-main);
    border-radius: 12px;
    color: var(--tp-btn-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(8px);
    cursor: pointer;
    box-shadow: 0 4px 12px var(--tp-btn-shadow);
}

.tp-btn:hover {
    background: var(--tp-main);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px var(--tp-btn-shadow);
}

.tp-btn-featured {
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transform: scale(1.01);
}

.tp-btn-icon {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 0 8px currentColor);
}

@keyframes tp-float {
     0%, 100% { transform: translateY(0); }
     50% { transform: translateY(-8px); }
}

/* ================================================================
   NUEVOS ESTILOS DE BOTONES, CARRITO, FAQ, CARRUSEL Y OVERLAYS
   (copiados de tarjeta/style.css)
   ================================================================ */

/* ===== BOTONES BASE ===== */
.btn {
    padding: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid var(--accent-primary);
    border-radius: 15px;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.1rem;
    cursor: pointer;
    word-break: break-word;
}
.btn:hover {
    background: var(--accent-primary);
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3);
}
.btn img {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 0 15px currentColor);
}
.btn.btn-featured {
    background: var(--btn-featured-bg, var(--accent-primary));
    font-weight: bold;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transform: scale(1.02);
}
.btn.btn-featured:hover {
    filter: brightness(1.1);
    transform: translateY(-5px) scale(1.05);
}
.btn-has-countdown { flex-direction: column; gap: 4px; }
.btn-label-row { display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-countdown {
    font-size: 0.78em; font-weight: 500; opacity: 0.9;
    white-space: normal; display: block; width: 100%; text-align: center;
    letter-spacing: 0.5px; padding: 4px 8px; border-radius: 6px;
    background: rgba(0,0,0,0.15); transition: all 0.3s ease;
}
@keyframes shakeAttention {
    0%, 10% { transform: translateX(0); }
    1% { transform: translateX(-4px); } 2% { transform: translateX(4px); }
    3% { transform: translateX(-4px); } 4% { transform: translateX(4px); }
    5% { transform: translateX(-2px); } 6% { transform: translateX(2px); }
    7% { transform: translateX(0); }
}
.btn-expiring { animation: shakeAttention 3s ease-in-out infinite; }
.btn-expiring:hover { animation: none; }
.btn-trigger-hidden.btn { display: none !important; }

/* ===== COLLAPSIBLE ===== */
.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);
    border-radius: 10px; margin-top: -10px;
}
.show-content { max-height: 50000px; padding: 20px; margin-bottom: 20px; opacity: 1; }

/* ===== PAYMENT ===== */
.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-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); }

/* ===== WHATSAPP ===== */
.btn-send-wa { width: 100%; padding: 12px; background: #25D366; 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; }

/* ===== CARRITO ===== */
.cart-container { background: rgba(255,255,255,0.95); padding: 15px; border-radius: 12px; color: #333; max-height: 60vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.cart-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 15px; margin-bottom: 12px; border-bottom: 1px solid #eee; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.filter-btn { padding: 6px 16px; border-radius: 20px; border: 2px solid var(--accent-primary); background: transparent; color: var(--accent-primary); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.25s ease; white-space: normal; flex-shrink: 0; }
.filter-btn:hover { background: var(--accent-primary); color: white; transform: translateY(-1px); }
.filter-btn.active { background: var(--accent-primary); color: white; box-shadow: 0 3px 10px rgba(0,0,0,0.15); }
.filter-btn.active::before { content: '\2713 '; font-weight: bold; }
.cart-item { display: flex; flex-direction: column; gap: 12px; padding: 15px 0; border-bottom: 1px solid #eee; transition: opacity 0.3s ease, max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease; }
.cart-item:first-of-type { padding-top: 5px; }
.cart-item:last-of-type { border-bottom: none; padding-bottom: 0; }
.cart-item-images { display: flex; gap: 10px; width: 100%; }
.cart-item-img { flex: 1 1 0; height: 120px; object-fit: cover; border-radius: 8px; cursor: pointer; }
.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.cart-item-info { flex: 1; min-width: 0; text-align: left; }
.cart-item-desc { font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; line-height: 1.2; }
.cart-item-price { color: var(--accent-primary); 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(--accent-primary); background: transparent; color: var(--accent-primary); 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(--accent-primary); color: white; }
.qty-value { font-weight: bold; font-size: 1.1rem; min-width: 20px; text-align: center; }
.cart-item-check { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cart-check { width: 22px; height: 22px; cursor: pointer; accent-color: var(--accent-primary); }
.cart-item-hidden { display: none !important; }

/* ===== GALERIA ===== */
.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-download-btn { display: block; text-align: center; padding: 5px; font-size: 0.75rem; color: var(--accent-primary); 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-download-link { display: inline-block; margin-top: 10px; padding: 8px 20px; background: var(--accent-primary); color: white; text-decoration: none; border-radius: 20px; font-weight: bold; transition: opacity 0.2s; }
.lightbox-download-link:hover { opacity: 0.85; color: white; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: white; border: none; font-size: 2rem; padding: 10px 15px; cursor: pointer; z-index: 1001; border-radius: 5px; transition: background 0.3s; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(0,0,0,0.8); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
@media (max-width: 600px) { .lightbox-prev { left: 5px; font-size: 1.5rem; padding: 5px 10px; } .lightbox-next { right: 5px; font-size: 1.5rem; padding: 5px 10px; } }

/* ===== FLYER ===== */
.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(--accent-primary); 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 ===== */
.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(--accent-primary); 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; }

/* ===== INFRAME ===== */
.inframe-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #000; z-index: 9999; display: none; align-items: center; justify-content: center; flex-direction: column; }
.inframe-overlay.active { display: flex; }
.inframe-content { position: relative; width: 100vw; height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff; }
.inframe-content iframe { width: 100%; height: 100%; border: none; background: #fff; }
.inframe-close { position: absolute; top: 15px; right: 15px; background: rgba(0,0,0,0.6); border: none; color: white; font-size: 2rem; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; z-index: 10000; line-height: 1; display: flex; align-items: center; justify-content: center; }
.inframe-close:hover { background: rgba(0,0,0,0.8); }

/* ===== CAROUSEL ===== */
.carousel-wrapper { position: relative; display: flex; align-items: center; gap: 0; width: 100%; user-select: none; }
.carousel-track-container { overflow: hidden; width: 100%; border-radius: 12px; }
.carousel-track { display: flex; transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94); will-change: transform; }
.carousel-card { flex: 0 0 33.333%; min-width: 0; padding: 0 6px; box-sizing: border-box; }
.carousel-card-inner { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.carousel-card-inner:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.3); }
.carousel-card-media { position: relative; display: flex; align-items: stretch; }
.carousel-card-media > img { width: 100%; height: 200px; aspect-ratio: 1/1; object-fit: cover; display: block; flex: 1; min-width: 0; }
.carousel-card-icons { display: flex; flex-direction: column; gap: 6px; padding: 6px; background: rgba(0,0,0,0.15); justify-content: flex-start; flex-shrink: 0; }
.carousel-card-icons a { width: 34px; height: 34px; border-radius: 8px; background: var(--accent-primary); display: flex; align-items: center; justify-content: center; transition: transform 0.2s, box-shadow 0.2s; text-decoration: none; }
.carousel-card-icons a:hover { transform: scale(1.12); box-shadow: 0 3px 10px rgba(0,0,0,0.3); }
.carousel-card-icons a img { width: 20px; height: 20px; object-fit: contain; filter: brightness(0) invert(1); }
.carousel-card-text { padding: 10px 12px; font-size: 0.85rem; line-height: 1.4; color: var(--text-color, #fff); opacity: 0.9; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; text-overflow: ellipsis; }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--accent-primary); background: rgba(0,0,0,0.5); color: var(--accent-primary); font-size: 1.3rem; font-weight: bold; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.25s ease; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); line-height: 1; padding: 0; }
.carousel-arrow:hover { background: var(--accent-primary); color: #000; box-shadow: 0 0 15px rgba(0,212,255,0.4); }
.carousel-prev { left: -18px; }
.carousel-next { right: -18px; }
@media (max-width: 768px) { .carousel-card { flex: 0 0 100%; } .carousel-prev { left: 4px; } .carousel-next { right: 4px; } .carousel-arrow { width: 32px; height: 32px; font-size: 1.1rem; background: rgba(0,0,0,0.6); } .carousel-card-icons a { width: 30px; height: 30px; } .carousel-card-icons a img { width: 18px; height: 18px; } }

/* ===== FAQ ===== */
.faq-accordion { display: flex; flex-direction: column; gap: 10px; width: 100%; text-align: left; }
.faq-item { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; overflow: hidden; cursor: pointer; transition: all 0.3s ease; }
.faq-question-bar { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; user-select: none; color: #fff; }
.faq-question-text { font-weight: 600; font-size: 0.95rem; }
.faq-chevron { font-size: 1.2rem; transition: transform 0.35s ease; }
.faq-open .faq-chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.faq-open .faq-answer { max-height: 2000px; }
.faq-answer-inner { padding: 0 16px 14px; font-size: 0.9rem; color: rgba(255,255,255,0.85); line-height: 1.6; }
.faq-answer-body { padding-top: 10px; border-top: 1px solid transparent; transition: border-color 0.3s ease; }
.faq-action-bar { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; justify-content: center; }
.faq-action-btn { flex: 1; min-width: 100px; padding: 10px 12px; border: 1px solid var(--accent-primary); border-radius: 15px; background: rgba(255,255,255,0.15); color: #fff; backdrop-filter: blur(8px); font-weight: 600; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-size: 0.9rem; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.faq-action-btn:hover { background: var(--accent-primary); color: #000; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }

@media (max-width: 768px) { .btn { padding: 15px; font-size: 1rem; } }
