/* =================================================================
   DASHBOARD & COMPONENTES FRONTEND
   ================================================================= */

/* =================================================================
   LOADER OVERLAY PROFESIONAL - CENTRO DE PANTALLA
   ================================================================= */

#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.loader-container {
    text-align: center;
    max-width: 600px;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    animation: loaderFadeIn 0.8s ease-out;
}

@keyframes loaderFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Imagen Institucional */
.loader-image-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.loader-institutional-image {
    width: 220px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 10px 30px rgba(107, 76, 127, 0.4));
    animation: imageFloat 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes imageFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(-2deg); }
    75% { transform: translateY(-10px) rotate(2deg); }
}

.loader-pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(107, 76, 127, 0.2) 0%, transparent 70%);
    animation: pulseRing 2s ease-out infinite;
    z-index: 1;
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

/* Contenido del Loader */
.loader-content {
    position: relative;
    z-index: 2;
}

.loader-main-title {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.title-word {
    color: #6b4c7f;
    display: inline-block;
    animation: titlePulse 2s ease-in-out infinite;
}

.title-word-highlight {
    color: #5a9e7f;
    display: inline-block;
    animation: titlePulse 2s ease-in-out infinite 0.5s;
}

@keyframes titlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.loader-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 0 0 30px 0;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Barra de Progreso */
.loader-progress-wrapper {
    margin: 30px 0;
}

.loader-progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.loader-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6b4c7f 0%, #5a9e7f 50%, #6b4c7f 100%);
    background-size: 200% 100%;
    border-radius: 10px;
    animation: progressAnimation 2s ease-in-out infinite, gradientMove 1.5s linear infinite;
    box-shadow: 0 0 10px rgba(107, 76, 127, 0.5);
}

@keyframes progressAnimation {
    0% { width: 0%; }
    50% { width: 85%; }
    100% { width: 0%; }
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Dots Animados */
.loader-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.dot {
    width: 10px;
    height: 10px;
    background: #6b4c7f;
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite;
}

.dot:nth-child(1) { animation-delay: 0s; background: #6b4c7f; }
.dot:nth-child(2) { animation-delay: 0.2s; background: #5a9e7f; }
.dot:nth-child(3) { animation-delay: 0.4s; background: #6b4c7f; }

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.loader-message {
    font-size: 1rem;
    color: #888;
    margin: 20px 0 0 0;
    font-style: italic;
    animation: messageFade 2s ease-in-out infinite;
}

@keyframes messageFade {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Decoraciones */
.loader-decoration {
    position: absolute;
    font-size: 3rem;
    opacity: 0.1;
    animation: decorationFloat 6s ease-in-out infinite;
    color: #6b4c7f;
}

.loader-decoration-1 {
    top: 30px;
    left: 30px;
    animation-delay: 0s;
}

.loader-decoration-2 {
    bottom: 30px;
    right: 30px;
    animation-delay: 3s;
}

@keyframes decorationFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(10px, -10px) rotate(120deg);
    }
    66% {
        transform: translate(-5px, 10px) rotate(240deg);
    }
}

/* Responsive Loader */
@media (max-width: 768px) {
    .loader-container {
        padding: 40px 25px;
        margin: 20px;
    }
    
    .loader-institutional-image {
        width: 160px;
    }
    
    .loader-pulse-ring {
        width: 180px;
        height: 180px;
    }
    
    .loader-main-title {
        font-size: 2rem;
    }
    
    .loader-subtitle {
        font-size: 0.95rem;
    }
    
    .loader-message {
        font-size: 0.9rem;
    }
    
    .loader-decoration {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .loader-container {
        padding: 30px 20px;
        margin: 15px;
    }
    
    .loader-institutional-image {
        width: 130px;
    }
    
    .loader-pulse-ring {
        width: 150px;
        height: 150px;
    }
    
    .loader-main-title {
        font-size: 1.6rem;
    }
    
    .loader-subtitle {
        font-size: 0.85rem;
    }
}

/* =================================================================
   SLIDER / CARRUSEL CON BARRA DE PROGRESO
   ================================================================= */

.hero-slider {
    width: 100%;
    position: relative;
    margin-bottom: 0;
}

.carousel-inner {
    border-radius: 0;
}

.carousel-item {
    height: 493px;
}

.carousel-item img {
    height: 493px;
    object-fit: cover;
    object-position: center;
}

.carousel-caption-custom {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    background: rgba(107, 76, 127, 0.85);
    padding: 30px 50px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    max-width: 800px;
    width: 90%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.carousel-caption-custom h2 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.carousel-caption-custom p {
    color: #f0f0f0;
    font-size: 1.2rem;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.carousel-indicators {
    bottom: 20px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
}

.carousel-indicators button.active {
    background: #5a9e7f;
    width: 15px;
    height: 15px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(107, 76, 127, 0.6);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-slider:hover .carousel-control-prev,
.hero-slider:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(90, 158, 127, 0.8);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 25px;
    height: 25px;
}

.slider-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 10;
    border-radius: 0 0 4px 4px;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #5a9e7f 0%, #6b4c7f 100%);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 8px rgba(90, 158, 127, 0.4);
    transition: width 5000ms linear;
}

/* =================================================================
   SECCIÓN DE EVENTOS
   ================================================================= */

.events-section {
    padding: 60px 50px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.section-header {
    margin-bottom: 50px;
}

.section-subtitle {
    color: #d4a017;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.section-title {
    color: #1a1a1a;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0;
}

.event-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.event-image {
    width: 100%;
    height: 100%;
    flex: 1;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.02);
}

.event-content {
    padding: 25px;
    background: #ffffff;
    flex: 0 0 auto;
}

.event-title {
    color: #6b4c7f;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.event-subtitle {
    color: #5a9e7f;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

.event-text {
    color: #555;
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 15px;
    text-align: left;
}

.event-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.hashtag {
    background: linear-gradient(135deg, #6b4c7f 0%, #5a9e7f 100%);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
}

.event-locations {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.locations-title {
    color: #6b4c7f;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.location-item {
    color: #555;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.location-item i {
    color: #5a9e7f;
    font-size: 0.8rem;
}

.event-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #e9ecef;
}

.event-footer-text {
    color: #666;
    font-size: 1rem;
    font-style: italic;
    margin: 0;
    text-align: center;
}

/* =================================================================
   SECCIÓN DE PROYECTOS - SEMBRAR SUEÑOS
   ================================================================= */

.projects-section {
    padding: 80px 50px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.projects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #6b4c7f, #5a9e7f, #6b4c7f);
}

.projects-section .section-subtitle {
    color: #5a9e7f;
}

.projects-section .section-title {
    color: #6b4c7f;
    font-size: 2rem;
    line-height: 1.3;
}

.project-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 15px 40px rgba(107, 76, 127, 0.2);
    border-color: #6b4c7f;
}

.project-image {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(107, 76, 127, 0.9) 0%, rgba(90, 158, 127, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: #ffffff;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.project-card:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content i {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

.overlay-content span {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.project-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    color: #6b4c7f;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.project-text {
    color: #555;
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 20px;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.project-tag {
    background: linear-gradient(135deg, #f0e6f5 0%, #e8f5e9 100%);
    color: #6b4c7f;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(107, 76, 127, 0.2);
    transition: all 0.3s ease;
}

.project-tag i {
    font-size: 0.8rem;
    color: #5a9e7f;
}

.project-tag:hover {
    background: linear-gradient(135deg, #6b4c7f 0%, #5a9e7f 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(107, 76, 127, 0.3);
}

.project-tag:hover i {
    color: #ffffff;
}

.projects-hashtags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(107, 76, 127, 0.05) 0%, rgba(90, 158, 127, 0.05) 100%);
    border-radius: 16px;
    margin-top: 40px;
}

.hashtag-large {
    background: linear-gradient(135deg, #6b4c7f 0%, #5a9e7f 100%);
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(107, 76, 127, 0.2);
}

.hashtag-large:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(107, 76, 127, 0.35);
}

/* =================================================================
   BOTÓN VISOR FLOTANTE (INFERIOR IZQUIERDA)
   ================================================================= */

.visor-float {
    position: fixed;
    bottom: 20px;
    left: 30px;
    width: 160px;
    height: auto;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: visorFloat 3s ease-in-out infinite;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.visor-float:hover {
    transform: scale(1.1) rotate(-5deg);
    animation: none;
    z-index: 10000;
}

.visor-image {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 6px 20px rgba(107, 76, 127, 0.4));
    transition: filter 0.3s ease;
}

.visor-float:hover .visor-image {
    filter: drop-shadow(0 8px 30px rgba(107, 76, 127, 0.6));
}

.visor-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    color: #333;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    border: 2px solid #6b4c7f;
}

.visor-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #6b4c7f;
}

.visor-float:hover .visor-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 5px);
}

@keyframes visorFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* =================================================================
   BOTÓN WHATSAPP FLOTANTE (INFERIOR DERECHA)
   ================================================================= */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
    animation: none;
}

.whatsapp-float i {
    font-size: 2.2rem;
    position: relative;
    z-index: 2;
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: #ffffff;
    color: #333;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #ffffff;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 6px 30px rgba(37, 211, 102, 0.7); }
}

/* =================================================================
   NUEVO: FRANJA INSTITUCIONAL (DESPUÉS DEL SLIDER)
   ================================================================= */

.institucional-banner {
    background: linear-gradient(135deg, #6b4c7f 0%, #5a9e7f 100%);
    padding: 40px 20px;
    border-top: 4px solid #6b4c7f !important;
    color: #FAFAFA;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.institucional-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

.franja-decoracion-izq, .franja-decoracion-der {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.franja-decoracion-izq {
    top: -100px;
    left: -100px;
}

.franja-decoracion-der {
    bottom: -100px;
    right: -100px;
}

.banner-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.banner-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.95;
    margin: 0 auto;
    max-width: 700px;
}

.banner-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.badge-franja {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.badge-franja:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

/* =================================================================
   NUEVO: NAVEGACIÓN ENLACES GOBIERNO (ANTES DEL FOOTER)
   ================================================================= */

.enlaces-gobierno-section {
    padding: 60px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 4px solid #6b4c7f;
}

.enlaces-navegacion-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 30px 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 1200px;
    margin: 0 auto;
}

.enlace-navegacion-item {
    display: flex;
    align-items: center;
    position: relative;
    flex-shrink: 0;
}

.enlace-navegacion-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    min-width: 140px;
}

.enlace-navegacion-link:hover {
    background: rgba(107, 76, 127, 0.05);
    transform: translateY(-3px);
}

.enlace-icono-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.enlace-navegacion-link:hover .enlace-icono-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.enlace-navegacion-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333333;
    text-align: center;
    transition: all 0.3s ease;
}

.enlace-navegacion-link:hover .enlace-navegacion-text {
    color: #6b4c7f;
    font-weight: 700;
}

/* Flecha separadora entre elementos */
.enlace-navegacion-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23999999' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.4;
    z-index: 1;
}

/* =================================================================
   RESPONSIVE COMPONENTES (TODOS)
   ================================================================= */

@media (max-width: 992px) {
    .carousel-item { height: 350px; }
    .carousel-item img { height: 350px; }
    
    .events-section { padding: 40px 0; }
    .section-title { font-size: 1.8rem; }
    .event-image { min-height: 500px; }
    .locations-grid { grid-template-columns: 1fr; }
    
    .projects-section { padding: 60px 0; }
    .projects-section .section-title { font-size: 1.8rem; }
    .project-image { height: 300px; }

    .banner-title { font-size: 2.2rem; }
    .banner-subtitle { font-size: 1.1rem; }
    
    /* Ajuste navegación enlaces */
    .enlaces-navegacion-container {
        padding: 20px 15px;
        gap: 5px;
    }
    
    .enlace-navegacion-link {
        padding: 12px 18px;
        min-width: 120px;
    }
    
    .enlace-icono-wrapper {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .enlace-navegacion-text {
        font-size: 0.85rem;
    }
    
    .enlace-navegacion-item:not(:last-child)::after {
        right: -8px;
        width: 16px;
        height: 16px;
    }
    
    /* Ajuste botón visor */
    .visor-float {
        width: 150px;
        bottom: 25px;
        left: 25px;
    }
}

@media (max-width: 768px) {
    .carousel-item { height: 350px; }
    .carousel-item img { height: 350px; }
    .carousel-caption-custom { bottom: 60px; padding: 20px 30px; }
    .carousel-caption-custom h2 { font-size: 1.8rem; }
    .carousel-caption-custom p { font-size: 1rem; }
    
    .events-section { padding: 30px 0; }
    .section-subtitle { font-size: 0.8rem; }
    .section-title { font-size: 1.5rem; }
    .event-image { min-height: 450px; }
    .event-content { padding: 20px; }
    .event-title { font-size: 1.3rem; }
    .event-text { font-size: 0.9rem; }
    
    .projects-section { padding: 40px 0; }
    .projects-section .section-title { font-size: 1.5rem; }
    .project-image { height: 280px; }
    .project-content { padding: 20px; }
    .project-title { font-size: 1.2rem; }
    .projects-hashtags { padding: 20px; }
    .hashtag-large { font-size: 0.9rem; padding: 10px 18px; }
    
    .whatsapp-float { bottom: 20px; right: 20px; width: 60px; height: 60px; }
    .whatsapp-float i { font-size: 2rem; }
    .whatsapp-tooltip { display: none; }

    .institucional-banner { padding: 50px 15px; }
    .banner-title { font-size: 1.8rem; }
    .banner-subtitle { font-size: 1rem; }
    .badge-franja { font-size: 0.85rem; padding: 8px 18px; }
    
    .enlaces-gobierno-section { padding: 40px 0; }
    
    /* Navegación enlaces móvil */
    .enlaces-navegacion-container {
        flex-direction: column;
        gap: 15px;
        padding: 25px 15px;
    }
    
    .enlace-navegacion-item {
        width: 100%;
        justify-content: center;
    }
    
    .enlace-navegacion-item:not(:last-child)::after {
        display: none; /* Ocultar flechas en móvil */
    }
    
    .enlace-navegacion-link {
        flex-direction: row;
        gap: 15px;
        padding: 15px 20px;
        min-width: auto;
        width: 100%;
        justify-content: flex-start;
    }
    
    .enlace-icono-wrapper {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .enlace-navegacion-text {
        font-size: 1rem;
        text-align: left;
    }
    
    /* Ajuste botón visor móvil */
    .visor-float {
        width: 130px;
        bottom: 20px;
        left: 20px;
    }
    
    .visor-tooltip {
        display: none;
    }
}

@media (max-width: 576px) {
    .carousel-item { height: 280px; }
    .carousel-item img { height: 280px; }
    .slider-progress-bar { height: 3px; }
    .carousel-caption-custom { bottom: 40px; padding: 15px 20px; width: 95%; }
    .carousel-caption-custom h2 { font-size: 1.4rem; }
    .carousel-caption-custom p { font-size: 0.9rem; }
    
    .event-image { min-height: 400px; }
    .event-hashtags { justify-content: center; }
    .locations-grid { grid-template-columns: 1fr; }
    
    .project-image { height: 250px; }
    .overlay-content i { font-size: 2.5rem; }
    .overlay-content span { font-size: 1rem; }
    .projects-hashtags { gap: 10px; }
    .hashtag-large { font-size: 0.85rem; padding: 8px 15px; }
    
    .whatsapp-float { bottom: 15px; right: 15px; width: 55px; height: 55px; }
    .whatsapp-float i { font-size: 1.8rem; }

    .banner-title { font-size: 1.5rem; }
    .banner-badges { flex-direction: column; align-items: center; gap: 10px; }
    
    /* Navegación enlaces móvil pequeño */
    .enlaces-gobierno-section { padding: 30px 0; }
    
    .enlaces-navegacion-container {
        padding: 20px 10px;
        border-radius: 12px;
    }
    
    .enlace-navegacion-link {
        padding: 12px 15px;
        gap: 12px;
    }
    
    .enlace-icono-wrapper {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .enlace-navegacion-text {
        font-size: 0.9rem;
    }
    
    /* Ajuste botón visor móvil pequeño */
    .visor-float {
        width: 110px;
        bottom: 15px;
        left: 15px;
    }
}

/* =================================================================
   NUEVA SECCIÓN: ¿QUÉ ES LA SALUD MENTAL?
   ================================================================= */

.salud-mental-section {
    padding: 10px 0;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f5e9 50%, #f3e5f5 100%);
    position: relative;
    overflow: hidden;
}

.salud-mental-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%236b4c7f' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.6;
    z-index: 0;
}

.salud-mental-content {
    padding: 15px 15px 60px 60px;
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.content-wrapper {
    max-width: 100%;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #6b4c7f 0%, #5a9e7f 100%);
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(107, 76, 127, 0.3);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.section-badge i {
    font-size: 1.1rem;
}

.salud-mental-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 30px;
    line-height: 1.2;
}

.highlight-text {
    background: linear-gradient(135deg, #6b4c7f 0%, #5a9e7f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.definition-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    border-left: 5px solid #6b4c7f;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.definition-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.card-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2rem;
    color: #6b4c7f;
    opacity: 0.3;
}

.definition-text {
    font-size: 1.15rem;
    line-height: 1.3;
    color: #333;
    text-align: justify;
    margin: 0 0 25px 0;
    padding-left: 30px;
    font-weight: 500;
}

.card-decoration {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    opacity: 0.6;
}

.card-decoration i {
    font-size: 1.5rem;
    color: #5a9e7f;
    animation: iconFloat 3s ease-in-out infinite;
}

.card-decoration i:nth-child(2) {
    animation-delay: 0.5s;
}

.card-decoration i:nth-child(3) {
    animation-delay: 1s;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.key-points {
    margin-bottom: 35px;
}

.point-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.point-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.point-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6b4c7f 0%, #5a9e7f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.point-text {
    flex: 1;
}

.point-text strong {
    display: block;
    color: #1a1a1a;
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.point-text span {
    color: #666;
    font-size: 0.95rem;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary-custom,
.btn-secondary-custom {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary-custom {
    background: linear-gradient(135deg, #6b4c7f 0%, #5a9e7f 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(107, 76, 127, 0.4);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(107, 76, 127, 0.5);
    color: white;
}

.btn-secondary-custom {
    background: white;
    color: #6b4c7f;
    border: 2px solid #6b4c7f;
}

.btn-secondary-custom:hover {
    background: #6b4c7f;
    color: white;
    transform: translateY(-3px);
}

/* COLUMNA DERECHA - IMAGEN */
.salud-mental-image {
    position: relative;
    height: 100%;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.institutional-mascot {
    max-width: 90%;
    max-height: 650px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 60px rgba(107, 76, 127, 0.3));
    animation: mascotFloat 4s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes mascotFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(-1deg); }
    75% { transform: translateY(-10px) rotate(1deg); }
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.float-item {
    position: absolute;
    font-size: 2.5rem;
    animation: floatAround 5s ease-in-out infinite;
    opacity: 0.7;
}

.float-1 {
    top: 10%;
    left: 10%;
    color: #5a9e7f;
    animation-delay: 0s;
}

.float-2 {
    top: 15%;
    right: 15%;
    color: #f39c12;
    animation-delay: 1s;
}

.float-3 {
    bottom: 20%;
    left: 5%;
    color: #6b4c7f;
    animation-delay: 2s;
}

.float-4 {
    bottom: 15%;
    right: 10%;
    color: #e74c3c;
    animation-delay: 3s;
}

@keyframes floatAround {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(10px, -15px) rotate(120deg); }
    66% { transform: translate(-5px, 10px) rotate(240deg); }
}

.image-background-shape {
    position: absolute;
    width: 120%;
    height: 120%;
    background: linear-gradient(135deg, rgba(107, 76, 127, 0.1) 0%, rgba(90, 158, 127, 0.1) 100%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    animation: shapePulse 6s ease-in-out infinite;
}

@keyframes shapePulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

/* RESPONSIVE SALUD MENTAL SECTION */
@media (max-width: 1199px) {
    .salud-mental-content {
        padding: 50px 40px;
    }
    
    .salud-mental-title {
        font-size: 2.3rem;
    }
    
    .definition-text {
        font-size: 1.05rem;
    }
}

@media (max-width: 991px) {
    .salud-mental-section {
        padding: 60px 0;
    }
    
    .salud-mental-content {
        padding: 40px 30px;
    }
    
    .salud-mental-image {
        min-height: 500px;
        padding: 30px;
    }
    
    .institutional-mascot {
        max-height: 450px;
    }
    
    .salud-mental-title {
        font-size: 2rem;
    }
    
    .definition-text {
        font-size: 1rem;
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .salud-mental-section {
        padding: 40px 0;
    }
    
    .salud-mental-content {
        padding: 30px 20px;
    }
    
    .salud-mental-title {
        font-size: 1.8rem;
    }
    
    .section-badge {
        font-size: 0.8rem;
        padding: 8px 18px;
    }
    
    .definition-card {
        padding: 25px;
    }
    
    .definition-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .point-item {
        padding: 12px;
    }
    
    .point-text strong {
        font-size: 1rem;
    }
    
    .point-text span {
        font-size: 0.9rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-primary-custom,
    .btn-secondary-custom {
        width: 100%;
        justify-content: center;
    }
    
    .salud-mental-image {
        min-height: 400px;
        padding: 20px;
    }
    
    .institutional-mascot {
        max-height: 350px;
    }
    
    .float-item {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .salud-mental-title {
        font-size: 1.5rem;
    }
    
    .definition-card {
        padding: 20px;
    }
    
    .definition-text {
        font-size: 0.9rem;
    }
    
    .point-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .institutional-mascot {
        max-height: 280px;
    }
}