/* ===== ESTILOS PERSONALIZADOS PARA RED DE SALUD CORACORA ===== */

/* ===== ESTILOS PARA POPUP ===== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.popup-content {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

.popup-text {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #bdc3c7;
    cursor: pointer;
    transition: color 0.3s ease;
}

.popup-close:hover {
    color: #e74c3c;
}

/* ===== ESTILOS PARA SERVICIOS ===== */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card:hover .icon-wrapper {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.service-title {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.2em;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

.service-content p {
    text-align: center;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ===== ESTILOS PARA ACTIVIDADES ===== */
.activity-category:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(52, 152, 219, 0.4);
}

.activity-item:hover {
    background: rgba(52, 152, 219, 0.1);
    transform: translateX(5px);
    transition: all 0.3s ease;
    border-left-width: 6px;
}

/* ===== RESPONSIVE DESIGN PARA ACTIVIDADES ===== */
@media (max-width: 768px) {
    .activities-wrapper {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .activity-category {
        padding: 20px !important;
    }

    .category-header {
        flex-direction: column !important;
        text-align: center !important;
    }

    .category-icon {
        margin-right: 0 !important;
        margin-bottom: 15px !important;
    }

    .activities-list {
        max-height: 250px !important;
    }
}

@media (max-width: 480px) {
    .activity-category {
        padding: 15px !important;
    }

    .activity-item p {
        font-size: 0.8em !important;
    }
}

/* ===== ANIMACIONES PARA HERO E INFO BOX ===== */
@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.1);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    animation: fadeInUp 1.2s ease-out;
}

.hero-subtitle {
    animation: fadeInUp 1.4s ease-out;
}

.hero-description {
    animation: fadeInUp 1.6s ease-out;
}

.hero-buttons {
    animation: fadeInUp 1.8s ease-out;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* CSS mínimo para mostrar imágenes de galería */
.picture-gallery .gallery-content .grid-item {
    position: relative;
}

.picture-gallery .gallery-content .grid-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* El slider ahora usa completamente los estilos de color-1.css */


.slider-caption {
    position: relative;
    z-index: 2;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.hero-content {
    text-align: center;
    padding: 80px 0;
    color: white;
}

.hero-title {
    font-size: 3.5em;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
}

.hero-subtitle {
    font-size: 1.5em;
    font-weight: 400;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-buttons .btn i {
    margin-right: 10px;
}

/* Asegurar que todos los elementos del slider permanezcan visibles */
.slider-item,
.slider-1,
.hero-content,
.hero-title,
.hero-subtitle,
.hero-description,
.hero-buttons {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.hero-buttons {
    display: flex !important;
}

/* Hover effects for service cards */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card:hover .icon-wrapper {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Hover effects for staff items */
.staff-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.staff-item:hover .staff-avatar img {
    transform: scale(1.1);
    border-color: rgba(52, 152, 219, 0.5);
}

.staff-socials a:hover {
    transform: translateY(-3px) scale(1.1);
}

/* Gallery tab hover effects */
.nav-tabs li a:hover {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4) !important;
}

.nav-tabs li.active a {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3) !important;
}

/* Estilos para equipo en una sola fila */
.best-staff-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(52, 152, 219, 0.3) transparent;
}

.best-staff-content::-webkit-scrollbar {
    height: 6px;
}

.best-staff-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.best-staff-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 3px;
}

.best-staff-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5em !important;
    }

    .hero-subtitle {
        font-size: 1.2em !important;
    }

    .hero-description {
        font-size: 1em !important;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        margin-bottom: 10px;
        width: 100%;
        max-width: 300px;
    }

    .modern-services-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 10px !important;
    }

    .service-card {
        padding: 25px 20px !important;
    }

    .activities-wrapper {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 15px !important;
    }

    .best-staff-content {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .staff-item {
        min-width: 180px !important;
        max-width: 200px !important;
    }

    .nav-tabs {
        flex-direction: column !important;
        align-items: center !important;
    }

    .nav-tabs li {
        margin-bottom: 10px !important;
    }

    .nav-tabs li a {
        margin: 0 !important;
        width: 100% !important;
        max-width: 300px !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2em !important;
    }

    .section-title {
        font-size: 2em !important;
    }

    .service-card {
        padding: 20px 15px !important;
    }

    .staff-item {
        padding: 25px 20px !important;
    }

    .progress-bar-number {
        padding: 30px 15px !important;
    }

    .stat-icon {
        width: 60px !important;
        height: 60px !important;
    }

    .stat-icon i {
        font-size: 1.5em !important;
    }
}
