.header-brand-link {
    font-size: 24px;
    color: #ffffff;
    text-decoration: none;
}

.contact-start {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

#floating-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px;
    background-color: #5cb85c;
    color: #fff;
    border-radius: 5px;
    display: none;
    cursor: pointer;
    transition: opacity 0.5s ease-out;
}

#floating-alert.show {
    display: block;
}

#close-alert {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

#nav-scroller {
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 0;
    height: 8rem !important;
}

.brand-card {
    display: inline-block;
    text-align: center;
    margin: 0 10px;
    width: 120px;
}

.brand-link {
    text-decoration: none;
    color: inherit;
}

.brand-link img {
    width: 100px;
    /* Ancho fijo */
    height: 80px;
    /* Alto fijo */
    object-fit: contain;
    /* Recorta la imagen para que llene el espacio sin deformarse */
    border-radius: 8px;
    /* Opcional: bordes redondeados para un mejor estilo */
    padding: 5px;
}

.brand-name {
    font-size: 0.9em;
    margin-top: 5px;
}

/* * SLIDER */
#dynamic-slider {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    max-height: 100%;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    margin-bottom: 100px;
}

.slider-wrapper::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.8) 60%,
        #f5f5f5 100%
    );

    z-index: 5;
    pointer-events: none;
}

@media (max-width: 768px) {
    #dynamic-slider img {
        height: 200px;
        object-fit: cover;
    }
}

@media (max-width: 768px) {
    .slider-wrapper {
        margin-bottom: 60px;
    }
}

/* *  CARD OVERLAY DOWNSIDE OF SLIDER */
.cards-overlay {
    position: absolute;
    bottom: -50px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
}

@media (max-width: 768px) {
    .cards-overlay {
        position: relative;
        bottom: 0;
        margin-top: -30px;
    }
}

.custom-card {
    border: none;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: #fff;
    min-height: 300px;
}

.cards-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px;
    width: 90%;
}

.mini-card {
    min-width: 160px;
    height: 110px; /* altura fija = consistencia */
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mini-card:hover {
    transform: translateY(-3px);
}

.mini-card-title {
    font-size: 14px;
    font-weight: 600;
}

.mini-card-desc {
    height: 40px; /* reserva espacio SIEMPRE */
    font-size: 12px;
    color: #666;
    overflow: hidden;
}

.mini-card-action {
    height: 28px; /* espacio fijo aunque no haya botón */
}

/** PRODUCTS SECTION */

.product-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.2s;
    background: #fff;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.product-img {
    height: 200px;
    object-fit: contain;
    padding: 10px;
    background: #fff;
}

.product-title {
    font-size: 14px;
    height: 40px;
    overflow: hidden;
}

.product-price {
    font-size: 20px;
    font-weight: bold;
    color: #000;
}

.shipping {
    color: #00a650; /* verde tipo ML */
    font-size: 13px;
}

@media (max-width: 768px) {
    .custom-card {
        min-height: 120px;
        padding: 12px;
    }
}

/** SERVICES SECTION */
.service-section {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.service-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
}

.service-text {
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn-main {
    background: #3483fa; /* estilo ML */
    color: #fff;
    border-radius: 8px;
    padding: 10px 20px;
    border: none;
}

.btn-main:hover {
    background: #2968c8;
}

.service-img {
    border-radius: 12px;
    height: 250px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .service-section {
        padding: 20px;
    }

    .service-img {
        height: 180px;
    }
}

/** CATEGORIES SECTION */

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}

.category-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px 10px;
    text-align: center;
    text-decoration: none;
    color: #000;
    transition: 0.2s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.category-card img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 10px;
}

.category-card span {
    font-size: 14px;
    display: block;
}

.category-card.more {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}
