/**
 * Modern Design System - Glassmorphism & Premium Aesthetics
 * Inspired by mlrsistemas.com.ar & modern UI trends
 */

:root {
    /* Refined Color Palette */
    --p-h: 210;
    --p-s: 70%;
    --p-l: 50%;

    --primary-modern: hsl(var(--p-h), var(--p-s), var(--p-l));
    --primary-light: hsl(var(--p-h), var(--p-s), 95%);
    --primary-dark: hsl(var(--p-h), var(--p-s), 30%);

    --accent-modern: hsl(160, 80%, 45%);
    /* Emerald/Cyan accent */
    --accent-glow: hsla(160, 80%, 45%, 0.3);

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

    --dark-glass-bg: rgba(15, 23, 42, 0.8);
    --dark-glass-border: rgba(255, 255, 255, 0.1);
}

/* Base Enhancements */
body {
    background-color: #f0f4f8;
    background-image: radial-gradient(at 0% 0%, hsla(210, 100%, 93%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(160, 100%, 93%, 1) 0, transparent 50%);
    background-attachment: fixed;
}

/* Glassmorphism Utility */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.25);
}

.dark-glass {
    background: var(--dark-glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--dark-glass-border);
    color: white;
}

/* Navbar Modernization */
#menu.navbar {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

#menu.scrolled {
    padding: 0.6rem 0;
    box-shadow: var(--glass-shadow);
    background: rgba(255, 255, 255, 0.95) !important;
}

#menu.scrolled .navbar-brand img {
    max-height: 40px;
    transition: all 0.3s ease;
}

/* Accordion Modernization */
.accordion-button:not(.collapsed) {
    background-color: transparent;
    color: var(--primary-modern);
    box-shadow: none;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232A7BBE'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-item:last-of-type {
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 20px;
}

/* Hero Section Refinement */
#intro {
    padding: 100px 0;
    background: transparent;
}

#intro h1 {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-modern));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 850;
    letter-spacing: -1px;
}

/* Section Dividers */
.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 40px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-modern);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Buttons */
.btn-modern {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-modern-primary {
    background: linear-gradient(135deg, var(--primary-modern), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(42, 123, 190, 0.4);
}

.btn-modern-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(42, 123, 190, 0.6);
    color: white;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Pricing Plans (Planes) */
.pricing-card {
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.pricing-card .gem-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
    display: inline-block;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

.pricing-card .badge {
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.pricing-card .old-price {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 1.1rem;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 850;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.pricing-card .abono {
    font-weight: 700;
    color: var(--primary-modern);
    margin-bottom: 2rem;
}

.pricing-card .features-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2.5rem;
    text-align: left;
}

.pricing-card .features-list li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    color: #475569;
}

.pricing-card .features-list li i {
    color: var(--accent-modern);
    margin-right: 12px;
    font-size: 1.2rem;
}

/* Clients Section */
.client-item {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s ease;
    padding: 20px;
}

.client-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.client-img-wrapper {
    background: white;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
}

/* Modern Footer Enhanced */
#footer_bg {
    background: var(--footer-bg) !important;
    border-top: 1px solid var(--dark-glass-border);
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 12px;
}

.footer-link:hover {
    color: white;
    transform: translateX(5px);
}

.social-pill {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.social-pill:hover {
    background: var(--primary-modern);
    transform: translateY(-3px);
    color: white;
}