:root {
    --text: #111111;
    --background: #c8e4ff;
    --primary: #060026;
    --secondary: #1b3fa0;
    --accent: #3b82f6;
    --white: #ffffff;
}
/*Lupa*/

.acciones{

    display:flex;
    gap:15px;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}


body{
    font-family: 'Poppins', sans-serif;
    background:#e9f1f6;
}

/* HEADER */

header{
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:20px 60px;

    background:#dce8f3;
}

.logo{
    display:flex;
    align-items:center;
    gap:10px;
}

.logo img{
    width: 210px;
    height: auto;
}

nav{

    display:flex;
    gap:70px;

    margin-left:auto;
    margin-right:auto;
}


nav a{
    text-decoration:none;
    color:#111;

    font-weight:600;
    font-size:18px;

    display:flex;
    align-items:center;
    gap:10px;

    position:relative;

    transition:
        color .3s ease,
        transform .3s ease;
}


nav a i{
    transition:.3s;
    font-size: 22px;
}


nav a:hover{

    color:#173a6b;

    transform:translateY(-3px);
}

nav a:hover i{

    transform:scale(1.15);
}

nav a.activo-menu{

    animation: menuActivo 2.5s ease-in-out infinite;
}

nav a.activo-menu::after{

    content:"";

    position:absolute;

    left:0;
    bottom:-10px;

    width:100%;
    height:3px;

    background:#0f2d5c;

    border-radius:10px;
}

nav a:hover::before{

    width:100%;
}

nav a::before{

    content:"";

    position:absolute;

    bottom:-10px;
    left:50%;

    width:0;

    height:3px;

    background:#173a6b;

    transition:all .3s ease;

    transform:translateX(-50%);
}


@keyframes menuActivo{

    0%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-2px);
    }

    100%{
        transform:translateY(0);
    }
}


/* LUPA Y CARRITO*/

.acciones{

    display:flex;
    gap:15px;
}

.btn-busqueda{

    width:45px;
    height:45px;

    border:none;
    border-radius:50%;

    background:white;

    cursor:pointer;

    transition:.3s;
}

.btn-busqueda:hover{

    background:#173a6b;
    color:white;

    transform:scale(1.1);
}

/* PARA QUE EL BOTON SE EXPANDA*/

.busqueda-expandible{

    display:flex;
    align-items:center;

    width:45px;
    height:45px;

    background:white;

    border-radius:30px;

    overflow:hidden;

    transition:all .4s ease;

    cursor:pointer;
}

.busqueda-expandible i{

    min-width:45px;

    text-align:center;

    color:#173a6b;

    font-size:16px;
}

.busqueda-expandible input{

    border:none;

    outline:none;

    width:0;

    background:transparent;

    font-size:15px;

    padding-right:15px;

    transition:.4s ease;
}


.busqueda-expandible:hover input{

    width:160px;
}

.busqueda-expandible:hover,
.busqueda-expandible:focus-within{

    width:220px;

    box-shadow:0 5px 15px rgba(15,45,92,.15);
}


/* TITULO */

.titulo{
    text-align:center;
    padding:40px;
}


.titulo h1{
    font-family:'Playfair Display', serif;

    color:#0f2d5c;

    font-size:72px;

    margin-bottom:15px;

    letter-spacing: 3px;

    position: relative;
}


/* LINEA ABAJO DEL CATALOGO*/
.titulo::after{

    content:"";

    width:550px;
    height:2px;

    background:#0f2d5c;

    display:block;

    margin:25px auto 15px;
}
/* LINEA ARRIBA DEL CATALOGO*/
.titulo::before{

    content:"";

    width:550px;
    height:2px;

    background:#0f2d5c;

    display:block;

    margin:25px auto 15px;
}

/* FILTROS */

.filtros{
    display:flex;
    justify-content:center;
    gap:15px;
    margin-bottom:40px;
}

.filtros button{

    font-family:'Poppins', sans-serif;
    font-size:16px;
    font-weight:600;
    letter-spacing:0.5px;

    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    background: white;
    cursor: pointer;

    transition: all 0.3s ease;
}

.filtros button:hover{
    background: #173a6b;
    color: white;
    transform: translateY(-3px);
}


.filtros button.activo{
    background: #0f2d5c;
    color: white;
}

/* MAIN */
main{
    min-height: 70vh;
}


/* PRODUCTOS */

.productos{
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    gap:30px;
    max-width:1300px;
    margin:0 auto;
    padding:0 50px;
    
}

@media (max-width:1100px){
    .productos{
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width:850px){
    .productos{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:550px){
    .productos{
        grid-template-columns: 1fr;
    }
}


.card{
    background:white;
    border-radius:18px;
    padding:20px;
    height:430px;
    overflow:hidden;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    transition:.4s ease;
    position:relative;

}

.card:hover{

    transform:translateY(-8px);

    box-shadow:0 18px 35px rgba(15,45,92,.18);
}

.card-extra{

    position:absolute;
    left:20px;
    right:20px;
    bottom:-130px;

    background:white;
    transition:.4s ease;
}

.card:hover .card-extra{

    bottom:20px;
}

/* TARJETAS PRODUCTOS*/
/* IMAGENES */

.card img{
    width:100%;
    height:260px;
    object-fit:contain;
    transition:.4s ease;
}

.card:hover img{

    transform:scale(1.05);
}

/* TARJETAS PRODUCTOS*/
/* texto productos*/

.card-info{

    padding:20px;
}

.card h3{
    color:#0f2747;
    margin-top:10px;
}

.card p{
    margin:8px 0;
}

.card span{
    font-weight:bold;
}

.card-info h3{

    font-family:'Poppins', sans-serif;
    color:#0f2d5c;
    font-size:20px;
    font-weight:700;
    letter-spacing:.8px;
    text-transform:uppercase;
    margin-bottom:6px;
}


.card-tipo{

    color:#777;

    font-size:15px;

    margin-bottom:15px;
}

.tamanos{

    display:flex;
    gap:8px;

    margin:12px 0;
}

.tamanos span{

    background:#eef5fb;

    color:#173a6b;

    padding:6px 10px;

    border-radius:20px;

    font-size:13px;

    font-weight:600;
}

.precio{

    font-size:24px;

    font-weight:700;

    color:#0f2d5c;

    margin-top:10px;
}

/* 
    TARJETAS PRODUCTOS
        BOTON CARRITO       
*/

.card-bottom{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-top:15px;
}

.card-link{
    text-decoration:none;
    color:inherit;
    display:block;
}

.add-to-cart{
    width:130px;
    height:38px;
    border:none;
    border-radius:8px;
    background:#019138;
    color:white;
    cursor:pointer;
    position:relative;
    overflow:hidden;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:12px;
    font-weight:700;
    transition:.3s ease;
}

.add-to-cart:hover{
    background:#4e70a7;
}

.btn-label{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    transition:.25s ease;
}

.btn-label::before{
    content:"\f07a";
    font-family:"Font Awesome 6 Free";
    font-weight:900;
    font-size:14px;
}

.cart-wrap{
    position:absolute;
    inset:0;
    opacity:0;
}

.cart-icon{
    position:absolute;
    left:-30px;
    top:50%;
    transform:translateY(-50%);
    font-size:20px;
}

.item-drop{
    position:absolute;
    width:10px;
    height:16px;
    background:#d4af37;
    border-radius:3px 3px 5px 5px;
    left:50%;
    top:-22px;
    transform:translateX(-50%);
    opacity:0;
}

.item-drop::before{
    content:"";
    position:absolute;
    width:6px;
    height:4px;
    background:#f2d37a;
    border-radius:2px;
    top:-4px;
    left:2px;
}

.check-icon{
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%, -50%) scale(0);
    color:#ffcc25;
    font-size:16px;
    opacity:0;
}

.add-to-cart.animar .btn-label{
    opacity:0;
}

.add-to-cart.animar .cart-wrap{
    opacity:1;
}

.add-to-cart.animar .cart-icon{
    animation:cartMove 1.7s ease forwards;
}

.add-to-cart.animar .item-drop{
    animation:itemDrop 1.7s ease forwards;
}

.add-to-cart.animar .check-icon{
    animation:checkShow 1.7s ease forwards;
}

@keyframes cartMove{
    0%{
        left:-30px;
    }

    25%{
        left:55px;
    }

    75%{
        left:55px;
    }

    100%{
        left:155px;
    }
}

@keyframes itemDrop{
    0%, 25%{
        top:-22px;
        opacity:0;
    }

    35%{
        top:4px;
        opacity:1;
    }

    55%{
        top:17px;
        opacity:1;
        transform:translateX(-50%) scale(.7);
    }

    65%, 100%{
        top:19px;
        opacity:0;
        transform:translateX(-50%) scale(.4);
    }
}

@keyframes checkShow{
    0%, 58%{
        opacity:0;
        transform:translate(-50%, -50%) scale(0);
    }

    70%, 85%{
        opacity:1;
        transform:translate(-50%, -50%) scale(1);
    }

    100%{
        opacity:0;
        transform:translate(-50%, -50%) scale(0);
    }
}


/* FOOTER */

footer{
    background: #0f2747;
    color: white;
    margin-top: 80px;
}

.footer-container{
    max-width: 1300px;
    margin: auto;
    padding: 40px 80px;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 120px;

}

.footer-logo{
    flex: 1;
    min-width: 250px;
}

.footer-logo h2{
    font-family: 'Playfair Display', serif;
    margin-bottom: 15px;
    font-size: 28px;
}

.footer-logo p{
    color: #d8e3ee;
    line-height: 1.6;
}

.footer-contact{
    flex: 1;
    min-width: 200px;
}

.footer-contact h3,
.footer-links h3{
    margin-bottom: 15px;
    font-size: 18px;
    margin-top: 35px;
}

.footer-contact address{
    font-style: normal;
    line-height: 1.8;
    color: #d8e3ee;
}

.footer-links{
    flex: 1;
    min-width: 200px;

    display: flex;
    flex-direction: column;
}

.footer-links a{
    color: #d8e3ee;
    text-decoration: none;
    margin-bottom: 15px;
    transition: 0.3s;
}

.footer-links a:hover{
    color: white;
    transform: translateX(5px);
}

.footer-bottom{
    border-top: 1px solid rgba(255,255,255,.15);

    text-align: center;
    padding: 20px;
}

.footer-bottom p{
    font-size: 14px;
    color: #c9d5df;
}

.footer-brand{
    width: 180px;
    height: auto;
}


.footer-brand img{
    width: 230px;
    height:auto;
    flex-shrink:0;
}

.footer-brand h2{
    margin-bottom:10px;
}


/*
    BOTON DE WHATSAPP
*/

.whatsapp-float{
    position:fixed;
    bottom:25px;
    right:25px;
    width:65px;
    height:65px;
    border-radius:50%;
    background:#25D366;
    display:flex;
    justify-content:center;
    align-items:center;
    color:white;
    font-size:32px;
    text-decoration:none;
    box-shadow:0 5px 20px rgba(0,0,0,.25);
    z-index:999;
    transition:.3s;

    animation:pulse 2s infinite;
}

.whatsapp-float:hover{
    transform:scale(1.1);
    box-shadow:0 8px 25px rgba(0,0,0,.35);
}

@keyframes pulse{
    0%{
        box-shadow:0 0 0 0 rgba(37,211,102,.7);
    }
    70%{
        box-shadow:0 0 0 15px rgba(37,211,102,0);
    }
    100%{
        box-shadow:0 0 0 0 rgba(37,211,102,0);
    }
}



/*
    ORDENAR POR BARRA
*/

.catalogo-barra{
    max-width:1300px;
    margin:0 auto 30px auto;
    padding:0 50px;

    display:flex;
    justify-content:space-between;
    align-items:center;
}

#ordenar{

    padding:12px 18px;
    border-radius:10px;
    border:1px solid #d0d8df;
    background:white;
    cursor:pointer;
    font-size:15px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

/* =====================================
   TABLET
===================================== */

@media (max-width: 1024px){

    header{
        padding:20px 30px;
    }

    nav{
        gap:30px;
    }

    .catalogo-barra{
        padding:0 20px;
    }

    .productos{
        padding:0 20px;
    }

    .titulo h1{
        font-size:55px;
    }

    .titulo::before,
    .titulo::after{
        width:350px;
    }
}

/* =====================================
   CELULAR
===================================== */

@media (max-width: 768px){

    html,
    body{
        overflow-x:hidden;
    }

    /* HEADER */

    header{
        flex-direction:column;
        padding:20px;
        gap:20px;
    }

    .logo img{
        width:170px;
    }

    nav{
        width:100%;
        margin:0;
        gap:15px;
        justify-content:center;
        flex-wrap:wrap;
    }

    nav a{
        font-size:14px;
    }

    nav a i{
        font-size:16px;
    }

    .acciones{
        width:100%;
        justify-content:center;
    }

    /* TITULO */

    .titulo{
        padding:25px 15px;
    }

    .titulo h1{
        font-size:42px;
    }

    .titulo::before,
    .titulo::after{
        width:220px;
    }

    /* FILTROS */

    .filtros{
        flex-wrap:wrap;
        padding:0 15px;
    }

    .filtros button{
        padding:12px 20px;
        font-size:14px;
    }

    /* ORDENAR */

    .catalogo-barra{
        flex-direction:column;
        gap:15px;
        padding:0 15px;
    }

    #ordenar{
        width:100%;
    }

    /* PRODUCTOS */

    .productos{
        grid-template-columns:repeat(2,1fr);
        gap:15px;
        padding:0 15px;
    }

    .card{
        height:auto;
        min-height:380px;
        padding:15px;
    }

    .card img{
        height:180px;
    }

    .card-info{
        padding:10px;
    }

    .card-info h3{
        font-size:16px;
    }

    .precio{
        font-size:20px;
    }

    .add-to-cart{
        width:100%;
    }

    .card-bottom{
        flex-direction:column;
        align-items:stretch;
    }

    /* FOOTER */

    .footer-container{
        flex-direction:column;
        text-align:center;
        gap:40px;
        padding:40px 20px;
    }

    .footer-brand img{
        width:180px;
        margin:auto;
    }

    .footer-links{
        align-items:center;
    }

    .footer-contact h3,
    .footer-links h3{
        margin-top:0;
    }

    /* WHATSAPP */

    .whatsapp-float{
        width:60px;
        height:60px;
        font-size:28px;
        bottom:15px;
        right:15px;
    }
}

/* =====================================
   TELEFONOS PEQUEÑOS
===================================== */

@media (max-width: 480px){

    .logo img{
        width:140px;
    }

    .titulo h1{
        font-size:32px;
    }

    .titulo::before,
    .titulo::after{
        width:150px;
    }

    .productos{
        grid-template-columns:1fr;
    }

    .card img{
        height:220px;
    }

    nav{
        gap:10px;
    }

    nav a{
        font-size:13px;
    }

    .footer-bottom p{
        font-size:12px;
    }

    .whatsapp-float{
        width:55px;
        height:55px;
        font-size:24px;
    }
}