.banner-carousel-home {
    width: 100vw;
    min-height: 420px;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.banner-carousel-slide {
    width: 100vw;
    min-height: 410px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Quita border-radius si existía */
    border-radius: 0 !important;
    padding: 0;
}

.carousel-inner,
.carousel-item {
    width: 100vw;
    min-height: 410px;
}

.banner-carousel-content {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 7vw;
    min-height: 410px;
}

.banner-carousel-left {
    flex: 1.2;
    min-width: 0;
}

.banner-carousel-right {
    flex: 1;
    min-width: 0;
    text-align: right;
}

.banner-carousel-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 13px;
}

.banner-carousel-subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 17px;
}

.banner-carousel-btn {
    display: inline-block;
    background: var(--color-primario, #00ADBB);
    color: #fff;
    font-weight: 500;
    font-size: 1.09rem;
    padding: 12px 28px;
    border-radius: 3.5px;
    text-decoration: none;
    box-shadow: 0 2px 7px 0 rgba(0, 173, 187, 0.10);
    transition: background 0.18s;
}

.banner-carousel-btn:hover {
    background: var(--color-secundario, #76BC21);
    color: #fff;
}

.banner-carousel-img {
    max-width: 340px;
    height: auto;
    margin-bottom: 0;
}

.banner-carousel-bubble {
    position: absolute;
    right: 15%;
    top: 36px;
    background: #00ADBB;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 12px;
    padding: 12px 17px;
    box-shadow: 0 2px 8px 0 rgba(0, 173, 187, 0.12);
    z-index: 2;
}

@media (max-width: 900px) {
    .banner-carousel-content {
        flex-direction: column;
        text-align: center;
        padding: 0 5vw;
        min-height: 330px;
    }

    .banner-carousel-img {
        max-width: 180px;
        margin: 20px auto 0 auto;
    }

    .banner-carousel-bubble {
        right: 16%;
        top: 16px;
        padding: 9px 14px;
        font-size: 0.99rem;
    }
}

/* Textos: Fade in + slide desde la derecha */
.animated-text {
    opacity: 0;
    transform: translateX(60px);
    transition: none;
}

.carousel-item.active .animated-text {
    animation: fadeInRight 0.9s cubic-bezier(.52, .06, .41, .99) 0.09s both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Imagen: Fade in */
.animated-img {
    opacity: 0;
    transition: none;
}

.carousel-item.active .animated-img {
    animation: fadeInImg 1.1s cubic-bezier(.55, .1, .42, 1.01) 0.18s both;
}

@keyframes fadeInImg {
    from {
        opacity: 0;
        transform: scale(1.04);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/*==== Seccion 2 ==========================================*/
.home-categories-section {
    margin: 54px 0 48px 0;
    /* margen arriba/abajo */
    width: 100%;
}

.container-categories {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 36px;
    /* espacio horizontal entre cards */
    padding: 0 5vw;
    /* Máximo ancho para no pegarse a los bordes */
    max-width: 1650px;
    margin: 0 auto;
    flex-wrap: nowrap;
}

.category-card {
    background: #fff;
    border: 1px solid #e1e4eb;
    border-radius: 7px;
    width: 225px;
    /* Cards anchas, pero no demasiado */
    height: 230px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.19s, border-color 0.17s;
    box-shadow: 0 1px 10px 0 rgba(75, 107, 173, 0.04);
    cursor: pointer;
    transition: box-shadow 0.19s, border-color 0.17s, transform 0.22s cubic-bezier(.19, 1, .22, 1);
}

.category-card:hover {
    box-shadow: 0 14px 36px 0 rgba(0, 173, 187, 0.17), 0 1.5px 6px 0 rgba(0, 173, 187, 0.06);
    border-color: #00ADBB;
    transform: translateY(-9px) scale(1.037);
    z-index: 2;
}

.category-card a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none !important;
    color: inherit;
}

.category-card img {
    width: 78px;
    height: 78px;
    object-fit: contain;
    margin-bottom: 18px;
    margin-top: 6px;
    filter: grayscale(55%) opacity(0.88);
}

.item-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
    margin-top: 6px;
}

.category-card-title {
    font-size: 18px;
    color: #33436a;
    font-weight: 500;
    text-align: center;
    letter-spacing: .01em;
    white-space: nowrap;
    /* Esto evita el salto de línea */
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 6px;
}

@media (max-width: 1400px) {
    .container-categories {
        gap: 24px;
        padding: 0 2vw;
    }

    .category-card {
        width: 185px;
        height: 200px;
    }

    .category-card-title {
        font-size: 16px;
    }
}

@media (max-width: 1024px) {
    .container-categories {
        flex-wrap: wrap;
        gap: 20px;
        padding: 0 1vw;
    }

    .category-card {
        width: 42vw;
        max-width: 220px;
        min-width: 140px;
        height: 170px;
    }

    .category-card-title {
        font-size: 14.7px;
    }
}

@media (max-width: 700px) {
    .container-categories {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .category-card {
        width: 42vw;
        min-width: 108px;
        max-width: 180px;
        height: 138px;
    }

    .category-card-title {
        font-size: 13px;
    }
}

/*==== Seccion 3 ==========================================*/

.product-card-servia {
    background: #fff;
    border-radius: 7px;
    border: 1.5px solid #eaeaea;
    box-shadow: 0 4px 20px 0 rgba(40, 60, 90, 0.07);
    min-height: 420px;
    max-height: 420px;
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: box-shadow .16s, transform .15s;
}

.product-card-servia:hover {
    box-shadow: 0 10px 32px 0 rgba(0, 173, 187, 0.16);
    transform: translateY(-2px) scale(1.01);
    border-color: #20ccab;
    z-index: 2;
}

/* Imagen */
.product-img-servia {
    width: 100%;
    min-height: 180px;
    /* Más alto */
    max-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 17px;
    margin-bottom: 10px;
}

.product-img-servia img {
    max-height: 120px;
    width: auto;
    max-width: 97%;
    object-fit: contain;
}

/* Cuerpo */
.product-body-servia {
    padding: 0 21px 0 21px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.badge-nuevo-servia {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 68px;
    /* Ajusta el tamaño según la longitud del texto */
    height: 68px;
    background: #982d91;
    color: #fff;
    font-size: 1em;
    /*font-weight: bold;*/
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(30, 0, 30, 0.11);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /*border: 3.5px solid #fff;*/
    z-index: 2;
    pointer-events: none;
    padding: 0;
    /* Sin padding, para mantener el círculo */
    line-height: 1.2;
    /* O ajusta para vertical alignment */
    white-space: normal;
    /* Permite salto de línea si lo necesitas */
    letter-spacing: 0.02em;
    transform: rotate(-18deg);
}

.badge-descuento-servia {
    display: inline-block;
    background: #982d91;
    color: #fff;
    font-size: .73em;
    font-weight: 500;
    border-radius: 6px;
    padding: 2px 9px 2px 9px;
    margin-right: 6px;
    vertical-align: middle;
    position: relative;
    top: -2px;
    letter-spacing: .5px;
    z-index: 1;
}

.product-title-servia {
    font-size: 1.05rem;
    color: #393944;
    font-weight: 400;
    margin-bottom: 18px;
    min-height: 42px;
    max-height: 42px;
    line-height: 1.18;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price-row-servia {
    margin-bottom: 2px;
}

.product-price-main-servia {
    color: #222;
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: block;
}

.product-price-disc-servia {
    font-size: 0.74rem;
    color: #b6b6b6;
    margin-left: 3px;
    text-decoration: line-through;
}

.product-iva-servia {
    font-size: 0.84rem;
    color: #b6b6b6;
    margin-bottom: 2px;
}

.product-stock-servia {
    font-size: 0.84rem;
    font-weight: 400;
    margin-bottom: 2px;
}

.product-shipping-servia {
    font-size: 0.84rem;
    color: #00ADBB;
    font-weight: 400;
    margin-bottom: 12px;
}

/* Footer */
.product-footer-servia {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px 16px 18px;
    margin-top: auto;
    min-height: 46px;
}

.qty-group-servia {
    display: flex;
    align-items: center;
    gap: 7px;
}

.qty-btn-servia {
    background: none;
    border: none;
    color: #7f7f8a;
    font-size: 1.18rem;
    font-weight: 500;
    width: 29px;
    height: 29px;
    border-radius: 4px;
    transition: background 0.12s;
    outline: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn-servia:hover {
    background: #e0e5ec;
}

.product-qty-input-servia {
    width: 32px;
    height: 27px;
    text-align: center;
    border-radius: 4px;
    font-size: 1.07rem;
    color: #444;
    outline: none;
    margin: 0 1px;
}

/* Quita las flechas del input number en todos los navegadores principales */
.product-qty-input-servia::-webkit-outer-spin-button,
.product-qty-input-servia::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Botón Comprar */
.btn-comprar-servia {
    background: #00ADBB;
    border-radius: 4px;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 8px 27px;
    border: none;
    margin-left: 10px;
    transition: background .17s;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    height: 36px;
    color: #fff !important;
}

.btn-comprar-servia:hover {
    background: #11a191;
    color: #fff;
}

/* Responsive */
@media (max-width: 1200px) {
    .col-md-2 {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }

    .product-card-servia {
        min-height: 380px;
        max-height: 380px;
    }
}

@media (max-width: 900px) {
    .col-md-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .product-card-servia {
        min-height: 340px;
        max-height: 340px;
    }
}

@media (max-width: 700px) {

    .col-md-2,
    .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .product-card-servia {
        min-height: 260px;
        max-height: 100%;
        height: auto;
    }
}


/* Sección  4 - doctora Proveedores */
/* Sección Proveedores Mejorada */
.about-proveedores-section {
    background: #fff;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.about-proveedores-img-col {
    padding: 0 !important;
    background: #eaeaea;
    align-items: stretch !important;
    /* asegura altura igual */
    display: flex;
}

.about-proveedores-img-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
}

.about-proveedores-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Muestra toda la imagen sin recortar */
    object-position: left center;
    display: block;
    background: #eaeaea;
    min-height: 420px;
}

.about-proveedores-text-col {
    background: #fff;
    min-height: 420px;
    padding-top: 36px;
    padding-bottom: 36px;
    display: flex;
    align-items: center;
}

.about-proveedores-content {
    max-width: 600px;
}

.about-proveedores-title {
    color: #812582;
    font-size: 2.0rem;
    font-weight: 500;
    line-height: 1.13;
    letter-spacing: 0.01em;
}

.about-proveedores-highlight {
    color: #20ccab;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-proveedores-highlight i {
    font-size: 1.5rem;
    color: #20ccab;
    margin-right: 8px;
}

.about-proveedores-main {
    color: #595959;
    font-size: 1.13rem;
    line-height: 1.46;
}

.about-proveedores-sub {
    color: #8a8a8a;
    font-size: 1.08rem;
    line-height: 1.48;
}

.about-proveedores-sub-title {
    color: #812582;
    font-weight: 500;
    font-size: 1.11rem;
    display: block;
    margin-bottom: 2px;
}

.about-proveedores-icon {
    font-size: 2rem;
    color: #20ccab;
}

@media (max-width: 991px) {
    .about-proveedores-title {
        font-size: 2rem;
    }

    .about-proveedores-img {
        min-height: 320px;
    }

    .about-proveedores-content {
        padding: 0 8px;
    }
}

@media (max-width: 767px) {
    .about-proveedores-section {
        margin: 0;
        width: 100%;
    }

    .about-proveedores-img-col,
    .about-proveedores-img-wrap {
        min-height: 180px;
        height: 240px;
        max-height: 320px;
    }

    .about-proveedores-img {
        min-height: 180px;
        max-height: 240px;
    }

    .about-proveedores-content {
        max-width: 100%;
        padding: 0;
    }

    .about-proveedores-title {
        font-size: 1.28rem;
    }

    .about-proveedores-highlight {
        font-size: 1rem;
    }

    .about-proveedores-text-col {
        padding: 16px 0;
        min-height: unset;
    }
}