/* ===================== BASE ===================== */
body {
    background-color: #ffffff;
    font-family: 'Poppins', sans-serif;
    margin: 0;
}

h3 {
    margin: 20px 0 10px;
}

/* ===================== HEADER ===================== */

header {
  background: linear-gradient(135deg, #1a1a1a, #2b2b2b);
  color: white;

  padding: 8px 15px;
  text-align: center;

  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}



.header-contenido {
    max-width: 1200px;
    margin: auto;
}

.logo {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: 0.2s;
}

.logo:hover {
    transform: scale(1.03);
}

.subtitulo {
    margin-top: 5px;
    font-size: 14px;
    opacity: 0.9;
}

/* ===================== BANNER ===================== */
.banner {
    width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
}

.banner img {
    width: 100%;
    display: block;
    transition: opacity 1.2s ease-in-out;
}

/* ===================== INFO LOCAL ===================== */
.info-local {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.info-local img {
    width: 90%;
    max-width: 1100px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.info-local img:hover {
    transform: scale(1.02);
}

/* ===================== TITULOS ===================== */
.titulo-seccion {
    text-align: center;
    margin: 50px 0 30px;
}

.titulo-seccion h2 {
    font-size: 28px;
    color: #333;
}

.titulo-seccion p {
    color: #777;
}

.titulo-seccion h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: #ff914d;
    margin: 10px auto;
}

/* ===================== CATEGORIAS ===================== */
.grid-categorias {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.categoria-card {
    height: 180px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    font-weight: bold;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: 0.2s;
}

.categoria-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.categoria-card span {
    position: relative;
    z-index: 1;
}

.categoria-card:hover {
    transform: scale(1.05);
}

/* imágenes */
.perro { background-image: url('../img/perro.jpg'); }
.gato { background-image: url('../img/gato.jpg'); }
.accesorios { background-image: url('../img/accesorios.jpg'); }
.otros { background-image: url('../img/otros.jpg'); }


/* ===================== PRODUCTOS ===================== */
.productos, #catalogo {
    background-color: #f9f9f9;
    border-radius: 10px;
    margin: 20px;
    padding: 20px;
}

.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* 🧱 CARD */
.producto {
    display: flex;
    flex-direction: column;
    height: 100%;

    padding: 15px;
    border-radius: 16px;
    background-color: white;

    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.25s ease;

    overflow: hidden;
    position: relative;
}

/* ✨ HOVER SOLO EN PC */
@media (hover: hover) {
    .producto:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }
}

/* 🖼️ IMAGEN */
.producto img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;

    transition: transform 0.35s ease;
}

@media (hover: hover) {
    .producto:hover img {
        transform: scale(1.06);
    }
}

/* 📦 CONTENIDO */
.producto-contenido {
    flex-grow: 1;
}

/* 🎯 ACCIONES */
.producto-acciones {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 🔗 LINKS */
.producto a {
    text-decoration: none;
    color: inherit;
}

/* 🧠 TITULO */
.producto h3 {
    margin: 10px 0 5px;
    font-size: 16px;
    min-height: 48px;
    transition: color 0.2s ease;
}

.producto:hover h3 {
    color: #ff914d;
}





/* ===================== PRECIOS ===================== */

.precios {
    margin: 10px 0;
    padding: 8px;
    background-color: #fafafa;
    border-radius: 8px;
}

.precio {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
}


.precio-kilo {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-top: 4px;
}


/* detalle */
.precios-detalle {
    margin: 15px 0;
}

.precios-detalle .precio {
    font-size: 22px;
}

.precios-detalle .precio-kilo {
    font-size: 16px;
}


/* ===================== BOTONES ===================== */
button {
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Ver producto */
.btn-ver {
    width: 100%;
    margin-top: 10px;
    background: linear-gradient(135deg, #2b2b2b, #000);
    color: white;
    padding: 10px;
    font-weight: 600;
}

.btn-ver:hover {
    background-color: #000;
    transform: scale(1.03);
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}



/* WhatsApp */
.btn-wsp {
    width: 100%;
    margin-top: 8px;
    background-color: #25D366;
    color: white;
    padding: 10px;
    font-weight: 600;
}

.btn-wsp:hover {
    transform: scale(1.03);
    background-color: #1ebe5d;
}


/* Volver */
.btn-volver {
    margin-bottom: 15px;
    background: none;
    font-size: 16px;
    color: #555;
}

.btn-volver:hover {
    text-decoration: underline;
}

/* ===================== FILTROS ===================== */
.filtros button {
    margin: 6px;
    padding: 12px 22px;
    border-radius: 30px;
    background-color: #f0f0f0;
    color: #333;
    font-size: 15px;
    cursor: pointer;
}

.filtros button:hover,
.filtros button.activo {
    background-color: #ff914d;
    color: white;
}


.sin-productos {
  text-align: center;
  font-size: 18px;
  color: #777;
  margin-top: 40px;
}


/* ===================== BUSCADOR ===================== */
#buscador {
    padding: 10px;
    max-width: 300px;
    width: 100%;
    margin-bottom: 20px;
}

/* ===================== BREADCRUMB ===================== */
#breadcrumb {
    margin: 10px 0;
    font-size: 14px;
}

#breadcrumb span {
    cursor: pointer;
    color: #007bff;
}

#breadcrumb span:hover {
    text-decoration: underline;
}

#breadcrumb span:last-child {
    color: #333;
    cursor: default;
}

/* ===================== FOOTER ===================== */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

/* ===================== WHATSAPP FLOAT ===================== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    font-size: 24px;
    padding: 15px;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {

    /* HEADER */
  .header-contenido {
    padding: 8px 10px;
    text-align: center;
  }

  .logo {
    font-size: 18px;
  }

  .subtitulo {
    font-size: 12px;
  }

  /* 📂 CATEGORÍAS */
  .grid-categorias {
    grid-template-columns: 1fr;
  }

  .categoria-card {
    height: 140px;
    font-size: 20px;
  }

  /* 🛒 PRODUCTOS */
  .grid-productos {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .producto {
    padding: 8px;
  }

  .producto img {
    height: 110px;
    object-fit: contain;
  }

  .producto h3 {
    font-size: 13px;
    margin: 5px 0;
  }

  .producto p {
    font-size: 12px;
    margin: 3px 0;
  }

  .precios p {
    font-size: 13px;
  }

  .producto button {
    font-size: 11px;
    padding: 6px;
  }

  /* 🔍 BUSCADOR + ORDEN */
  #buscador {
    font-size: 14px;
    padding: 8px;
  }

  .orden-select {
    width: 100%;
    font-size: 14px;
  }

}

/* ===================== PARA EL VER PRODUCTO ===================== */
/* CONTENEDOR DEL DETALLE */
#detalle-producto {
    display: flex;
    justify-content: center;
    padding: 30px 15px;
}

/* TARJETA DEL PRODUCTO */
.detalle-card {
    max-width: 500px;
    width: 100%;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    text-align: center;
}

/* IMAGEN CONTROLADA */
.detalle-card img {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 15px auto;
    display: block;
    border-radius: 10px;
}

/* BOTÓN WHATSAPP (ARREGLADO) */
.detalle-card .btn-wsp {
    width: auto;
    padding: 12px 20px;
    font-size: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

/* BOTÓN VOLVER */
.detalle-card .btn-volver {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 10px 16px;
    margin-bottom: 15px;

    font-size: 15px;
    font-weight: 600;

    color: #333;
    background-color: #f2f2f2;

    border: none;
    border-radius: 8px;

    cursor: pointer;
    transition: all 0.2s ease;
}

/* Hover */
.detalle-card .btn-volver:hover {
    background-color: #e0e0e0;
    transform: translateX(-3px);
}



.detalle-card .btn-volver:hover {
    text-decoration: underline;
}


/* BOTÓN DEL CATÁLOGO */

.catalogo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;

    position: sticky;
    top: 0;

    background: white; /* importante para que no se vea transparente */
    z-index: 1000;     /* para que quede por encima */
    padding: 10px;
}


.btn-volver {
    padding: 8px 14px;
    background-color: #f2f2f2;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.btn-volver:hover {
    background-color: #e0e0e0;
}

/* Ordenar productos */
.orden-select {
    padding: 10px 15px;
    margin: 10px 0 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    cursor: pointer;
}

/* BOTÓN ARIBA */

.btn-arriba {
  position: fixed;

  top: 20px;
  left: 50%;
  transform: translateX(-50%);

  background-color: #333;
  color: white;

  border: none;
  border-radius: 20px;

  padding: 8px 16px;

  font-size: 14px;
  cursor: pointer;

  box-shadow: 0 4px 10px rgba(0,0,0,0.3);

  z-index: 1000;
}