.carrusel-frases-container {
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    box-sizing: border-box;
    overflow: hidden;
}

/* Clase especial para cuando está en el header */
.carrusel-frases-container.header-carousel {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.carrusel-frases-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.carrusel-frases-content {
    flex: 1;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.carrusel-phrase {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    white-space: nowrap;
    font-weight: 500;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carrusel-phrase.active {
    opacity: 1;
}

.carrusel-arrow {
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.carrusel-arrow:hover {
    background-color: rgba(0,0,0,0.1);
    transform: scale(1.1);
}

.carrusel-arrow:active {
    transform: scale(0.95);
}

/* Para contenedores de ancho completo */
.carrusel-frases-container[style*="width: 100%"] .carrusel-frases-wrapper {
    max-width: none;
    padding: 0; /* Sin padding por defecto */
}

/* Responsive Design */
@media (max-width: 768px) {
    .carrusel-arrow {
        font-size: 20px;
        width: 35px;
        height: 35px;
    }
    
    .carrusel-phrase {
        font-size: 14px !important;
        white-space: normal;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .carrusel-arrow {
        font-size: 18px;
        width: 30px;
        height: 30px;
    }
    
    .carrusel-phrase {
        font-size: 12px !important;
    }
}

@media (max-width: 320px) {
    .carrusel-arrow {
        font-size: 16px;
        width: 25px;
        height: 25px;
        padding: 5px;
    }
}

/* Estilos especiales para posición sticky/fixed */
.carrusel-frases-container[style*="position: sticky"],
.carrusel-frases-container[style*="position: fixed"] {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Ajustes para diferentes alturas */
.carrusel-frases-container[style*="height: 30px"] .carrusel-arrow {
    width: 25px;
    height: 25px;
    font-size: 16px;
}

.carrusel-frases-container[style*="height: 80px"] .carrusel-arrow,
.carrusel-frases-container[style*="height: 90px"] .carrusel-arrow,
.carrusel-frases-container[style*="height: 100px"] .carrusel-arrow {
    width: 50px;
    height: 50px;
    font-size: 28px;
}
