/* ======== ESTILOS GENERALES ======== */
body {
  font-family: 'Segoe UI',sans-serif, Arial;
  background: #fff;
  margin: 0;
  /*padding:15px 50px;*/
}

/* ======== ENCABEZADO ======== */
header {
  background: #ffffffd3;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 30px 0px 30px;
}

.titulo_catalogo {
  color: #1ab1ae;
  text-align: left;
  margin-bottom: 15px;
  font-size: 1.8em;  
}

.logo {
  block-size: 90px;
  width: 220px;
  height: 98px;
  padding: 2px;
  margin: 0px;
}

.header-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header-left {
  display: flex;
  flex-direction: column;
  justify-content: left;
  padding: 0px;
}

.header-center input {
  width: 280px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-top: 10px;
}

/* =========================
   TOP BAR DELIVERY
========================= */

.top-bar{

    background:#1ab1ae;
    color: white;
    padding: 5px 20px;
    font-size: 13px;
    font-weight: 500;
}

.top-bar-content{

    max-width: 1400px;

    margin: auto;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;
}

.top-bar-content span{

    display: flex;

    align-items: center;

    gap: 8px;
}

/* RESPONSIVE */
@media(max-width:768px){

    .top-bar-content{

        flex-direction: column;

        text-align: center;

        gap: 8px;
    }

}

/* ======== NAVEGACIÓN ======== */


nav {
  background: #1ab1ae;
  padding: 10px 0;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav a {
  color: #fff;
  display:block;  
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #f73b3b;
}



/* ======== CARRUSEL SWIPER ======== */
.swiper {
  width: 100%;
  height: 420px;
  margin-top: 0px;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-button-next,
.swiper-button-prev {
  color: #ff0000;
}

.swiper-pagination-bullet-active {
  background: #006400;
}

/* ======== MIGA DE PAN ======== */
.breadcrumb {
  margin: 15px;
  font-size: 14px;
}

.breadcrumb a {
  color: #1ab1ae;
  text-decoration: none;
}

.breadcrumb span {
  color: #555;
}

/* ======== CATEGORÍAS Y PRODUCTOS ======== */
.categorias, .productos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  padding: 30px;
}

.categoria-card, .producto {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  padding: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 450px;
}

.categoria-card:hover, .producto:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.categoria-card img, .producto img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 10px;
}

.categoria-card a, .producto a {
  text-decoration: none;
}

.categoria-card h3, .producto h3 {
  color: #1ab1ae;
  font-weight: bold;
  margin: 10px 0 5px;
  font-size: 1.2em;
  text-decoration: none;
}

.producto p {
  color: #555;
  font-size: 0.9em;
}

/* ======== BOTONES ======== */
.btn, .btn-buscar {
  background: #1ab1ae;
  color: #fff;
  padding: 8px 12px;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
}


.filtro-form {
  text-align: left; /* centra contenido inline como el botón */
}

.btn-buscar_lateral {
  background: #1ab1ae;
  color: #fff;
  padding: 1px 4px 4px 4px;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;  
}

.btn:hover, .btn-buscar:hover {
  background: #ff0000;
}

/* ======== PAGINADO ======== */
.paginacion {
  text-align: center;
  margin: 20px 0;
}

.pagina {
  background: #1ab1ae;
  color: #fff;
  padding: 8px 12px;
  margin: 3px;
  border-radius: 5px;
  text-decoration: none;
}

.pagina:hover {
  background: #ff0000;
}

/* ======== CONTENEDOR PRINCIPAL ======== */
.contenedor-principal {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  padding: 15px;
}

/* Panel lateral */
.buscador-lateral {
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  padding: 20px;
  height: fit-content;
}

.buscador-lateral h2 {
  color: #1ab1ae;
  text-align: center;
  margin-bottom: 15px;
  font-size: 1.4em;
  text-align: left;
}

.buscador-lateral label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  color: #333;
}

.buscador-lateral input,
.buscador-lateral select {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

/* ======== PIE DE PÁGINA ======== */
footer {
  background: #1ab1ae;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

footer p {
  margin: 5px 0;
}


/* ============================= */
/* CATALOGO */
/* ============================= */

.catalogo{
    flex:1;
    display:grid;
    /* EXACTAMENTE 4 COLUMNAS */
    grid-template-columns:repeat(4, 1fr);
    gap:25px;
    align-items:start;
}

/* TARJETAS */
.libro{
    background:white;
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
    transition:all 0.3s ease;
}

.libro:hover{
    transform:translateY(-8px);
    box-shadow:0 12px 25px rgba(0,0,0,0.15);
}

/* IMAGEN */
.libro img{
    width:100%;
    height:300px;
    object-fit:cover;
    display:block;
}

/* CONTENIDO */
.contenido-libro{
    padding:18px;
}

.libro h3{
    font-size:16px;

    line-height:1.4;

    margin-bottom:10px;

    min-height:48px;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media(max-width:1200px){

    .catalogo{
        grid-template-columns:repeat(3, 1fr);
    }

}

@media(max-width:992px){

    .contenedor-principal{
        flex-direction:column;
    }

    .sidebar-filtros{
        width:100%;

        min-width:100%;

        position:relative;
    }

    .catalogo{
        grid-template-columns:repeat(2, 1fr);

        width:100%;
    }

}

@media(max-width:600px){

    .catalogo{
        grid-template-columns:1fr;
    }

    .breadcrumb{
        padding:15px 20px;
    }

}






/* ======== CATALOGO DE PRODUCTOS ======== */
.catalogo {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  padding: 5px 20px 20px 10px;
}


.producto-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  justify-content: space-between;
  overflow: hidden;  
  height: 450; /* elimina altura fija */
}


.producto-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.producto-card img {
  width: 100%;
  aspect-ratio: 4 / 5; /* ancho vs alto */
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}


.info-producto {
  padding: 15px;
}

.info-producto h3 {
  color: #1ab1ae;
  font-size: 1.1em;
  margin: 10px 0;
}

.info-producto .categoria {
  color: #555;
  font-size: 0.9em;
  margin-top: 4px;
  margin-bottom: 4px;
}

.info-producto .precio {
  font-size: 1em;
  margin-bottom: 10px;
}

.info-producto .original {
  text-decoration: line-through;
  color: #999;
  margin-right: 5px;
}

.info-producto .descuento {
  color: #1ab1ae;
  font-weight: bold;
}

.btn-ver {
  display: inline-block;
  background: #1ab1ae;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-ver:hover {
  background: #f73b3b;
}

/* ======== PAGINACIÓN ======== */
.paginacion {
  text-align: center;
  margin: 30px 0;
}

.pagina {
  background: #1ab1ae;
  color: #fff;
  padding: 8px 12px;
  margin: 3px;
  border-radius: 5px;
  text-decoration: none;
}

.pagina:hover {
  background: #f73b3b;
}

.pagina.activa {
  background: #f73b3b;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 1200px) {
  .catalogo { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
  .catalogo { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .catalogo { grid-template-columns: 1fr; }
}


/* BUSCADOR */
.search-section{
    flex:2;
    display:flex;
    justify-content:center;    
}

.search-form{
    width:100%;
    max-width:500px;
    display:flex;
    background:#f1f1f1;
    border-radius:50px;
    overflow:hidden;
    border:2px solid transparent;
    transition:0.3s;
}

.search-form:focus-within{
    border-color:#ff0000;
}

.search-form input{
    flex:1;
    border:none;
    padding:10px 10px;
    background:none;
    outline:none;
    font-size:15px;
}

.search-form button{
    width:60px;
    border:none;
    background:#fe2a27;
    /* #f73b3b;*/
    color:white;
    cursor:pointer;
    transition:0.3s;
}

.search-form button:hover{
    background:#1ab1ae;
}


/* REDES */
.social-icons{
    display:flex;
    gap:15px;
}

.social-icons a{
    width:40px;
    height:40px;
    border-radius:50%;
    background:#fe2c30;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    transition:0.3s;
}

.social-icons a:hover{
    background:#1ab1ae;
    transform:translateY(-3px);
}

/* =========================
   BOTON WHATSAPP
========================= */

.whatsapp-float{
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 38px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    transition: transform 0.3s ease;
}

.whatsapp-float:hover{
    transform: scale(1.1);
}

/* ICONO */
.whatsapp-float i{
    color: white;
    font-size: 38px;
}

/* Responsive */
@media(max-width:768px){

    .whatsapp-float{
        width: 58px;
        height: 58px;
        font-size: 30px;
        bottom: 20px;
        right: 20px;
    }

}

/* Centrar solo el botón dentro del formulario lateral */
.filtro-form .btn-buscar_lateral {
  display: block;          /* ocupa toda la línea */
  width: 100px;            /* ancho fijo elegante */
  margin: 10px auto 0;     /* auto en los lados lo centra */
  text-align: center;      /* texto dentro del botón centrado */
}
