/* Estilos para la página individual de clientes */

.clients-single-page {
    margin-top: 2rem;
}

/* Header del cliente */
.client-header {
    margin-bottom: 2rem;
}

.client-banner {
    position: relative;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.client-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
} 

.client-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
}

.client-banner-content {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    color: white;
    z-index: 2;
}

.client-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.client-subtitle {
    font-size: 1.2rem;
    margin: 0;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.client-header-simple {
    padding: 2rem 0;
    border-bottom: 3px solid #e8280b;
    margin-bottom: 2rem;
}

.client-header-simple .client-title {
    color: #2c3e50;
    text-shadow: none;
    font-size: 2.2rem;
}

.client-header-simple .client-subtitle {
    color: #6c757d;
    text-shadow: none;
    font-size: 1.1rem;
}

/* Secciones generales */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e8280b;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title i {
    color: #e8280b;
    font-size: 1.2rem;
}

/* Información de contacto */
.client-contact-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid #e8280b;
}

.client-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    color: #e8280b;
    font-size: 1.2rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.contact-item div {
    flex-grow: 1;
}

.contact-item strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-item span,
.contact-item a {
    color: #495057;
    text-decoration: none;
    font-size: 1rem;
}

.contact-item a:hover {
    color: #e8280b;
    text-decoration: underline;
}

/* Redes sociales */
.client-social-section {
    margin-bottom: 2rem;
}

.client-social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: white;
}

.social-link.facebook {
    background: linear-gradient(135deg, #3b5998, #4c70ba);
}

.social-link.twitter {
    background: linear-gradient(135deg, #000000, #1a1a1a);
}

.social-link.instagram {
    background: linear-gradient(135deg, #e4405f, #fd5949);
}

.social-link i {
    font-size: 1.2rem;
}

/* Sectores */
.client-sector-section {
    margin-bottom: 2rem;
}

.client-sectors {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.sector-tag {
    background: linear-gradient(135deg, #e8280b, #ff4d2a);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(232, 40, 11, 0.2);
}

/* Contenido principal */
.client-content-section {
    margin-bottom: 2rem;
}

.client-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #e8280b;
    line-height: 1.7;
    font-size: 1.05rem;
}

.client-content p {
    margin-bottom: 1.2rem;
}

.client-content h3,
.client-content h4 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Galería */
.client-gallery-section {
    margin-bottom: 2rem;
}

.client-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(232, 40, 11, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
}

/* Mapa */
.client-map-section {
    margin-bottom: 2rem;
}

.client-map {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #e8280b;
}

.client-map iframe,
.client-map img,
.location-map-image {
    width: 100%;
    border-radius: 8px;
    max-height: 400px;
    object-fit: cover;
}

/* Layout específico para la estructura de Soledad */
.penci-content-sidebar-wrap.penci-sidebar-left {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-direction: row;
}

.penci-sidebar-content {
    flex: 0 0 300px;
    width: 300px;
    order: 1;
}

.penci-container-content.clients-single-page {
    flex: 1;
    min-width: 0;
    order: 2;
}

/* Responsive para el layout con sidebar */
@media (max-width: 1024px) {
    .penci-sidebar-content {
        flex: 0 0 250px;
        width: 250px;
    }
}

@media (max-width: 768px) {
    .penci-content-sidebar-wrap.penci-sidebar-left {
        flex-direction: column;
        gap: 20px;
    }
    
    .penci-sidebar-content {
        flex: none;
        width: 100%;
        order: 1;
    }
    
    .penci-container-content.clients-single-page {
        order: 2;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .client-banner {
        height: 300px;
    }
    
    .client-banner-content {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
    }
    
    .client-title {
        font-size: 1.8rem;
    }
    
    .client-subtitle {
        font-size: 1rem;
    }
    
    .client-contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-item {
        padding: 0.75rem;
    }
    
    .client-social-links {
        flex-direction: column;
    }
    
    .social-link {
        justify-content: center;
    }
    
    .client-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.75rem;
    }
    
    .client-content {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .clients-single-page {
        margin-top: 1rem;
    }
    
    .client-contact-section,
    .client-content {
        padding: 1rem;
    }
    
    .client-title {
        font-size: 1.5rem;
    }
    
    .client-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 1.2rem;
        gap: 0.5rem;
    }
}
