.hero-wrap {
    position: relative;
}

html,
body {
    overflow-x: hidden;
}

.hero-wrap {
    background-image: url('/img/website/home/fondo.png');
    height: 90vh;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* Móviles: baja el vh para que no se coma la pantalla */
@media (max-width: 576px) {
    .hero-wrap {
        height: auto;
    }
}

/* Opcional: tablets */
@media (min-width: 577px) and (max-width: 991px) {
    .hero-wrap {
        height: auto;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .38) 0%, rgba(0, 0, 0, .22) 55%, rgba(0, 0, 0, .06) 100%);
    pointer-events: none;
}

.beneficios-busqueda {
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .65);
}

.beneficios-busqueda i {
    color: #fff !important;
    line-height: 1;
}

.promo-cards-wrap {
    margin-top: -60px;
    position: relative;
    z-index: 5;
}

.promo-card {
    position: relative;
    overflow: hidden;
    border-radius: 0px;
    border-radius: 20px;
    height: 400px;
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .16);
}

@media (max-width: 991px) {
    .promo-cards-wrap {
        margin-top: -40px;
    }

    .promo-card {
        height: 200px;
    }
}

/* Seccion de inicio */

.carousel-control-prev,
.carousel-control-next {
    z-index: 1000;
}

@media (max-width: 768px) {

    .product-img {
        width: 200px !important;
    }

    .img-bg {

        height: 30vh !important;
    }
}

.fa-star {
    color: #FFD717;
}

.yellow-border {
    border-bottom: 1px solid #FFD717;
}


.img-bg {
    background-image: url('/img/website/home/banner7.jpg');
    background-size: cover;
    background-position: bottom center;
    height: 60vh;
}


.badge-discount {
    position: absolute;
    top: 0px;
    right: 0px;
    background-color: #194E96;
    color: white;
    padding: 5px 50px;
    z-index: 10;
    border-bottom-left-radius: 20px
}

#measureBreadcrumb .step,
#vehicleBreadcrumb .step {
    background-color: #f1f1f1;
    color: #6c757d;
    transition: all 0.3s ease;
    cursor: pointer;
}

#measureBreadcrumb .step.active,
#vehicleBreadcrumb .step.active {
    background-color: #0040b4;
    color: #fff;
}

#measureBreadcrumb .step.completed,
#vehicleBreadcrumb .step.completed {
    background-color: #154da0;
    color: #fff;
}

.btn-outline-secondary {
    border: 1px solid #d8dadd;
    color: black;
}

.btn-outline-secondary:hover {
    color: black;
    background-color: #d8dadd;
    border: 1px solid #d8dadd;
}

.gray-card {
    background-color: #f2f2f2;
}

#measureModal .modal-content,
#vehicleModal .modal-content {
    height: 400px;
    display: flex;
    flex-direction: column;
}

#measureModal .modal-body,
#vehicleModal .modal-body {
    overflow-y: auto;
    flex: 1 1 auto;
}

.btn-close {
    width: 25px;
    height: 25px;
    background-color: #e4e8ee !important;
    opacity: 1;
}

.icons-size-md {
    width: 50px;
    height: 50px;
}

.feature-item {
    margin-bottom: 1rem;
    /* Espacio entre cada elemento de la lista */
}

/* Ejemplo */
.bg-blue-serna-light {
    background-color: #e6f2ff;
}

/* --- ESTILOS PARA FLUJO HORIZONTAL MINIMALISTA --- */

:root {
    --color-primary: #024797;
    --color-dark: #1a2a4b;
    --color-separator: #d1d9e6;
}

.flow-icon-minimal {
    padding: 20px 0;
    position: relative;
}

/* Ícono principal destacado */
.step-icon-minimal {
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
    position: relative;
    transition: transform 0.3s;
}

.step-icon-minimal:hover {
    transform: scale(1.05);
}

/* Conector simple (línea) */
@media (min-width: 768px) {
    .step-connector-minimal {
        position: absolute;
        top: 60px;
        /* Alinear con el centro del ícono */
        right: 0;
        width: 100%;
        /* Cubre el espacio hasta el siguiente paso */
        height: 3px;
        background-color: var(--color-separator);
        z-index: 5;
        /* La pseudo-clase lo posiciona a la derecha del contenedor */
    }

    /* Posiciona el conector entre las columnas */
    .flow-icon-minimal .col-md-4:nth-child(1) .step-connector-minimal {
        width: 100%;
        left: 50%;
        /* Inicia en el centro de la columna 1 */
    }

    .flow-icon-minimal .col-md-4:nth-child(2) .step-connector-minimal {
        width: 100%;
        left: 50%;
        /* Inicia en el centro de la columna 2 */
    }

    .flow-icon-minimal .col-md-4:last-child .step-connector-minimal {
        display: none !important;
        /* El último paso no conecta */
    }
}

/* En móvil, los contenedores se apilan */
@media (max-width: 767.98px) {
    .flow-icon-minimal .col-12 {
        margin-bottom: 30px;
        padding-bottom: 30px;
        border-bottom: 2px dashed var(--color-separator);
        /* Separador en móvil */
    }

    .flow-icon-minimal .col-12:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
}

/* Seccion porque elegirnos? */
.bg-yellow-serna {
    background-color: #ffd71f;
}


.icon-blue-serna i {
    color: #003366;
}

.why-choose-us-hero {
    position: relative;
    background-image: url('/img/website/home/OTR_2.0.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: #fff;
    min-height: 400px;
}

.why-choose-us-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 51, 102, 0.6);
    /* Overlay azul oscuro con opacidad */
    z-index: 1;
}

.why-choose-us-hero .container {
    position: relative;
    z-index: 2;
}

.feature-card-floating {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.feature-card-floating:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.feature-card-floating .icon-wrapper {
    display: flex;
    margin-bottom: 10px;
}

.feature-card-floating .icon-wrapper i {
    font-size: 2rem;
    margin-right: 15px;
    color: #0c1f52;
}

.feature-card-floating h5 {
    color: #0c1f52;
    font-weight: bold;
    margin-bottom: 5px;
    margin-top: 0;
}

.feature-card-floating p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

.features-grid-section {
    margin-top: -80px;
    position: relative;
    z-index: 3;
    margin-bottom: 50px;
}

/* Carrusel de servicios */
/* DESKTOP */
#carouselTab1Desktop .carousel-control-prev {
    left: -150px !important;
}

#carouselTab1Desktop .carousel-control-next {
    right: -150px !important;
}

/* Contenedor general */
#peek-carousel {
    height: 450px;
    position: relative;
}

/* Track que mueve los items */
#peek-carousel .carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    padding: 0 40px;
}

/* Cada item del carrusel */
#peek-carousel .carousel-item {
    position: relative;
    flex: 0 0 400px;
    /* ancho de cada card */
    height: 450px;
    margin: 0 10px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    color: #fff;
    display: block;
    padding: 40px 20px;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.5s, opacity 0.5s;
}

/* Overlay azul semitransparente sobre la imagen */
#peek-carousel .carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 53, 94, 0.55);
    z-index: 1;
}

/* Texto y botón por encima del overlay */
#peek-carousel .carousel-item>* {
    position: relative;
    z-index: 2;
}

/* Botones de navegación */
.btn-peek-carousel,
.btn-peek-carousel:hover {
    background-color: transparent;
    border: 1px solid #194E96;
    color: #194E96;
    border-radius: 0px;
}

/* Botón tipo glass */
.glass-btn {
    background: rgba(230, 230, 230, 0.3);
    backdrop-filter: blur(8px);
    color: #fff;
    border: none;
    cursor: pointer;
    width: 60%;
    padding: 10px;
    border-radius: 5px;
}

/* Barra de progreso debajo del carrusel */
.progress-container {
    width: 200px;
    height: 3px;
    margin-top: 0.5rem;
    background-color: #e4e4e4;
}

.custom-progress {
    width: 0%;
    height: 100%;
    background-color: #727272;
    border-radius: 3px;
    transition: width 0.5s;
}

/* Responsive: pantallas pequeñas */
@media (max-width: 768px) {
    #peek-carousel {
        height: 350px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    #peek-carousel .carousel-track {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #peek-carousel .carousel-item {
        flex: 0 0 250px !important;
        margin: 0 10px !important;
        height: 350px !important;
        min-width: 0 !important;
        padding: 20px 10px !important;
    }

    .glass-btn {
        width: 80%;
    }
}

/* Product cards css */
.tire-card {
    border-radius: 1rem !important;
    overflow: hidden !important;
    background-color: white !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #dee2e6 !important;
}

.brand-logo-ribbon {
    border-bottom: 1px solid #dee2e6 !important;
    background-color: white !important;
    padding: 0.5rem 1rem;
    min-height: 45px;
    display: flex;
    align-items: center;
}

.brand-logo-horizontal {
    max-height: 50px !important;
    height: auto;
    object-fit: contain !important;
}

.card-img-top-container {
    height: 200px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: white !important;
}

.product-img {
    object-fit: contain !important;
    transition: transform 0.3s ease;
    max-width: 80%;
}

.text-primary-price {
    color: #024797 !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
}

.badge.bg-primary {
    background-color: #024797 !important;
    padding: 0.4em 0.6em !important;
    border-radius: 0.25rem !important;
}

.input-group-sm {
    max-width: 100px;
}

.input-group-sm .btn-qty {
    border-radius: 0.25rem !important;
    padding: 0.25rem 0.5rem !important;
    border-color: #dee2e6 !important;
    background-color: white !important;
    color: #6c757d !important;
}

.quantity-input {
    max-width: 50px !important;
    text-align: center !important;
    padding: 0.25rem 0 !important;
    border: 1px solid #dee2e6 !important;
}

/* Estilos para que los botones y otros elementos de las pestañas se vean bien */
.text-blue-serna-dark {
    color: #024797 !important;
    /* Aplicando el color corporativo */
}

/* Aplicando el estilo de tarjeta a la estructura del carrusel, si se usa la clase `card`*/
.carousel-inner .card {
    border-radius: 1rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #dee2e6 !important;
}

.badge-discount-circle {
    line-height: 1;
    z-index: 10;
}

.text-off {
    font-size: 0.65rem;
}

.nav-tabs-serna .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-tabs-serna .nav-link.active {
    color: #023047 !important;
    /* Tu azul oscuro */
    border-bottom-color: #0056b3 !important;
    /* Tu azul principal */
    background: none !important;
}

.nav-tabs-serna .nav-link:hover {
    border-bottom-color: #dee2e6;
}

.tire-card-custom {
    border-radius: 16px !important;
    padding: 15px;
    background: #fff;
    transition: all 0.3s ease;
    overflow: hidden;
}

.tire-card-custom:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12) !important;
}

/* Badge Circular Rojo */
.discount-circle {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e63030;
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    line-height: 1;
    z-index: 10;
}

/* Logo de Marca arriba */
.brand-logo-top {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.brand-logo-top img {
    max-height: 24px;
    max-width: 80px;
    object-fit: contain;
}

/* Ajuste de Imagen de Llanta */
.product-main-img {
    max-height: 200px;
    object-fit: contain;
}

/* Tipografías */
.brand-label {
    font-size: 0.75rem;
    color: #555;
    letter-spacing: 0.5px;
}

.tire-title-key {
    font-size: 1.2rem;
    color: #1a1a1a;
}

.text-height-limit {
    min-height: 40px;
    font-size: 0.85rem;
}

/* Botones estilo Profesional */
.btn-add-cart {
    background-color: #1e4fa1 !important;
    /* Azul de la imagen */
    color: white !important;
    border: none;
    padding: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 6px;
}

.btn-add-cart:hover {
    background-color: #1e4fa1 !important;
}

.btn-outline-features {
    border: 1px solid #1e4fa1 !important;
    color: #1e4fa1 !important;
    padding: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 6px;
}

.btn-outline-features:hover {
    background-color: #f0f7ff;
}

.card-body {
    flex-grow: 1;
}

.text-warning {
    color: #ffd71f !important;
}

/* Estilo del texto para que sea legible sobre llantas */
.benefit-text {
    color: white;
    font-size: clamp(0.6rem, 1vw, 0.75rem);
    /* Se ajusta solo según el ancho */
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    line-height: 1.1;
}

/* Quitar bordes en móvil para que no se rompa */
@media (max-width: 768px) {
    .benefit-row .border-end {
        border: none !important;
    }

    .benefit-text {
        font-size: 0.6rem;
    }
}

.brand-pill {
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, .08);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .12);

    transition: transform .12s ease, box-shadow .12s ease;
}

.brand-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .14);
}

.brand-pill__img {
    max-height: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

/* Pasos serna */
.hover-card {
    transition: transform 0.3s ease, shadow 0.3s ease;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.hover-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .1) !important;
}

.step-number {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.05);
    /* Número gigante de fondo */
    line-height: 1;
}

.icon-box i {
    display: inline-block;
    padding: 10px;
    background: rgba(var(--blue-serna-rgb), 0.1);
    border-radius: 12px;
}

/* Espacio para los indicadores debajo del banner */
.payment-carousel-box {
    padding-bottom: 60px;
}

/* Estilo de bolitas Premium */
#paymentCarousel .carousel-indicators {
    bottom: -45px;
    margin-bottom: 0;
}

#paymentCarousel .carousel-indicators [data-bs-target] {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #d8d8d8;
    /* Gris suave */
    border: 2px solid #ffffff;
    /* Aro blanco para profundidad */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 1;
    margin: 0 6px;
    transition: all 0.3s ease;
}

/* Color exacto solicitado y efecto activo */
#paymentCarousel .carousel-indicators .active {
    background-color: #1e4fa1 !important;
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(30, 79, 161, 0.4);
}