/* Base styles */
body {
    background-color: #F4F3FB;
    /* brand-lavender */
    color: #2A2555;
    /* brand-deep */
    overflow-x: hidden;
}

/* Navbar contrast and navigation states */
.nav-link {
    position: relative;
    color: #F4F3FB;
}

.nav-link:hover,
.nav-link.is-active {
    color: #DCD9F3;
}

.nav-link.is-active {
    font-weight: 700;
}

.nav-link:not(.mobile-nav-link)::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -0.35rem;
    left: 0;
    height: 2px;
    background-color: #DCD9F3;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.nav-link:not(.mobile-nav-link):hover::after,
.nav-link:not(.mobile-nav-link).is-active::after {
    transform: scaleX(1);
}

.mobile-nav-link {
    transition: color 0.2s ease, background-color 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    background-color: #493E81;
}

/* SPA Routing: Ocultar vistas inactivas */
.page-view {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.page-view.active {
    display: block;
    opacity: 1;
}

/* Lightbox Custom Styles */
#lightbox {
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#lightbox.active {
    opacity: 1;
    pointer-events: all;
}

#lightbox img {
    max-height: 85vh;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#lightbox.active img {
    transform: scale(1);
}

/* Animaciones para Hover en Cards */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(73, 62, 129, 0.2);
}

/* Botón Custom Hover */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.btn-primary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #6B63B5;
    border-radius: 0.5rem;
    z-index: -2;
}

.btn-primary::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #493E81;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: -1;
    border-radius: 0.5rem;
}

.btn-primary:hover::before {
    width: 100%;
}

/* Acordeón FAQ */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    /* Suficiente espacio para el texto */
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Ocultar scrollbar pero permitir scroll (estética) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F4F3FB;
}

::-webkit-scrollbar-thumb {
    background: #6B63B5;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #493E81;
}