*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI',sans-serif;
}

body{
    background:#edf3e8;
    color:#333;
}

/* HEADER */
header{

    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;

    background:#fff;
    padding:10px 25px;

    box-shadow:0 2px 10px rgba(0,0,0,.08);

    position:sticky;
    top:0;
    z-index:1000;
}

.logo{
    margin-right:30px;
}

.acciones{
    margin-left:auto;
    display:flex;
    align-items:center;
    gap:12px;
}

.logo img{
    height:90px;
    width:auto;
    display:block;
}
/* MENU */

#menu{
    position:fixed;
    left:-280px;
    top:0;
    width:280px;
    height:100vh;
    background:#fff;
    transition:.3s;
    z-index:1000;
}

#menu.activo{
    left:0;
}

#menu ul{
    list-style:none;
    padding-top:80px;
}

#menu ul li a{
    display:block;
    padding:18px 25px;
    text-decoration:none;
    color:#333;
}

.menu-toggle{
    font-size:30px;
    cursor:pointer;
    color:#1d5c2b;
}

/* OVERLAY */

.overlay{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.4);
    opacity:0;
    visibility:hidden;
}

.overlay.activo{
    opacity:1;
    visibility:visible;
}

/* ACCIONES */

.acciones{
    display:flex;
    align-items:center;
    gap:10px;
}

.buscar{
    position:relative;
}

.buscar input{
    padding:10px 40px 10px 15px;
    border:2px solid #7baa4b;
    border-radius:25px;
}

.buscar i{
    position:absolute;
    right:15px;
    top:12px;
}

.btn-header-login,
.btn-registro,
.btn-carrito{
    padding:10px 18px;
    border-radius:25px;
    text-decoration:none;
    color:white;
    font-weight:bold;
}

.btn-header-login{
    background:#1d5c2b;
}

.btn-registro{
    background:#7baa4b;
}

.btn-carrito{
    background:#7baa4b;
}

/* CONTENIDO */

.container{
    min-height:calc(100vh - 120px);

    display:flex;
    justify-content:center;
    align-items:center;

    gap:50px;

    padding:40px;
}
/* CONTENEDOR GENERAL */

.container{
    min-height:calc(100vh - 120px);
    display:flex;
    justify-content:center;
    align-items:center;
    padding:40px 20px;
}

/* DISTRIBUCIÓN */

.login-layout{
    display:grid;
    grid-template-columns:220px 550px 220px;
    grid-template-rows:auto auto;
    gap:30px;
    align-items:center;
}

/* IMÁGENES */

.img-card{
    display:flex;
    justify-content:center;
}

.img-card img{
    width:180px;
    height:180px;
    object-fit:cover;

    border-radius:20px;

    box-shadow:0 6px 15px rgba(0,0,0,.15);

    transition:.3s;
}

.img-card img:hover{
    transform:scale(1.05);
}

/* LOGIN */

.login-box{
    grid-column:2;
    grid-row:1 / span 2;

    width:100%;
    max-width:550px;

    background:white;
    border-radius:25px;

    padding:40px;

    text-align:center;

    box-shadow:0 10px 30px rgba(0,0,0,.15);
}
.login-box{
    width:500px;
    background:white;
    padding:40px;
    border-radius:25px;
    text-align:center;
    box-shadow:0 5px 20px rgba(0,0,0,.1);
}

.login-box h1{
    color:#1d5c2b;
}

.login-box h2{
    margin:20px 0;
    color:#1d5c2b;
}

.input-group{
    position:relative;
    margin-bottom:20px;
}

.input-group i{
    position:absolute;
    left:15px;
    top:15px;
    color:#2e7d32;
}

.input-group input{
    width:100%;
    padding:15px 15px 15px 45px;
    border:2px solid #d6e7cc;
    border-radius:10px;
}

.btn-login{
    width:100%;
    padding:15px;
    border:none;
    border-radius:10px;
    background:#1d5c2b;
    color:white;
    cursor:pointer;
}

/* FOOTER */

footer{
    background:#7baa4b;
    color:white;
    padding:25px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.redes a{
    color:white;
    margin-left:15px;
    font-size:24px;
}

/* =====================================
   TABLETS
===================================== */

@media (max-width:1024px){

    .logo img{
        height:65px;
    }

    .buscar input{
        width:160px;
    }

    .btn-login,
    .btn-registro,
    .btn-carrito{
        padding:8px 12px;
        font-size:14px;
    }

    .slide{
        width:260px;
        height:220px;
    }

    .productos-grid{
        grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    }
}

/* =====================================
   MOVILES
===================================== */

@media (max-width:768px){

    header{
        display:flex;
        flex-direction:row;
        align-items:center;
        justify-content:space-between;
        flex-wrap:nowrap;
        gap:8px;
        padding:10px;
    }

    .logo{
        margin-right:auto;
    }

    .logo img{
        height:55px;
    }

    .acciones{
        display:flex;
        align-items:center;
        gap:5px;
        margin-left:auto;
        flex-wrap:nowrap;
    }

    /* Ocultamos solo el buscador */
    .buscar{
        display:none;
    }

    .btn-login,
    .btn-registro,
    .btn-carrito{
        padding:6px 10px;
        font-size:12px;
        white-space:nowrap;
    }

    .slide{
        width:220px;
        height:180px;
    }

    .productos-grid{
        grid-template-columns:1fr;
    }

    .carrito-layout{
        grid-template-columns:1fr;
    }

    .carrito-item{
        flex-direction:column;
        text-align:center;
    }

    footer{
        flex-direction:column;
        text-align:center;
        gap:15px;
    }

    .redes{
        justify-content:center;
    }

    #chatbot{
        width:95%;
        max-width:350px;
        height:70vh;
        right:10px;
        left:10px;
        margin:auto;
    }

    #chat-body{
        height:calc(70vh - 120px);
    }
}

/* =====================================
   TELEFONOS PEQUEÑOS
===================================== */

@media (max-width:480px){

    .logo img{
        height:45px;
    }

    .menu-toggle{
        font-size:28px;
    }

    .btn-login,
    .btn-registro,
    .btn-carrito{
        padding:5px 8px;
        font-size:11px;
    }

    .slide{
        width:180px;
        height:140px;
    }

    #chat-toggle{
        width:50px;
        height:50px;
        font-size:24px;
    }

    #chatbot{
        width:95%;
        height:75vh;
    }
}