﻿/*Carrusel de publicidad*/
.carousel-publicidad-container {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.carousel-publicidad-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: opacity .5s ease;
    z-index: 0;
    animation: fadeInPromoText 0.6s ease-in-out;
}

.carousel-publicidad-text {
    position: absolute;
    top: 20px;
    z-index: 1;
    transform-origin: left center;
    transform: scaleX(0);
    opacity: 0;
    transition: transform 0.5s ease-in-out, opacity 0.3s ease-in-out 0.2s;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px 24px;
    padding-left: 44px;
    border-radius: 0 12px 12px 0;
    color: white;
    font-size: 22px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.5;
    max-width: 85%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.8);
    animation: fadeInPromoText 0.6s ease-in-out;
}

    .carousel-publicidad-text.unfolded {
        transform: scaleX(1);
        opacity: 1;
    }

    .carousel-publicidad-text.folded {
        transform: scaleX(0);
        opacity: 0;
    }


.carousel-publicidad-background::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 36%;
    background: linear-gradient(to top, rgba(245, 245, 245, 1), transparent);
    pointer-events: none;
}

.hero-carousel__pagination--wDVkx {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-carousel__pagination-wrapper--wwYGu {
    display: flex;
    gap: 10px;
}

.hero-carousel__page---Wti- {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0px;
    outline: none;
    width: 20px; /* Ancho normal */
    height: 8px;
    transition: width 0.3s ease; /* Transición suave */
    margin: 0 4px;
}

.hero-carousel__page-pill--NDpl- {
    width: 100%; /* Ahora hereda el ancho del botón padre */
    height: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.hero-carousel__page-loader--iHKEw {
    display: block;
    height: 100%;
    width: 100%;
    background: #CDA434;
    position: absolute;
    left: 0;
    top: 0;
    transform: translateX(-100%); /* Inicia completamente oculto */
    will-change: transform; /* Optimización para animaciones */
}

.hero-carousel__page--is-active--E9-Lw {
    width: 40px;
    background-color: transparent;
}

.hero-carousel__page-pill--is-active--NDpl- {
    width: 40px;
    height: 4px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}
.hero-carousel__arrow {
    position: absolute;
    top: 43%;
    transform: translateY(-50%);
    width: 40px;
    height: 86%;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-carousel__arrow--left {
    left: 0;
}

.hero-carousel__arrow--right {
    right: 0;
}

.angle-icon {
    width: 30px;
    height: 30px;
    fill: white;
    margin-top: 60px;
}

.hero-carousel__arrow:active .angle-icon {
    fill: #CDA434;
}

.carousel-publicidad-background {
    transition: opacity 0.6s ease-in-out;
    opacity: 1;
}

    .carousel-publicidad-background.fade-out {
        opacity: 0;
    }

    .carousel-publicidad-background.fade-in {
        opacity: 0;
    }

.carousel-publicidad-text {
    position: absolute;
    top: 20px;
    z-index: 1;
    transform-origin: left center;
    transform: scaleX(0);
    opacity: 0;
    transition: transform 0.5s ease-in-out, opacity 0.3s ease-in-out 0.2s;
}

    .carousel-publicidad-text.folded {
        transform: scaleX(0);
        opacity: 0;
    }

@keyframes fadeInPromoText {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/*Carrusel de barbero*/
.advertencia {
    color: #a0a0a0;
    margin: 0 0 !important;
    font-size: 13px;
}

#primerdiv {
    margin: 2px 0 !important;
}

.primero {
    position: relative;
    top: -35px;
    left: 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 1);
    display: flex;
    align-content: flex-start;
    flex-wrap: wrap;
    width: fit-content;
    margin: 0 20px;
}

.barbero-carousel-container {
    position: relative;
    top: 0;
    left: 0;
    height: 432px;
    overflow: hidden;
    border-radius: 8px;
}

.barbero-carousel-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: background-image .5s ease;
    z-index: 0;
}

    .barbero-carousel-background::before {
        content: "";
        position: absolute;
        top: -1px;
        left: 0;
        right: 0;
        height: 25%;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 1), transparent);
        pointer-events: none;
    }

    .barbero-carousel-background::after {
        content: "";
        position: absolute;
        bottom: -1px;
        left: 0;
        right: 0;
        height: 25%;
        background: linear-gradient(to top, rgba(0, 0, 0, 1), transparent);
        pointer-events: none;
    }

.barbero-names-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    height: fit-content;
    z-index: 1;
    background-color: transparent;
}

.adjacent-barbero .barbero-name-gradient {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    font-weight: 500;
    position: relative;
}

#prev {
    background: linear-gradient(90deg, rgb(0 0 0 / 10%) 3%, rgb(121, 121, 121) 40%, rgba(255, 255, 255, 0.7) 70%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

#next {
    background: linear-gradient(-90deg, rgb(0 0 0 / 10%) 3%, rgb(121, 121, 121) 40%, rgba(255, 255, 255, 0.7) 70%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.current-barbero h3 {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    margin: 0;
    font-size: 18px;
    font-weight: 500 !important;
}

.barbero-action {
    position: absolute;
    top: auto;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 1;
    text-align: center;
    margin-top: 310px 10px 10px 10px;
    font-weight: 500;
}

.carousel-container {
    position: relative;
    top: -5px;
    left: 0;
    margin: 0 43px;
    box-shadow: 0px 0 1px 1px rgb(39 73 98), inset 0px 0 1px 1px rgb(39 73 98);
    border-radius: 8px;
    height: 432px;
}

.carousel-publicidad-text {
    visibility: hidden; /* Oculta pero mantiene el espacio */
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .carousel-publicidad-text.loaded {
        visibility: visible;
        opacity: 1;
    }