/* =========================================
   CINEMATIC PACKAGES STYLES
   ========================================= */

:root {
    --pkg-gold: #e7b65c;
    --pkg-black: #080808;
    --pkg-card-bg: #141414;
    --pkg-border: rgba(255,255,255,0.1);
    --pkg-text-muted: #b0b0b0;
    --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
}

/* Section Container */
.cine-pkg-section {
    position: relative;
    background-color: var(--pkg-black);
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    color: #fff;
    padding: 100px 0 !important;
}

.relative-z { position: relative; z-index: 5; }

/* Titles */
.cine-title {
    font-family: 'Outfit', sans-serif; /* Ensure you have this font or use sans-serif */
    font-size: 3rem;
    color: #fff;
    margin-bottom: 15px;
}
.cine-subtitle {
    font-family: 'Outfit', sans-serif;
    color: var(--pkg-gold);
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}
.gold-separator { width: 60px; height: 2px; background-color: var(--pkg-gold); margin-bottom: 25px; }
.cine-desc { color: var(--pkg-text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* --- CARD DESIGN --- */
.cine-card {
    background: var(--pkg-card-bg);
    border: 1px solid var(--pkg-border);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.7);
    
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.cine-card:hover {
    transform: translateY(-5px);
    border-color: rgba(231, 182, 92, 0.4);
    box-shadow: 0 20px 50px -10px rgba(231, 182, 92, 0.15);
}

/* Ribbon */
.offer-ribbon {
    position: absolute;
    top: 15px; right: -30px;
    transform: rotate(45deg);
    background: linear-gradient(135deg, var(--pkg-gold) 0%, #d4a040 100%);
    width: 120px;
    text-align: center;
    padding: 5px 0;
    z-index: 10;
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}
.offer-ribbon span { color: #000; font-weight: 800; font-size: 0.75rem; }

/* Body */
.card-body-cine { padding: 25px; flex: 1; display: flex; flex-direction: column; }

.pkg-name { font-family: 'Outfit', sans-serif; font-size: 1.8rem; margin: 0; color: #fff; line-height: 1.2; }
.pkg-oneliner { 
    font-size: 1rem;
    color: var(--pkg-text-muted);
    margin-top: 1rem;
    line-height: 1.5;
    min-height: 6rem;
 }

/* Duration Badge */
.pkg-duration-badge {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #fff;
    display: inline-block;
    align-self: flex-start;
}

/* Price */
.pkg-price-stack { margin-top: auto; padding-top: 15px;}
.new-price-medium { 
    font-size: 1.8rem; font-weight: 700; font-family: 'Outfit', sans-serif; 
    background: linear-gradient(135deg, #fff 30%, var(--pkg-gold) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* Divider */
.pkg-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 15px 0; }

/* Promo inside Card/Modal */
.promo-box {
    display: flex; justify-content: space-between; align-items: center;
    background: linear-gradient(90deg, rgba(231, 182, 92, 0.15) 0%, rgba(231, 182, 92, 0.05) 100%);
    padding: 12px 16px; border-radius: 8px; border-left: 3px solid var(--pkg-gold);
    margin-top: 15px;
}
.promo-label { color: var(--pkg-gold); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; }
.promo-strong { color: #fff; font-weight: 700; }

/* View Details Toggle */
.view-more-btn {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: var(--pkg-gold);
    font-size: 0.9rem;
    padding: 10px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    margin-top: 15px;
}
.view-more-btn:hover { background: rgba(255,255,255,0.05); color: #fff; border-color: #fff; }

/* Main CTA */
.btn-pkg {
    display: block; width: 100%; padding: 12px 0; text-align: center;
    border-radius: 8px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; font-size: 1rem; transition: all 0.3s ease; text-decoration: none;
}
.btn-fill {
    background: var(--pkg-gold); color: #000; border: 1px solid var(--pkg-gold);
}
.btn-fill:hover {
    background: #fff; border-color: #fff; transform: translateY(-2px);
}

/* --- API DESCRIPTION STYLES (Inside Modal) --- */
.pkg-section-title { font-size: 1.5rem; text-transform: uppercase; color: #fff; margin-bottom: 15px; font-weight: 700; }

/* This styles the HTML coming from the Database */
.pkg-api-description {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.6;
    text-align: left;
}
.pkg-api-description p { margin-bottom: 10px; }
.pkg-api-description ul { list-style: none; padding-left: 0; margin-top: 10px; }
.pkg-api-description li { 
    margin-bottom: 8px; 
    position: relative; 
    padding-left: 25px; 
    color: #e0e0e0;
}
/* Add custom gold bullet point */
.pkg-api-description li::before {
    content: '✓';
    color: var(--pkg-gold);
    position: absolute;
    left: 0;
    font-weight: bold;
}
.pkg-api-description strong { color: #fff; font-weight: 600; }

/* --- SWIPER --- */
.packages-swiper { padding: 40px 20px 60px !important; }
.swiper-pagination-bullet { background: #fff; opacity: 0.5; }
.swiper-pagination-bullet-active { background: var(--pkg-gold); opacity: 1; }
.cine-nav-next, .cine-nav-prev { color: var(--pkg-gold); }

/* --- MODAL --- */
.cine-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
}
.cine-modal-overlay.active { opacity: 1; visibility: visible; }

.cine-modal-content {
    background: #141414;
    border: 1px solid var(--pkg-gold);
    box-shadow: 0 0 50px rgba(231, 182, 92, 0.2);
    width: 90%; max-width: 600px;
    border-radius: 16px;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s var(--ease-smooth);
    display: flex; flex-direction: column;
    max-height: 85vh; /* Keep it within viewport */
}
.cine-modal-overlay.active .cine-modal-content { transform: translateY(0) scale(1); }

.cine-modal-close {
    position: absolute; top: 15px; right: 15px;
    background: transparent; border: none; color: #fff; font-size: 1.2rem;
    cursor: pointer; z-index: 10;
}
.cine-modal-body {
    padding: 30px;
    overflow-y: auto; /* Scroll content */
    flex: 1;
}
.cine-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: #0f0f0f;
    border-radius: 0 0 16px 16px;
}

/* Card & Modal Styles */
.cine-pkg-section { background-color: #080808; padding: 80px 0; position: relative; }
.cine-title { font-size: 2.5rem; color: #fff; margin-bottom: 10px; font-weight: 700; }
.cine-subtitle { color: #e7b65c; letter-spacing: 2px; font-size: 0.9rem; font-weight: 600; display: block; }
.gold-separator { width: 50px; height: 3px; background: #e7b65c; margin-bottom: 30px; }

/* Card */
.cine-card {
    background: #141414; border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; overflow: hidden; transition: transform 0.3s;
    
}
.cine-card:hover { transform: translateY(-5px); border-color: rgba(231,182,92,0.4); }
.card-body-cine { padding: 25px; height: 100%; min-height: 25rem; }

/* Text */
.pkg-name { font-size: 1.6rem; color: #fff; margin: 5px 0; font-weight: 700; }
.new-price-medium { font-size: 2.2rem; color: #e7b65c; font-weight: 700; }

/* Ribbon */
.offer-ribbon {
    position: absolute; top: 15px; right: -30px; transform: rotate(45deg);
    background: #e7b65c; width: 120px; text-align: center; font-size: 0.7rem; font-weight: 800; color: #000;
}

/* Modal API Description Styles */
.pkg-api-description ul { list-style: none; padding: 0; margin-top: 15px; }
.pkg-api-description li { 
    position: relative; padding-left: 25px; margin-bottom: 8px; color: #ccc; font-size: 1rem; 
}
.pkg-api-description li::before {
    content: '✓'; color: #e7b65c; position: absolute; left: 0; font-weight: bold;
}

/* Modal Overlay */
.cine-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: 0.3s;
}
.cine-modal-overlay.active { opacity: 1; visibility: visible; }
.cine-modal-content {
    background: #111; border: 1px solid #e7b65c; width: 90%; max-width: 600px;
    border-radius: 10px; max-height: 80vh; overflow: hidden; display: flex; flex-direction: column;
}
.cine-modal-body { padding: 30px; overflow-y: auto; color: #ddd; }
.cine-modal-footer { padding: 20px; background: #000; text-align: center; }
.cine-modal-close { position: absolute; top: 15px; right: 15px; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* Buttons */
.view-more-btn {
    width: 100%; background: rgba(255,255,255,0.05); color: #e7b65c; border: 1px solid rgba(255,255,255,0.2);
    padding: 10px; border-radius: 6px; margin-top: 15px; transition: 0.3s;
}
.view-more-btn:hover { background: #e7b65c; color: #000; }
.btn-pkg { background: #e7b65c; color: #000; padding: 10px 30px; border-radius: 5px; text-decoration: none; font-weight: bold; display: block; }