@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&display=swap');


:root {
    --verde-principal: #546f01;
    --hover-verde: #a4bc00;
    --beige-suave: #d8cabb;
    --madera: #a88f6b;
    --blanco: #ffffff;
    --negro: #000000;
}


body {
    background-color: var(--beige-suave);
}

.navbar-brand img{
    max-width: 90%;
    max-height: 100%;
    object-fit: contain; /* para que no se deforme el logo */
    transition: all 0.3s ease;
    
}

.navbar-brand img:hover{
    transform: scale(1.1);
}

.card-content h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 28px;
    text-align: left;
  }
p{
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
}


.card-content p:nth-of-type(2) {
    font-size: 10px;
}


  video {
    display: block;
    object-fit: cover;
    object-position: top;
  }

.container-destacados{
    background-color: #546f01;
    display: flex;
    justify-content: center;
    color: white;
}

.contenedor{
    background-color: #d8cabb;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6rem;   
}

.card{
    width: 30%;  /*Esto da 3 por fila en desktop */
    min-width: 250px;
    max-width: 300px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--beige-suave); 
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.30); /* sombra sutil */
    background-color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

}
.card:hover {
    transform: translateY(-10px) scale(1.03); /* efecto "levantado" y ampliado */
    box-shadow: 20px 20px 20px rgba(0, 0, 0, 0.25); /* sombra más fuerte */
  }
.card-image{
    border-radius: 15px 15px 0 0;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
    height: 200px; /* Altura fija para que todas las imágenes ocupen el mismo espacio */
    overflow: hidden; /* Evita que la imagen sobresalga si es más grande */
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain; /* Asegura que la imagen se vea completa */
  }

.card-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    border-radius: 0 0 15px 15px;
    color: #000000;
    cursor: pointer;
    padding: 0rem;
    height: 12rem;
}
  
.card-content h2{
    margin: 0 0 0 16px;
    width: 14rem;
}

.card-content p{
    width: 14rem;
    margin: 0 0 0 16px;
}

.card-content p:first-of-type {
    font-size: 16px; 
    font-weight: bold; 
}

.card-content p:nth-of-type(2) {
    font-size: 24px; 
    width: 14rem;
}

.card-content p:nth-of-type(3) {
    font-size: 14px; 
    width: 14rem;
}

.card-content span{
    font-size: 20px;
    width: 15rem;
    margin: 0;

}

.card-content button{
    height: 2rem;
    width: 100%; /* ← se adapta al ancho del contenedor */
    max-width: 14rem;
    color: #ffffff;
    border-radius: 10px;
    border: none;
    font-size: 16px;
    background-color: var(--hover-verde);
    cursor: pointer;
    transition: 0.5s ease;
    margin: 10px auto 10px auto; 
}

.card-content button:hover{
    background-color: var(--verde-principal);
}

.section-contenedor-filtros {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* CENTRA los elementos cuando hay menos de 3 por fila */
    gap: 16px;
    max-width: 1200px;
    margin: auto;
    padding: 16px;
    margin-bottom: 2rem;
  }

  .contenedor-filtros {
    flex: 1 1 300px; /* hace que ocupen mínimo 300px y se ajusten */
    max-width: 300px;
    box-sizing: border-box;
    background-color: #f4f4f4;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    margin: 20px;
    object-fit: contain;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .contenedor-filtros:hover {
    transform: translateY(-10px) scale(1.03); 
    box-shadow: 20px 20px 20px rgba(0, 0, 0, 0.25); 
  }
  
  
  .card-imagen-filtros img {
    width: 100%;
    height: 250px;
    max-width: 300px;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
  }
  
  .contenedor-filtros-imagenes {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    max-width: 300px;
  }
  
  .contenedor-filtros-imagenes img {
    width: 30%;
    height: auto;
    border-radius: 8px;
    border: 2px solid var(--beige-suave);
    cursor: pointer;
    object-fit: contain;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .contenedor-filtros-imagenes img:hover{
    transform: translateY(-2px) scale(1.03); 
    box-shadow: 20px 20px 20px rgba(0, 0, 0, 0.25); 
  }
  


footer{
    background-color: #a88f6b;
    display: flex;
    justify-content: space-between;
    padding: 0.8rem;
}

footer a{
    text-decoration: none;
}

footer .fa-brands{
    color: #000000
}

footer .fa-brands:hover{
  transform: scale(1.2);
  transition: all 0.3s ease;
}

.boton-flotante {
    position: fixed;
    bottom: 40px;
    right: 20px;
    background-color: var(--hover-verde);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 1000;
    transition: background-color 0.3s ease;
}
  
.boton-flotante:hover {
    background-color: var(--verde-principal);
}

.contador-carrito {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--hover-verde);
    color: white;
    font-size: 14px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

@media (max-width: 600px) {
    .boton-flotante {
      bottom: 4.2rem; /* 20px */
      right: 0.2rem;     /* 16px */
      width: 40px;
      height: 40px;
      font-size: 20px;
    }
  }


  



