/* CSS Personalizado para asociacionvecinaluceda.online */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #2d3748;
    background-color: #f8fafc;
    overflow-x: hidden;
    width: 100%;
}

/* Palette Variables */
:root {
    --color-navy: #1a365d;
    --color-navy-dark: #0f2942;
    --color-accent: #3182ce;
    --color-accent-hover: #2b6cb0;
    --color-warning-custom: #d69e2e;
}

.bg-navy {
    background-color: var(--color-navy) !important;
}

.text-navy {
    color: var(--color-navy) !important;
}

.text-accent {
    color: #4299e1 !important;
}

.extra-small {
    font-size: 0.78rem;
    line-height: 1.35;
}

.btn-navy {
    background-color: #1a365d !important;
    border-color: #1a365d !important;
    color: #ffffff !important;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-navy:hover, .btn-navy:focus {
    background-color: #0f2942 !important;
    border-color: #0f2942 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(15, 41, 66, 0.25);
}

/* Navbar Sticky Behavior */
.navbar-sticky-main {
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Logo Navbar Styling */
.navbar-brand-logo {
    height: 72px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease, height 0.2s ease;
}

.navbar-brand:hover .navbar-brand-logo {
    transform: scale(1.03);
}

/* Brand Text Responsiveness */
.brand-text {
    line-height: 1.15;
    display: flex;
    flex-direction: column;
}

.brand-main {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.brand-sub {
    font-size: 0.95rem;
    font-weight: 700;
    color: #4299e1;
}

/* Mobile Responsiveness for Navbar Header */
@media (max-width: 991.98px) {
    .navbar-brand-logo {
        height: 60px;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand {
        max-width: calc(100% - 56px);
        margin-right: 0;
    }
    .navbar-brand-logo {
        height: 48px;
        margin-right: 6px !important;
    }
    .brand-main {
        font-size: 0.88rem;
        white-space: nowrap;
    }
    .brand-sub {
        font-size: 0.78rem;
        white-space: nowrap;
    }
}

/* Dark Navbar Links Styling */
.navbar-dark .nav-link {
    color: rgba(255, 255, 255, 0.88) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0.85rem !important;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
}

.navbar-dark .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12);
}

.navbar-dark .nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 700;
}

/* Navbar Dropdowns Styling */
.navbar-dark .dropdown-menu {
    min-width: 290px;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 14px 35px rgba(15, 41, 66, 0.18) !important;
}

.dropdown-item {
    transition: all 0.15s ease;
    border-radius: 8px;
    margin: 1px 4px;
    width: auto;
}

.dropdown-item:hover {
    background-color: #f1f5f9;
    transform: translateX(3px);
}

.dropdown-item.active {
    background-color: #e2e8f0 !important;
    color: var(--color-navy) !important;
}

.dropdown-item.active .item-title {
    color: #2b6cb0 !important;
}

.icon-box-dropdown {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.animate-dropdown {
    animation: fadeInDropdown 0.2s ease forwards;
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botón CTA Únete Destacado */
.btn-unete-nav {
    background: linear-gradient(135deg, #2b6cb0 0%, #3182ce 100%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 30px;
    font-size: 0.92rem;
    transition: all 0.25s ease;
}

.btn-unete-nav:hover {
    background: linear-gradient(135deg, #2c5282 0%, #2b6cb0 100%);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(49, 130, 206, 0.45) !important;
}

.btn-accent {
    background-color: #3182ce;
    border-color: #3182ce;
    color: #ffffff;
}

.btn-accent:hover {
    background-color: #2b6cb0;
    border-color: #2b6cb0;
    color: #ffffff;
}

.btn-outline-navy {
    color: var(--color-navy);
    border-color: var(--color-navy);
}

.btn-outline-navy:hover {
    background-color: var(--color-navy);
    color: #ffffff;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.95) 0%, rgba(15, 41, 66, 0.98) 100%),
                url('https://images.unsplash.com/photo-1542601906990-b4d3fb778b09?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    min-height: 420px;
}

.fw-extrabold {
    font-weight: 800;
}

.tracking-wide {
    letter-spacing: 1px;
}

.max-w-75 {
    max-width: 750px;
}

/* Hover Effects */
.hover-top {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important;
}

/* Icon Boxes */
.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-primary-soft {
    background-color: #ebf8ff;
}

.bg-success-soft {
    background-color: #f0fff4;
}

.bg-warning-soft {
    background-color: #fffff0;
}

/* Back to Top Floating Button */
#backToTop {
    position: fixed;
    bottom: 24px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #3182ce;
    color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease, background-color 0.2s ease;
    z-index: 1050;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background-color: #2b6cb0;
    transform: translateY(-3px);
}



