/* Estilos globales para los bloques personalizados de Serviunix */

/* Banner Hero */
.serviunix-banner-hero {
    width: 100%;
    margin-bottom: 0;
}

.serviunix-banner-hero img {
    width: 100%;
    height: auto;
    display: block;
}

/* Sección Dos Columnas */
.serviunix-two-columns {
    margin: 0;
}

.serviunix-two-columns .bg-custom {
    padding: 40px 20px;
}

/* Igualar altura de imagen y texto */
.serviunix-two-columns .row {
    display: flex;
    align-items: stretch;
}

.serviunix-two-columns .image-column {
    min-height: 100%;
    display: flex;
    align-items: stretch;
}

.serviunix-two-columns .two-columns-image {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.serviunix-two-columns .text-column {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .serviunix-two-columns .row {
        flex-direction: column;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .serviunix-two-columns .col-md-5,
    .serviunix-two-columns .col-md-7 {
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .serviunix-two-columns .image-column {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .serviunix-two-columns .two-columns-image {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: cover;
        display: block;
    }
    
    .serviunix-two-columns .text-column {
        padding: 20px !important;
    }
}

/* Testimonios */
.serviunix-testimonios {
    background-color: #f8f9fa;
}

.serviunix-testimonios .testimonio-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.serviunix-testimonios .testimonio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

.serviunix-testimonios .testimonio-content {
    position: relative;
    padding-left: 20px;
}

.serviunix-testimonios .testimonio-content::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 60px;
    color: #e73332;
    line-height: 1;
    opacity: 0.3;
}

.serviunix-testimonios .testimonio-author img {
    border: 2px solid #e73332;
    flex-shrink: 0;
}

/* Estilos para el contenedor del autor - prevenir desbordamiento */
.serviunix-testimonios .testimonio-author {
    min-width: 0;
    overflow: hidden;
}

.serviunix-testimonios .testimonio-author > div {
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.serviunix-testimonios .testimonio-author h5,
.serviunix-testimonios .testimonio-author p {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Forzar una columna en pantallas pequeñas para testimonios */
@media (max-width: 767.98px) {
    .serviunix-testimonios .row > div {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .serviunix-testimonios .row {
        display: flex !important;
        flex-direction: column !important;
    }
}

/* Estilos específicos para tablets (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .serviunix-testimonios .testimonio-card {
        padding: 1rem !important;
    }
    
    .serviunix-testimonios .testimonio-author {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .serviunix-testimonios .testimonio-author img {
        width: 50px !important;
        height: 50px !important;
    }
    
    .serviunix-testimonios .testimonio-author h5 {
        font-size: 18px !important;
        line-height: 1.3;
    }
    
    .serviunix-testimonios .testimonio-author p {
        font-size: 14px !important;
        line-height: 1.4;
    }
    
    .serviunix-testimonios .testimonio-content {
        font-size: 15px !important;
        padding-left: 15px !important;
    }
    
    .serviunix-testimonios .testimonio-content::before {
        font-size: 50px !important;
    }
}

/* CTA Section */
.serviunix-cta-section {
    margin: 0;
}

.serviunix-cta-section .btn-light {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.serviunix-cta-section .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Logos de Clientes */
.serviunix-clientes-logos .logo-scroll {
    overflow-x: auto;
    padding: 20px 0;
}

.serviunix-clientes-logos .logo-container {
    display: flex;
    gap: 30px;
    align-items: center;
}

.serviunix-clientes-logos .logo-circle {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.serviunix-clientes-logos .logo-circle img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

