body {
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* Asegurar que el contenedor no se expanda de más */
.container,
.container-fluid {
    max-width: 89%;
    margin: 0 auto;
}

/* ====== Colores de encabezado personalizados ====== */
header.bg-darks {
    background-color: #FE8100;
}

header, .navbar-main {
    background-color: #174FB0;
    color: #fff !important;
}

/* Logo del navbar */
.navbar-logo {
    height: 90px;
    max-width: 230px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

/* Textos y enlaces */
.navbar-main .navbar-brand,
.navbar-main .nav-link,
.navbar-main .bi {
    color: #fff !important;
}

.navbar-main .nav-link:hover,
.navbar-main .navbar-brand:hover {
    opacity: 0.85;
}

/* ====== Navbar ====== */
.navbar-brand {
    font-size: 1.5rem;
}

/* Buscador */
.search-bar input {
    border: none !important;
    border-radius: 0.375rem 0 0 0.375rem !important;
}

.search-bar input::placeholder {
    color: #888;
}

.search-bar button {
    border-radius: 0 0.375rem 0.375rem 0 !important;
}

.search-bar .btn-light {
    background-color: #fff !important;
    color: #174FB0 !important;
}

.search-bar .btn-light:hover {
    background-color: #e9ecef !important;
}

.navbar-main .bi-cart {
    color: #fff !important;
}

/* ====== Elemento categorias ====== */
.category-list {
    height: 490px;
    margin-top: 0px;
    margin-bottom: 0px;
}

.category-list a {
    color: #212529;
    transition: all 0.05s ease;
    border-radius: 6px;
    padding-left: 10px;
}

.category-list a:hover {
    background-color: #174FB0;
    color: #fff !important;
}

.category-list a:hover i {
    color: #fff !important;
}

/* ====== Slider Principal ====== */
#mainCarousel,
#mainCarousel .carousel-inner,
#mainCarousel .carousel-item {
    height: 490px;
}

#mainCarousel img {
    height: 100%;
    width: 100%;
    object-fit: fill;
    border-radius: 0.75rem;
}

@media (max-width: 1200px) {
    #mainCarousel,
    #mainCarousel .carousel-inner,
    #mainCarousel .carousel-item {
        height: 500px;
    }
}

@media (max-width: 768px) {
    #mainCarousel,
    #mainCarousel .carousel-inner,
    #mainCarousel .carousel-item {
        height: 380px;
    }
}

@media (max-width: 576px) {
    #mainCarousel,
    #mainCarousel .carousel-inner,
    #mainCarousel .carousel-item {
        height: 250px;
    }
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #FE8100;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    opacity: 1;
    background-color: #174FB0;
    transform: scale(1.3);
}

.carousel-indicators {
    bottom: 10px;
}

/* ======= Banners promocionales ======= */
.banner-small-card {
    overflow: hidden;
    cursor: pointer;
}

.banner-small-card img {
    transition: transform 0.4s ease;
}

.banner-small-card:hover img {
    transform: scale(1.05);
}

.banner-small-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    padding: 1.5rem;
    border-radius: 0.75rem;
    transition: background 0.3s ease;
}

.banner-small-card:hover .banner-overlay {
    background: rgba(0, 0, 0, 0.55);
}

.banner-small-overlay h5 {
    font-size: 1.25rem;
    font-weight: 700;
}

.banner-small-overlay p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.banner-small-btn-custom-orange {
    background-color: #FE8100;
    color: white;
    border: 2px solid #FE8100;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(254, 129, 0, 0.3);
}

.banner-small-btn-custom-orange:hover {
    background-color: #FE8100;
    color: white;
    border-color: white;
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 129, 0, 0.6);
    animation: pulse-button 1.5s infinite;
}

@keyframes pulse-button {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(254, 129, 0, 0.6);
    }
    50% {
        box-shadow: 0 8px 25px rgba(254, 129, 0, 0.8);
    }
}

/* ======= Banners promocionales Medium ======= */
.banner-medium-card {
    overflow: hidden;
    cursor: pointer;
    min-height: 400px;
}

.banner-medium-card img {
    transition: transform 0.4s ease;
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.banner-medium-card:hover img {
    transform: scale(1.05);
}

.banner-medium-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    padding: 2.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    transition: background 0.3s ease;
}

.banner-medium-card:hover .banner-medium-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
}

.banner-medium-overlay h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-medium-overlay p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.banner-medium-btn-custom-orange {
    background-color: #FE8100;
    color: white;
    border: 2px solid #FE8100;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(254, 129, 0, 0.3);
    padding: 0.75rem 2rem;
}

.banner-medium-btn-custom-orange:hover {
    background-color: #FE8100;
    color: white;
    border-color: white;
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 129, 0, 0.6);
    animation: pulse-button 1.5s infinite;
}

/* ======= Carrusel horizontal de productos ======= */
.product-row {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1rem;
    padding: 10px 0;
}

.product-row::-webkit-scrollbar {
    display: none;
}

.product-row .card {
    min-width: 200px;
    flex: 0 0 auto;
    transition: transform 0.3s ease;
}

.product-row .card:hover {
    transform: translateY(-4px);
}

/* Flechas laterales */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 10;
    cursor: pointer;
}

.slider-btn.left {
    left: -10px;
}

.slider-btn.right {
    right: -10px;
}

.slider-btn i {
    font-size: 1.2rem;
    color: #174FB0;
}

.slider-btn:hover {
    background-color: #174FB0;
}

.slider-btn:hover i {
    color: #fff;
}

/* ====== Cards de productos ====== */
.card {
    width: 219px;
    transition: 0.2s ease;
}

/* ====== Cards personalizadas sin restricción de ancho ====== */
.card-custom {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.375rem;
    transition: 0.2s ease;
}

.card-custom:hover {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-img-top {
    padding: 30px;
    border-radius: 16px;
}

.card:hover {
    transform: translateY(-4px);
    transition: 0.3s;
}

.product-img-container {
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.product-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card-body {
    padding: 0.75rem;
}

.card-title {
    font-size: 0.85rem;
}

.card .btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

/* ====== Newsletter ====== */
.newsletter input {
    max-width: 400px;
    margin: 0 auto;
}

/* ====== Footer ====== */
.bg-custom-dark-orange {
    background-color: #FE8100;
}

.text-custom-orange {
    color: #FFF;
}

.border-custom-orange-50 {
    border-color: rgba(254, 129, 0, 0.5) !important;
}

.btn-social-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    border-radius: .25rem;
    background-color: #FE8100;
    color: #005F8B;
    border: 1px solid #005F8B;
    transition: all 0.3s ease;
}

.btn-social-icon:hover {
    background-color: #174FB0;
    color: #FE8100;
    border: 1px solid #FE8100;
}

/* ====== Focus inputs ====== */
input:focus,
textarea:focus,
select:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(254, 129, 0, 0.4);
    border: 3px solid #FE8100 !important;
}

/* ====== Detalle de producto ====== */
.thumbnail-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-right: 20px;
}

.thumbnail-container img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.thumbnail-container img:hover {
    transform: scale(1.05);
    border-color: #0d6efd;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.main-image {
    width: 100%;
    height: 500px;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.main-image:hover {
    transform: scale(1.08);
}

/* === Colores disponibles === */
.color-section {
    margin-top: 20px;
}

.color-section h5 {
    font-weight: 600;
    margin-bottom: 10px;
}

.color-options {
    display: flex;
    gap: 10px;
}

.color-circle {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #ddd;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.color-circle:hover, .color-circle.active {
    transform: scale(1.2);
    border-color: #0d6efd;
}

/* ====== Cards de carrusel con altura fija ====== */
.product-carousel-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.product-carousel-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title-fixed {
    height: 2.6em;
    line-height: 1.3em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.product-brand-fixed {
    height: 1.5em;
    line-height: 1.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
