/* ===========================================
   PREMIUM REDESIGN & ANIMATIONS
   =========================================== */

/* Hover Zoom Effect for images */
.hover-zoom-container {
    overflow: hidden;
}

.hover-zoom {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.hover-zoom-container:hover .hover-zoom {
    transform: scale(1.08);
}

/* Enhancing sections to give more life */
.section-title {
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.section-title.text-start {
    margin-left: 0;
    margin-right: auto;
}

[data-bs-theme="dark"] .section-title {
    background: linear-gradient(90deg, var(--primary-light), var(--primary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Floating animation for stats */
.stats-card i {
    animation: float-icon 4s ease-in-out infinite;
}

@keyframes float-icon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Add an underline animation for Navigation Links */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Custom shadow on hover for main buttons */
.btn-primary-custom {
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary-custom:hover::before {
    width: 300px;
    height: 300px;
}

/* Background images integration */
#nosotros {
    position: relative;
    background-image: url('../assets/images/impact_bg_1773798910058.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

#nosotros::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-surface-alt);
    opacity: 0.9;
    z-index: -1;
}

#transparencia {
    position: relative;
    background-image: url('../assets/images/transparency_bg_1773798931094.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

#transparencia::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-surface);
    opacity: 0.88;
    z-index: -1;
}

/* New background for Institucional / Inicio section */
#institucional {
    position: relative;
    background-image: url('../assets/images/institucional_bg_1773799305302.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

#institucional::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-surface-alt);
    opacity: 0.85;
    z-index: -1;
}

/* Botón de inicio más grande */
#inicio .btn-primary-custom {
    padding: 16px 45px;
    font-size: 1.15rem;
}

/* Utils and Helpers used in Footer Redesign */
.font-lora {
    font-family: 'Lora', serif !important;
}

.transition {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.hover-bg-primary:hover {
    background-color: var(--primary-color) !important;
    color: var(--bg-surface) !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-3px);
}

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