/* ==================== VARIABLES PREMIUM ==================== */
:root {
    --ux-primary: #ff5a5f;
    --ux-secondary: #001158;
    /* Azul Banco Chile para consistencia */
    --ux-gradient: linear-gradient(135deg, #ff5a5f 0%, #ff7b7e 100%);
    --ux-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --ux-shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --ux-shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
    --radius-premium: 24px;
}

/* ==================== HERO SECTION ENHANCED ==================== */
.hero {
    position: relative;
    height: 75vh !important;
    min-height: 550px !important;
    background: url('../images_sitio/hero/banner_sitio_1.jpeg') center/cover no-repeat !important;
    background-attachment: fixed !important;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 17, 88, 0.6) 0%, rgba(255, 90, 95, 0.3) 100%);
    z-index: 1;
}

.hero>div {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.hero h1 {
    font-weight: 800 !important;
    letter-spacing: -1px;
    margin-bottom: 1.5rem !important;
    animation: fadeInDown 1s ease-out;
}

.hero .lead {
    font-size: 1.5rem !important;
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: 2.5rem !important;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

/* ==================== PRICING CARDS PREMIUM ==================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.pricing-card {
    background: #fff;
    border-radius: var(--radius-premium);
    padding: 45px 35px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #f0f0f0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--ux-shadow-lg);
}

.pricing-card--featured {
    border: 2px solid var(--ux-primary);
    transform: scale(1.05);
    z-index: 5;
}

.pricing-card--featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.badge-popular {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ux-primary);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(255, 90, 95, 0.4);
}

.plan-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ux-secondary);
    margin-bottom: 20px;
}

.btn-plan {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.pricing-card:not(.pricing-card--featured) .btn-plan {
    background: #f8f9fa;
    color: var(--ux-secondary);
    border: 2px solid #e0e0e0;
}

.pricing-card--featured .btn-plan {
    background: var(--ux-primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 90, 95, 0.3);
}

.btn-plan:hover {
    background: var(--ux-secondary);
    color: #fff;
    border-color: var(--ux-secondary);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== RESPONSIVE ADJUSTMENTS ==================== */
@media (max-width: 768px) {
    .pricing-card--featured {
        transform: none;
    }

    .pricing-card--featured:hover {
        transform: translateY(-10px);
    }

    .hero {
        height: auto !important;
        min-height: 85vh !important;
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    .hero h1 {
        font-size: 2.2rem !important;
        margin-top: 20px !important;
    }
    
    .hero .lead {
        font-size: 1.25rem !important;
        margin-bottom: 2rem !important;
    }
}