/* ===================== */
/* ESTILOS BASE (GENERAL) */
/* ===================== */
body {
    background: linear-gradient(135deg, #eef3ff, #f8fbff);
    color: var(--color-text-body);
}

/* ===================== */
/* NAVBAR */
/* ===================== */
.navbar-brand i {
    font-size: 22px;
    color: var(--color-primary);
    /* El icono ahora usa tu marca */
}

.nav-link {
    font-weight: 500;
    color: #000 !important;
    transition: color 0.3s ease;
}

.nav-link.active,
.nav-link:hover {
    /* Reemplazado el azul gen茅rico por tu color de marca */
    color: var(--color-primary) !important;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--color-danger);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 50%;
}

.cart-badge-mobile {
    position: absolute;
    background: var(--color-danger);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 50%;
}

#navbar {
    position: sticky;
    top: 0;
    z-index: 99999;
    background: transparent;
    backdrop-filter: blur(10px);
}

/* ===================== */
/* HERO SECTION */
/* ===================== */
.hero-title {
    font-size: 55px;
    font-weight: 800;
    color: var(--color-secondary);
}

.hero-text {
    font-size: 20px;
    color: var(--color-text-body);
    max-width: 520px;
}

.stat-number {
    font-weight: 700;
    color: var(--color-primary);
    /* Unificado con tu marca */
    margin-bottom: 0;
}

.stat-text {
    font-size: 14px;
    color: #666;
}

.hero-slider {
    background: #f1f4ff;
    padding: 15px;
    border-radius: 24px;
    max-width: 100%;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .2);
}

.hero-img {
    width: 100%;
    height: 420px;
    border-radius: 15px;
    object-fit: cover;
}

.hero-carousel-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* contenedor del carousel */
.hero-carousel {
    width: 100%;
}

/* cada slide */
.hero-slide {
    height: calc(100vh - 126px);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* imagen estilo banner flotante */
.hero-slide-img {
    width: 83%;
    max-width: 520px;
    height: auto;
    object-fit: contain;
    display: block;
    animation: heroFloat 6s ease-in-out infinite;
}

/* Responsive Hero */
@media (max-width: 575px) {
    .hero-title {
        font-size: 30px;
    }

    .hero-text {
        font-size: 15px;
    }

    .hero-img {
        height: 260px;
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-img {
        height: 340px;
    }
}

@media (min-width: 992px) {
    .hero-img {
        height: 440px;
    }
}


/* ===================== */
/* CATEGORIAS */
/* ===================== */

.title-line {
    width: 80px;
    height: 4px;
    /* Opci贸n A: Un degradado usando tu color primario y secundario */
    background: linear-gradient(to right, var(--color-primary), var(--color-primary-dark));
    border-radius: 20px;
}

.category-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.category-item.show {
    opacity: 1;
    transform: translateY(0);
}

.category-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.category-img {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 1/1;
}

.category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-card:hover img {
    transform: scale(1.12);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-overlay span {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    color: var(--bg-white);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.arrow-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 25px;
    height: 25px;
    background: var(--color-primary);
    /* Flecha con tu color */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    transform: translate(-10px, 10px);
    transition: all 0.4s ease;
    z-index: 10;
}

.category-card:hover .arrow-indicator {
    opacity: 1;
    transform: translate(0, 0);
    animation: pulse-shadow 1s infinite;
}

@keyframes pulse-shadow {
    0% {
        box-shadow: 0 0 0 0 rgba(38, 188, 160, 0.7);
    }

    /* Ajustado al RGB de tu color */
    70% {
        box-shadow: 0 0 0 10px rgba(38, 188, 160, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(38, 188, 160, 0);
    }
}

/* ===================== */
/* PRODUCTOS DESTACADOS */
/* ===================== */

.product-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 14px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.product-img {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    overflow: hidden;
}

.product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.08);
}

.product-body h6 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 38px;
    line-height: 1.3;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-secondary);
    /* O usa var(--color-primary) si prefieres precio en verde */
    margin-top: auto;
}

.old-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
    font-weight: 400;
}

.product-stock {
    font-size: 13px;
    color: var(--color-success);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--color-danger);
    color: white;
    padding: 4px 12px;
    font-size: 11px;
    border-radius: 50px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

.product-body .btn {
    font-size: 14px;
    padding: 10px;
    border-radius: 12px;
    width: 100%;
    font-weight: 600;
    transition: all 0.3s ease;
    /* Si el bot贸n es un enlace simple */
    background-color: var(--color-primary);
    color: white;
    border: none;
}

.product-body .btn:hover {
    background-color: var(--color-primary-dark);
}

/* Responsive Products */
@media (max-width: 575px) {
    .product-img {
        height: 130px;
    }

    .product-body h6 {
        font-size: 13px;
        min-height: 34px;
    }

    .product-price {
        font-size: 16px;
    }

    .product-body .btn {
        font-size: 12px;
        padding: 8px;
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    .product-img {
        height: 160px;
    }

    .product-body h6 {
        font-size: 14px;
    }

    .product-price {
        font-size: 17px;
    }
}

@media (min-width: 992px) {
    .product-img {
        height: 200px;
    }
}

/* ===================== */
/* ABOUT SECTION */
/* ===================== */
.about-section {
    background: var(--bg-light);
}

.about-img {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    height: 400px;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-text {
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-text-body);
    margin-bottom: 18px;
}

/* Responsive About */
@media (max-width: 575px) {
    .about-img {
        height: 260px;
        margin-top: 20px;
    }

    .about-text {
        font-size: 15px;
        text-align: center;
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    .about-img {
        height: 320px;
    }

    .about-text {
        font-size: 16px;
    }
}

@media (min-width: 992px) {
    .about-img {
        height: 400px;
    }
}

/* ===================== */
/* FOOTER */
/* ===================== */
.footer-dark {
    background: linear-gradient(135deg, #0d1b2a, #1b263b);
    color: var(--color-text-light);
    font-size: 15px;
    padding-top: 60px;
    padding-bottom: 30px;
}

.footer-logo {
    color: var(--bg-white);
    font-weight: 800;
    font-size: 24px;
    display: inline-block;
    margin-bottom: 15px;
}

.footer-text {
    line-height: 1.6;
    text-align: left;
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-title {
    color: var(--bg-white);
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 18px;
    position: relative;
}

.footer-title::after {
    content: '';
    display: block;
    height: 3px;
    background: var(--color-primary);
    margin-top: 8px;
    border-radius: 2px;
}

.footer-links,
.footer-social {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-social li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-social a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover,
.footer-social a:hover {
    color: var(--color-primary);
    padding-left: 8px;
    transform: translateX(2px);
}

.footer-social i {
    margin-right: 10px;
    font-size: 18px;
    width: 25px;
    text-align: center;
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 30px 0 20px;
}

.footer-copy {
    font-size: 14px;
    color: #adb5bd;
    text-align: center;
}

.dev-link {
    color: #adb5bd;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.dev-link:hover {
    color: var(--color-primary);
}

.btn-whatsapp {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;

    display: flex;
    align-items: center;
    gap: 8px;

    background: #25D366;
    color: #fff;
    padding: 12px 16px;
    border-radius: 50px;

    font-size: 14px;
    font-weight: 600;
    text-decoration: none;

    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.btn-whatsapp i {
    font-size: 20px;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: #fff;
}


/* ===================== */
/* Estilos Correcciones en Bootstrap */
/* ===================== */

.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.text-primary {
    color: var(--color-primary) !important;
}

.border-primary {
    border-color: var(--color-primary) !important;
}

.btn-outline-primary {
    color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}

.btn-outline-primary:hover {
    color: var(--bg-white) !important;
    border-color: var(--color-text-light) !important;
    background-color: var(--color-primary) !important;
}

.btn:hover {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: var(--bg-white) !important;
}

.btn-link.text-danger:hover {
    background-color: transparent !important;
    border-color: transparent !important;
    color: var(--color-danger) !important;
    transform: translateX(2px);
}

.breadcrumb {
    font-size: 15px !important;
    font-weight: lighter !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: '>';
}

.page-item:last-child .page-link,
.page-item:first-child .page-link {
    border-radius: 50% !important;
}