body{
    background-color: beige;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

h1, h2, h3{
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

header{
    background-color: #8b6f5a;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo{
    display: flex;
    align-items: center;
    gap: 10px;
   flex-shrink: 0;
}

.logo img{
    width: 80px;
    height:80px;
    object-fit: contain;
    border-radius: 50%;
}

header h1{
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 2px;
    margin: 0;
}

nav{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-left: 0;
}

nav a{
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s, transform 0.3s;
}

nav a:hover{
   color: #f0d5b8;
    transform: translateY(-2px);
}

#inicio{
    text-align: center;
    padding: 80px 20px
}

#inicio h2{
    font-size: 42px;
}

#inicio p{
    max-width: 600px;
    margin: 20px auto;
}

.boton{ 
    display: inline-block;
    background-color: #8b6f5a;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s;
}

.boton:hover{
    background-color: #6f5543;
    transform: translateY(-5px);
}

#buscador{
    display: block;
    width: 100%;
    max-width: 500px;
    margin: 20px auto 30px;
    padding: 12px 16px;
    border: 1px solid #8b6f5a;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    box-sizing: border-box;
}

#buscador:focus{
    outline: none;
    box-shadow: 0 0 0 2px rgba(139, 111, 90, 0.25);
}

#productos{
    margin: 0 20px;
}

#productos h2{
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
}

.productos-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.productos-container article {
    background-color: #fffdf9;
    padding: 18px;
    border: 1px solid #eee5dc;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(70, 48, 32, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    transition: transform 0.25s, box-shadow 0.25s;
}

.productos-container article img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 8px;
}

.productos-container article:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(70, 48, 32, 0.14);
}

.productos-container article h3 {
    font-size: 21px;
    margin: 16px 0 8px;
}

.productos-container article p {
    color: #665b52;
    line-height: 1.6;
}

.precio {
    font-size: 20px;
    font-weight: bold;
    color: #6f5543;
    margin-top: auto;
}

.boton-consultar {
    background-color: #8b6f5a;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.25s, transform 0.25s;
    margin-top: 12px;
}

.boton-consultar:hover {
    background-color: #6f5543;
    transform: translateY(-2px);
}

#sobre-nosotros{
    background-color: #fff7f2;
    text-align: center;
  margin-top: 40px;
    padding: 60px 20px;
}

#sobre-nosotros h2{
    font-size: 32px;
}

#sobre-nosotros p{
    max-width: 700px;
    margin: 20px auto 0;
    line-height: 1.6;
}

footer{
    background-color: #8b6f5a;
    color: white;
    text-align: center;
    padding: 40px 20px;
}

footer a{
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
}

footer a:hover{
    text-decoration: underline;
}

footer h2{
    margin-bottom: 20px;
}

footer p{
    margin-top: 20px;
}

.aviso-imagenes {
    max-width: 750px;
    margin: 35px auto 0;
    padding: 12px 20px;
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
    color: #756b78;
    background-color: #fffafc;
    border: 1px solid #704b3c;
    border-radius: 10px;
}

@keyframes aparecer{
      from{
        opacity: 0;
        transform: translateY(20px);
    }

    to{
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes desaparecer{
    from{
        opacity: 1;
        transform: translateY(0);
    }

    to{
        opacity: 0;
        transform: translateY(20px);
    }
}


.notificacion {
    display: flex;
    align-items: center;
    gap: 10px;

    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: min(380px, calc(100vw - 40px));

    background-color: #344054;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    z-index: 1000;

    animation: aparecer 0.3s ease;
}

.notificacion-icono {
    font-size: 15px;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.notificacion.error {
    background-color: #b42318;
}

.notificacion.success {
    background-color: #18794e;
}

.notificacion.info {
    background-color: #245b91;
}

.notificacion.warning {
    background-color: #9a6700;
}

@media (max-width: 549px) {
    .notificacion {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
        padding: 14px 16px;
    }
}



#mensaje-busqueda {
    text-align: center;
    color: #665b52;
    padding: 24px 16px;
    line-height: 1.6;
}

#mensaje-busqueda[hidden] {
    display: none;
}


@media (max-width: 549px){
    .productos-container {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    #productos {
        margin: 0 16px;
    }

    .productos-container article {
        padding: 14px;
    }

    .productos-container article img {
        aspect-ratio: 4 / 3;
    }

    .notificacion {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
        padding: 14px 16px;
    }
}

@media (min-width: 550px) and (max-width: 767px){
     .productos-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    #productos {
        margin: 0 18px;
    }

    .productos-container article {
        padding: 14px;
    }
}

@media (max-width: 768px){
   
    header {
        flex-direction: column;
        align-items: center;
        padding: 16px;
        gap: 16px;
    }

    .logo {
        justify-content: center;
    }

    nav {
        margin: 0;
        gap: 12px 18px;
        justify-content: center;
    }

    nav a {
        font-size: 14px;
    }

    #inicio h2 {
        font-size: 32px;
    }

    .productos-container article img {
        height: 300px;
    }
}

@media (min-width: 768px) and (max-width: 1259px){
     .productos-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

      header{
        flex-direction: column;
        align-items: center;
    }

     nav{
        margin-left: 50px;
        margin-top: 15px;
    }
}

@media (min-width: 1260px) {
    .productos-container {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}