/* =========================================
   💰 Pricing Creative - Tierra y Arte Palette
   ========================================= */

/* === 🏷️ Section Background === */
.pricing-section {
    background-color: var(--art-marfil) !important;
    background-image: 
        linear-gradient(45deg, rgba(201, 162, 39, 0.05) 25%, transparent 25%, transparent 75%, rgba(201, 162, 39, 0.05) 75%, rgba(201, 162, 39, 0.05)),
        linear-gradient(45deg, rgba(201, 162, 39, 0.05) 25%, transparent 25%, transparent 75%, rgba(201, 162, 39, 0.05) 75%, rgba(201, 162, 39, 0.05));
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
    border-top: 5px solid var(--art-ocre);
    padding: 5rem 0;
}

/* === 🔽 Collapsible Header (Consistent with Future) === */
.pricing-section .collapsible-header {
    background: white !important;
    border: 3px solid var(--art-marron) !important;
    border-radius: 20px !important;
    box-shadow: 8px 8px 0px rgba(93, 64, 55, 0.15) !important;
    padding: 2rem !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    cursor: pointer;
}

.pricing-section .collapsible-header:hover {
    transform: translateY(-5px);
    box-shadow: 12px 12px 0px rgba(192, 88, 56, 0.2) !important;
    border-color: var(--art-mostaza) !important;
}

.pricing-section .collapsible-title h2 {
    color: var(--art-teja) !important;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-section .section-subtitle {
    color: var(--art-marron) !important;
    font-weight: 500;
    font-size: 1.1rem;
    opacity: 0.8;
}

.pricing-section .collapsible-indicator {
    color: white !important;
    font-size: 1.2rem;
    background: var(--art-mostaza);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--art-marron);
    transition: transform 0.4s ease;
}

.pricing-section .collapsible-header[aria-expanded="true"] .collapsible-indicator {
    transform: rotate(180deg);
    background: var(--art-teja);
}

/* === 📄 Content Wrapper === */
.pricing-content {
    max-width: 900px;
    margin: 3rem auto 0;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--art-ocre);
    box-shadow: var(--shadow-soft);
    position: relative;
}

/* Paper texture effect */
.pricing-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 10px;
    background: repeating-linear-gradient(
        45deg,
        var(--art-marfil),
        var(--art-marfil) 10px,
        var(--art-ocre) 10px,
        var(--art-ocre) 20px
    );
    border-radius: 20px 20px 0 0;
    opacity: 0.5;
}

.pricing-intro h3 {
    color: var(--art-marron);
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.pricing-intro p {
    color: #666;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* === 🧩 Factors === */
.pricing-factors {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.factor {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: var(--art-marfil);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px dashed var(--art-ocre);
    transition: all 0.3s ease;
}

.factor:hover {
    transform: translateY(-3px);
    border-style: solid;
    border-color: var(--art-teja);
    background: white;
    box-shadow: var(--shadow-soft);
}

.factor-icon {
    font-size: 1.8rem;
}

.factor span:last-child {
    font-weight: 600;
    color: var(--art-marron);
    font-size: 0.9rem;
}

/* === 🔘 CTA Button === */
.pricing-cta {
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(to right, rgba(253, 251, 247, 0), rgba(253, 251, 247, 1), rgba(253, 251, 247, 0));
    padding: 2rem 0;
}

.open-calculator-btn {
    background: var(--art-teja) !important;
    color: white !important;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem !important;
    padding: 1rem 2.5rem !important;
    border-radius: 50px !important;
    border: none !important;
    box-shadow: 0 10px 20px rgba(192, 88, 56, 0.3) !important;
    transition: all 0.3s ease !important;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.open-calculator-btn:hover {
    background: var(--art-terracota) !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 25px rgba(192, 88, 56, 0.4) !important;
}

.pricing-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--art-mostaza);
    font-weight: 600;
}

/* === 📊 Price Ranges === */
.pricing-ranges h4 {
    text-align: center;
    color: var(--art-marron);
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.pricing-ranges h4::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--art-mostaza);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.ranges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.range-card {
    background: white;
    border: 2px solid #eee;
    border-radius: 15px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.range-card:hover {
    border-color: var(--art-ocre);
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.range-size {
    font-weight: 700;
    color: var(--art-marron);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.range-dimensions {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.range-price {
    color: var(--art-teja);
    font-weight: 800;
    font-size: 1.2rem;
    font-family: 'Playfair Display', serif;
}

/* Featured Card */
.range-card.featured {
    border: 2px solid var(--art-mostaza);
    background: #fffdf5;
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(225, 173, 1, 0.15);
    z-index: 2;
}

.range-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 30px rgba(225, 173, 1, 0.25);
}

.range-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--art-mostaza);
    color: var(--art-marron);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .pricing-content {
        padding: 1.5rem;
    }
    
    .pricing-factors {
        gap: 1rem;
    }
    
    .factor {
        width: 45%;
        padding: 0.8rem;
    }
    
    .range-card.featured {
        transform: scale(1);
    }
    
    .range-card.featured:hover {
        transform: translateY(-5px);
    }
}
