/* ===== BASE ===== */
body {
    background: #f5f2ee;
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
}



/* -------- SLIDER -------- */

.hero-slider {
    position: relative;
    width: 95.85%;
    height: 520px;
    margin: 30px auto;
    border-radius: 35px;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    padding: 60px;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        to right,
        rgba(122, 28, 28, 0.65),
        rgba(122, 28, 28, 0.15)
    );
}

.content {
    position: relative;
    color: white;
    max-width: 500px;
    z-index: 2;
}

.badge {
    background: #d4b08a;
    color: #7a1c1c;
    padding: 8px 18px;
    border-radius: 25px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.content h1 {
    font-size: 50px;
    font-weight: 800;
}

.content p {
    font-size: 18px;
    margin: 10px 0;
}

.price {
    font-size: 45px;
    font-weight: bold;
    color: #d4b08a;
    margin: 15px 0;
}

.btn-hero {
    background: #7a1c1c;
    color: white;
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-hero:hover {
    background: #a32626;
    transform: scale(1.05);
}

/* -------- FLECHAS -------- */

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    border: none;
    font-size: 24px;
    width: 48px;
    height: 48px;
    cursor: pointer;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 10;
}

.prev { left: 25px; }
.next { right: 25px; }

.prev:hover,
.next:hover {
    background: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.1);
}

/* -------- PUNTOS -------- */

.dots {
    position: absolute;
    bottom: 25px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.dots span {
    height: 12px;
    width: 12px;
    margin: 0 6px;
    background: rgba(255,255,255,0.6);
    display: inline-block;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dots span:hover {
    transform: scale(1.2);
}

.dots span.active {
    background: #d4b08a;
    transform: scale(1.4);
}
/* =========================
   CATALOGO GENERAL
========================= */

.catalog {
    width: 95%;
    margin: 60px auto;
}

/* =========================
   BUSCADOR
========================= */

.search-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 15px;
}

.search-bar input {
    width: 400px;
    padding: 14px 20px;
    border-radius: 30px;
    border: 1px solid #ddd;
    font-size: 16px;
    outline: none;
    background: #ffffff;
}

.search-bar input:focus {
    border-color: #7a1c1c;
}

.search-bar button {
    background: #7a1c1c;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.search-bar button:hover {
    background: #a32626;
}

/* =========================
   GRID - 4 PRODUCTOS
========================= */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* Tablet */
@media (max-width: 1100px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Móvil */
@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   CARD
========================= */

.product-card {
    background: #ffffff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(122,28,28,0.15);
}

/* =========================
   IMAGEN
========================= */

.product-img {
    position: relative;
    height: 240px;
    background: #f3f3f3;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

/* =========================
   BADGE
========================= */

.badge-stock {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #c75b5b;
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* =========================
   INFO
========================= */

.product-info {
    padding: 25px;
}

.product-info h3 {
    margin: 0 0 5px;
    font-size: 18px;
    color: #333;
}

.sku {
    font-size: 13px;
    color: #888;
}

.price-card {
    font-size: 26px;
    font-weight: bold;
    color: #b8860b;
    margin: 15px 0;
}

/* =========================
   STOCK
========================= */

.stock {
    font-size: 14px;
    color: #b8860b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background: #b8860b;
    border-radius: 50%;
}

/* =========================
   BOTON AGREGAR
========================= */

.btn-add {
    width: 100%;
    border: 2px solid #7a1c1c;
    background: transparent;
    padding: 12px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    color: #7a1c1c;
}

.btn-add:hover {
    background: #7a1c1c;
    color: #ffffff;
}
/* =========================
   FOOTER CARNICERÍA
========================= */

.footer {
    background: linear-gradient(135deg, #7a1c1c, #5e1414);
    color: #f5f2ee;
    padding: 70px 5% 25px;
    margin-top: 80px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

/* TITULOS */

.footer h3 {
    color: #b8860b;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.footer p {
    font-size: 15.5px;
    line-height: 1.7;
    margin-bottom: 10px;
}

/* MARCA */

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #b8860b;
    font-size: 22px;
    margin-bottom: 15px;
}

.footer-brand img {
    width: 45px;
}

/* REDES */

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #f5f2ee;
    transition: 0.3s;
}
.footer-social a img{
    width: 25px;
    height: 25px;
}

.footer-social a:hover {
    background: #a32626;
    transform: translateY(-4px);
}

/* CERRADO */

.cerrado {
    color: #ffcc80;
    font-weight: bold;
}

/* FOOTER BOTTOM */

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 50px;
    padding-top: 20px;
    text-align: center;
    font-size: 15.5px;
    opacity: 0.85;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.footer-col p img{
    width: 15.5px;
    height: 15.5px;
}
.footer-col .logo_d {
    width: 90px;
    height: 45px;
}
/* Carrito flotante */
#floatingCart {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #fff;
    border: 2px solid #c79c2b; /* color dorado similar a tu imagen */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
}

#floatingCart img {
    width: 30px;
    height: 30px;
}

#cartCount {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #7a1c1c;
    color: white;
    font-size: 14px;
    font-weight: bold;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* Modal del carrito */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0,0,0,0.6); 
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.modal-content h2 {
    margin-bottom: 15px;
}

.modal-content .close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

#cartItems p {
    margin-bottom: 10px;
}

.cart-total {
    font-weight: bold;
    margin-top: 15px;
    font-size: 18px;
    text-align: right;
}
/* Tarjetas del carrito */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.cart-item .item-info {
    display: flex;
    flex-direction: column;
}

.cart-item .item-info span {
    font-size: 0.9rem;
    color: #555;
}

.cart-item .item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item .remove-btn {
    background: #7a1c1c;
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
}

#checkoutBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background-color: #7a1c1c;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    padding: 10px 15px;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.3s;
}

#checkoutBtn:hover {
    background-color: #a32626;
}