/* Estilos específicos para la página de galería */

/* Header de la página */
.galeria-header {
    background: linear-gradient(135deg, var(--primary-color), #ff6b00);
    color: var(--text-light);
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.galeria-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.galeria-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Secciones de galería */
.gallery-section {
    padding: 3rem 0;
}

.gallery-section h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2.5rem;
    font-size: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.gallery-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-light);
    border-radius: 2px;
}

/* Grid de galería */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    margin-bottom: 2rem;
}

/* Elementos de la galería */
.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background: white;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.image-container {
    width: 100%;
    overflow: hidden;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Leyenda de las imágenes */
.gallery-caption {
    padding: 1.5rem;
    background: white;
}

.gallery-caption h4 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.25rem;
}

.gallery-caption p {
    color: var(--text-color);
    margin: 0;
    line-height: 1.5;
}

/* Información adicional */
.galeria-info {
    background-color: var(--bg-light);
    padding: 4rem 0;
    margin-top: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.info-card {
    background-color: white;
    padding: 2.5rem 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-8px);
}

.info-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.8rem;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

.info-card h4 {
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
}

.info-card p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Iconos flotantes de redes sociales */
.icon-group-left {
    position: fixed;
    left: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.icon-group-right {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
}

.floating-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF8C00, #E67E00);
    color: white !important;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    text-decoration: none;
    font-size: 28px;
    cursor: pointer;
}

.floating-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.6);
}

.floating-icon i {
    color: white !important;
    font-size: 28px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 140, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 140, 0, 0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .gallery-section h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }
    
    .galeria-header {
        padding: 3rem 0;
    }
    
    .galeria-header h2 {
        font-size: 2rem;
    }
    
    .gallery-section {
        padding: 2.5rem 0;
    }
    
    .gallery-section h3 {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
    
    .info-card {
        padding: 2rem 1.5rem;
    }
    
    /* Responsive para iconos flotantes en tablets */
    .floating-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .floating-icon i {
        font-size: 24px;
    }
    
    .icon-group-left {
        left: 15px;
        bottom: 15px;
    }
    
    .icon-group-right {
        right: 15px;
        bottom: 15px;
    }
}

@media (max-width: 480px) {
    .gallery-caption {
        padding: 1.2rem;
    }
    
    .gallery-caption h4 {
        font-size: 1.1rem;
    }
    
    .info-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .info-card h4 {
        font-size: 1.2rem;
    }
    
    /* Responsive para iconos flotantes en móviles */
    .floating-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .floating-icon i {
        font-size: 20px;
    }
    
    .icon-group-left {
        left: 10px;
        bottom: 10px;
        gap: 10px;
    }
    
    .icon-group-right {
        right: 10px;
        bottom: 10px;
    }
}

@media (max-width: 320px) {
    /* Responsive para iconos flotantes en móviles muy pequeños */
    .floating-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .floating-icon i {
        font-size: 18px;
    }
    
    .icon-group-left {
        left: 8px;
        bottom: 8px;
        gap: 8px;
    }
    
    .icon-group-right {
        right: 8px;
        bottom: 8px;
    }
}