/* Inicialización */

/* Fonts loaded via <link> in HTML for non-render-blocking */

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

}

body {
    background-color: #FBFAF9;
}

/* header y estilos nav*/
header {
    background-color: #FBFAF8;
    padding: 15px clamp(15px, 3vw, 30px);
    border-bottom: #d2d2d2 1px solid;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-around;
}
nav {
    display: flex;
    align-items: center;
}
.logo {
    font-size: 2rem;
    font-style: normal;
    color: rgb(34, 30, 28);
    line-height: 36px;
    font-family: Cormorant Garamond;
    font-weight: 600;
    text-decoration: none;
}

nav a {
    font-family: inter, sans-serif;
    text-decoration: none;
    color: rgb(125, 124, 124);
    font-size: 1rem;
    font-weight: 500;
    line-height: 20px;
    transition-property: color, opacity;
    transition-duration: 0.5s;
    transition-timing-function: ease-in-out;

}

ul {
    display: flex;
    gap: 20px;
    justify-content: center;
}

li {
    list-style: none;

}

li a:hover {
    color: rgb(139, 72, 82);
}

/* Hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: rgb(34, 30, 28);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Overlay */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Nav drawer elements (hidden on desktop) */
nav .logo {
    display: none;
}

.drawer-divider {
    display: none;
    width: 80%;
    border-bottom: 1px solid #d2d2d2;
    margin: 0 auto;
}

/* Section 1 banner principal */



.section-1 {
    width: 100%;
    display: flex;
    flex-direction: row;
    background-image: linear-gradient(rgba(0, 0, 0, 0.373), rgba(0, 0, 0, 0.5)), url('../Public/section1.png');
    height: 95vh;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: #FBFAF9;
    font-family: Inter;
    align-items: center;


}

.section-1 .container {
    display: flex;
    flex-direction: row;
    justify-content: left;
    padding-left: clamp(1rem, 15%, 20rem);
    width: 100%;
}

.section-1 .sub-container {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    gap: 2rem;
    opacity: 0;
    justify-content: space-between;
    animation-name: subirLetras;
    animation-duration: 0.8s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}


.section-1 h1 {
    font-family: Cormorant Garamond;
    font-size: clamp(3rem, 10vw, 5rem);
    line-height: 72px;
    font-weight: 300;
    font-style: normal;
    color: rgb(251, 250, 249);
    margin: 0;
    padding: 0;
}

.section-1 p {
    font-style: normal;
    color: rgb(251, 250, 249);
    margin: 0;
    padding: 0;
    font-family: Inter;
}

.section-1 .sub-container a {
    text-decoration: none;
    display: flex;
    justify-content: center;
    font-size: clamp(0.8rem, 2vw, 1rem);
    color: #2b2b2b;
    border-color: #d2d2d2;
    background-color: #fff;
    border-radius: 100px;
    padding: 10px;
    max-width: clamp(170px, 23vw, 200px);
    transition-property: background-color, color;
    transition-duration: 0.3s;
    transition-timing-function: ease-in-out;
}

.section-1 .sub-container a:hover {
    background-color: rgb(139, 72, 82);
    ;
    color: #fff;

}

/*------------------------------------------------------------------------------------.
*/
.wrapper{
    max-width: 1600px;
    margin: 0 auto;
}

/*-----------------------------------------------------------------------------------*/
/* Section 2 COMPRA POR CATEGORIA  */
.section-2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    padding: 5rem 0;
}

.section-2 .header-1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.section-2 .header-1 h2, .section-4 .header-2 h2 {
    font-family: Cormorant Garamond;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 36px;
    font-weight: 300;
    font-style: normal;

    color: rgb(34, 30, 28);
}

.section-2 .header-1 h4, .section-4 .header-2 h4 {
    font-family: Inter;
    font-size: clamp(0.8rem, 2vw, 1rem);
    line-height: 20px;
    font-weight: 500;
    font-style: normal;
    color: rgb(125, 124, 124);
    text-transform: uppercase;
    letter-spacing: 3px;
}

/*Tarjetas de categorías*/
.section-2 .categorias {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 1rem;
    width: 100%;
}

.section-2 .categorias .card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: clamp(150px, 30%, 250px);
    text-decoration: none;
    color: inherit;


}

.section-2 .categorias .img-container {
    width: 100%;
    height: 100%;
    aspect-ratio: 2/3;
    border-radius: 1rem;
    overflow: hidden;
    border: #fff 1px solid;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content h3 {
    font-family: Inter, sans-serif;
    font-size: clamp(1rem, 1vw, 0.8rem);
    line-height: 34px;
    font-weight: 600;
    font-style: normal;
    color: rgb(33, 33, 33);

}

.card-content p {
    font-family: Inter;
    font-size: clamp(0.875rem, 2vw, 1rem);
    line-height: 20px;
    font-weight: 400;
    font-style: normal;
    color: rgb(125, 124, 124);
}

/*--------------------------------------------------------*/
/* Section 3 banner */
.section-3, .section-5  {
    width: 100%;
    height: auto;
    font-family: Inter;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(10px, 3vw, 40px);
}

.section-3 .container {
    width: 100%;
    height: clamp(200px, 30vh, 500px);
    border-radius: 2rem;
    color: #fff;
    background-image: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.45)), url('../Public/section\ 3.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: clamp(20px, 5vw, 60px) clamp(20px, 8vw, 80px);
    
}

.section-3 .container p, .section-5 .container p {
    font-family: Inter;
    letter-spacing: 0.2rem;
    color: #cfd5d6;
    font-weight: 500;
    text-transform: uppercase;
}

.section-3 .container h2, .section-5 .container h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    line-height: 1.2;
    font-weight: 300;
    font-style: normal;
    color: #FBFAF9;
}

.section-3 .container a, .section-5 .container a {
    text-decoration: none;
    color: #fff;
    font-family: Inter;
    font-size: clamp(0.9rem, 3vw, 1.3rem);
    font-weight: 500;
    background: transparent;
    padding: clamp(6px, 1.5vw, 10px) 0;
    width: fit-content;
    border-bottom: 1px solid #fff;
    transition-property: color, border-color;
    transition-duration: 0.3s;
    transition-timing-function: ease-in-out;
}

.section-3 .container a:hover, .section-5 .container a:hover {
    color: rgb(254, 108, 108);
    border-color: rgb(255, 255, 255);
}

/*--------------------------------------------------------*/
/* Section 4 productos destacados */
.section-4 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    padding: 5rem 0;
}
.section-4 .header-2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/*Tarjetas de productos destacados*/
.section-4 .container, .product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 1rem;
    width:100%;
    
}

.section-4 .container .card, .product-grid .card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: clamp(150px, 30%, 350px);
    height: auto;
}
.section-4 .container .card .img-container, .product-grid .card .img-container {
    width: 100%;
    height: auto;
    aspect-ratio: 2/2;
    overflow: hidden;
    position: relative;
    
}

.section-4 .container .card .img-container img, .product-grid .card .img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}
.product-grid .card .img-container .img-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  border: none;
  font-size: 18px;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
  color: #221e1c;
  opacity: 0;
  transition: opacity .2s;
  z-index: 2;
  padding: 0;
}
.product-grid .card .img-container:hover .img-nav,
.product-grid .card .img-container .img-nav:active {
  opacity: 1;
}
@media (hover: none) {
  .product-grid .card .img-container .img-nav { opacity: 1; }
}
.product-grid .card .img-container .img-prev { left: 6px; }
.product-grid .card .img-container .img-next { right: 6px; }
.product-grid .card .img-container .img-nav:hover {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.product-grid .card .img-container .img-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}
.product-grid .card .img-container .img-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  transition: background .2s;
}
.product-grid .card .img-container .img-dots .dot.active {
  background: #fff;
  box-shadow: 0 0 4px rgba(0,0,0,.3);
}
.section-4 .container .card .img-container .badge, .product-grid .card .img-container .badge {
    font-family: Inter;
    letter-spacing: 0.2rem;
    font-size: clamp(0.5rem, 1.5vw, 0.9rem);
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 10px 12px;
    color: black;
    border: #000000 1px solid;
    border-radius: 2rem;
    background-color: #000000;
    color: #fbfaf9;
    height: fit-content;
    text-transform: uppercase;
    font-weight: 500;
    line-height: 10px;
    font-style: normal;
}

.section-4 .container .card .card-content h2 {
    font-family: Inter, sans-serif;
    font-size: clamp(1rem, 1vw, 0.8rem);
    line-height: 34px;
    font-weight: 600;
    font-style: normal;
    color: rgb(33, 33, 33);

}

.section-4 .container .card-content p {
    font-family: Inter;
    font-size: clamp(0.875rem, 2vw, 1rem);
    line-height: 20px;
    font-weight: 400;
    font-style: normal;
    color: rgb(125, 124, 124);
}


/*--------------------------------------------------------*/
/* Section 5 banner 3 */
.section-5 .container {
    width: 100%;
    height: clamp(200px, 30vh, 500px);
    border-radius: 2rem;
    color: #fff;
    background-image: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.45)), url('../Public/section\ 5.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: clamp(20px, 5vw, 60px) clamp(20px, 8vw, 80px);
    
}
/*--------------------------------------------------------*/
/*  Sección local Bogotá */
.section-local {
    text-align: center;
    padding: 4rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}
.section-local h2 {
    font-family: Cormorant Garamond;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 300;
    color: rgb(34, 30, 28);
    margin-bottom: 1rem;
    line-height: 1.3;
}
.section-local p {
    font-family: Inter;
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    color: #867d79;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}
/*--------------------------------------------------------*/
/*  footer */

footer {
    background-color: #221e1c;
    color: #fff;
    font-family: Inter;
    padding: 3%;
    border-top: #efd0d0 1px solid;
    gap: 2rem;

}

footer .contaniner {
    display: flex;
    flex-direction: column;
    max-width: 1500px;
    margin: 0 auto;
    gap: 2rem;
    padding: 20px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 2rem;
    width: 100%;



}

.footer-content div {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}


.footer-content p {
    font-family: Inter;
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 20px;
    font-weight: 400;
    font-style: normal;
    color: rgb(193, 191, 191);
}
.footer-content a {
    font-family: Inter;
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 20px;
    font-weight: 400;
    font-style: normal;
    color: rgb(193, 191, 191);
    text-decoration: none;
    transition-property: color;
    transition-duration: 0.3s;
    transition-timing-function: ease-in-out;

}

.footer-content h4{
    letter-spacing: 2px;
    color: rgb(125, 124, 124);
    text-transform: uppercase;
}
.footer-info h2 {
    font-family: Cormorant Garamond;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 200;
    font-style: normal;

}

.footer-rights {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    color: rgb(125, 124, 124);
    padding: 20px;
    border-top: #d2d2d2 1px solid;
}

.footer-rights p {
    font-family: Inter;
    font-size: clamp(0.6rem, 2vw, 1rem);
    line-height: 20px;
    font-weight: 400;
    font-style: normal;
    color: rgb(125, 124, 124);
}





/*** Media Queries mobile */
@media (max-width: 768px) {
    header {
        justify-content: center;
    }

    .hamburger {
        display: flex;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    .hamburger.open {
        position: fixed;
        right: auto;
        left: 20px;
        top: 20px;
        transform: none;
        z-index: 1001;
    }

    .overlay {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #FBFAF9;
        z-index: 999;
        flex-direction: column;
        justify-content: flex-start;
        transform: translateX(100%);
        transition: transform 0.35s ease;
    }

    nav.open {
        transform: translateX(0);
    }

    nav .logo {
        display: block;
        align-self: center;
        margin-top: clamp(40px, 10vh, 80px);
        text-align: center;
    }

    .drawer-divider {
        display: block;
        margin-top: 16px;
        margin-bottom: clamp(24px, 5vh, 48px);
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: clamp(16px, 4vh, 32px);
    }

    nav ul a {
        font-size: clamp(1.1rem, 3vw, 1.3rem);
    }
}






/* Menú de categorías: "Más" con desplegable (máx 3 visibles) */
.cat-mas { position: relative; }
.cat-mas-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}
.cat-mas-toggle:hover { color: rgb(139, 72, 82); }
.cat-mas-caret { display: inline-block; font-size: 0.8em; transition: transform 0.25s ease; }
.cat-mas.open .cat-mas-caret { transform: rotate(180deg); }
.cat-mas-list { list-style: none; }

@media (min-width: 769px) {
    .cat-mas-list {
        position: absolute;
        top: 100%;
        right: 0;
        margin-top: 14px;
        background: #FBFAF9;
        box-shadow: 0 12px 34px rgba(0, 0, 0, 0.12);
        border-radius: 12px;
        padding: 14px 20px;
        display: none;
        flex-direction: column;
        gap: 14px;
        min-width: 175px;
        z-index: 1002;
    }
    .cat-mas.open .cat-mas-list { display: flex; }
}

@media (max-width: 768px) {
    .cat-mas-list {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: clamp(16px, 4vh, 32px);
        margin-top: clamp(16px, 4vh, 32px);
        padding: 0;
    }
    .cat-mas.open .cat-mas-list { display: flex; }
    .cat-mas-toggle { font-size: clamp(1.1rem, 3vw, 1.3rem); }
}

/* Vista de producto (modal de detalle) */
#product-grid .card .img-container,
#product-grid .card .card-content h3,
#destacados-grid .card .img-container {
    cursor: pointer;
}
.pd-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 15, 18, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}
.pd-overlay.open { opacity: 1; visibility: visible; }
.pd-modal {
    background: #fff;
    border-radius: 18px;
    width: 94%;
    max-width: 1040px;
    max-height: 92vh;
    overflow: auto;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    position: relative;
    transform: translateY(24px) scale(0.97);
    opacity: 0;
    transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.32s ease;
}
.pd-overlay.open .pd-modal { transform: translateY(0) scale(1); opacity: 1; }
.pd-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #221e1c;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.pd-media { padding: 30px; background: #faf8f6; }
.pd-img-wrap { position: relative; }
.pd-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
    background: #efe9e4;
}
.pd-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  border: none;
  font-size: 22px;
  line-height: 34px;
  text-align: center;
  cursor: pointer;
  color: #221e1c;
  z-index: 2;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  transition: background .15s;
}
.pd-nav:hover { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.18); }
.pd-nav-prev { left: 10px; }
.pd-nav-next { right: 10px; }
.pd-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.pd-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  transition: background .2s;
}
.pd-dots .dot.active {
  background: #fff;
  box-shadow: 0 0 4px rgba(0,0,0,.3);
}
.pd-thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.pd-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #e7e2dc;
    transition: border-color 0.15s ease;
}
.pd-thumb.active { border-color: rgb(139, 72, 82); }
.pd-info { padding: 40px 44px; display: flex; flex-direction: column; gap: 8px; }
.pd-info .pd-name {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2.4rem;
    margin: 0;
    color: #221e1c;
    line-height: 1.12;
}
.pd-info .pd-full { color: #7d7c7c; font-size: 0.9rem; margin: 2px 0 0; }
.pd-info .pd-price { font-size: 2rem; font-weight: 700; color: rgb(139, 72, 82); margin: 14px 0 4px; }
.pd-info .pd-desc { color: #444; line-height: 1.65; font-size: 1rem; margin-top: 6px; }
.pd-add {
    margin-top: 22px;
    background: #221e1c;
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1.05rem;
    transition: background 0.2s ease;
}
.pd-add:hover { background: rgb(139, 72, 82); }
@media (max-width: 700px) {
    .pd-modal { grid-template-columns: 1fr; max-width: 460px; width: 96%; }
    .pd-media { padding: 18px 18px 0; background: #fff; }
    .pd-info { padding: 22px; }
    .pd-info .pd-name { font-size: 1.75rem; }
    .pd-info .pd-price { font-size: 1.6rem; margin: 10px 0 4px; }
}

/* 1. Definición de la animación (Fuera de todo) */
@keyframes subirLetras {
    from {
        opacity: 0;
        transform: translateY(20px);
        /* Empieza 20px abajo */
    }

    to {
        opacity: 1;
        transform: translateY(0);
        /* Termina en su posición original */
    }
}