@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Work+Sans:wght@400;500;600;700&display=swap');


/* =========================================================
   VARIABLES
========================================================= */

:root{
  --bg:#f5efe4;
  --surface:#fffaf1;
  --ink:#2a2119;
  --muted:#66594d;

  --rust:#a23e21;
  --rust-dark:#7f2f18;

  --whatsapp:#00af41;
  --whatsapp-dark:#009a39;

  --steel:#3f5866;
  --sage:#6d7a4f;
  --brass:#c6973f;

  --line:rgba(42,33,25,.14);
  --shadow:0 12px 35px rgba(42,33,25,.08);

  --radius:18px;
  --max:1180px;
}


/* =========================================================
   RESET / BASE
========================================================= */

*,
*::before,
*::after{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}

body{
  margin:0;
  width:100%;
  max-width:100%;
  overflow-x:hidden;

  background:var(--bg);
  color:var(--ink);

  font-family:"Work Sans",sans-serif;
  line-height:1.55;
}

img{
  display:block;
  max-width:100%;
}

a{
  color:inherit;
}

button,
input,
select,
textarea{
  font:inherit;
}

button,
a{
  -webkit-tap-highlight-color:transparent;
}

.container{
  width:min(var(--max),calc(100% - 40px));
  margin-inline:auto;
  min-width:0;
}

h1,
h2,
h3,
h4{
  font-family:Fraunces,Georgia,serif;
  line-height:1.08;
  margin:0;
}

p{
  margin:0;
  color:var(--muted);
}


/* =========================================================
   BOTONES
========================================================= */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  gap:8px;

  padding:13px 21px;

  border-radius:999px;
  border:1px solid transparent;

  text-decoration:none;
  font-weight:600;

  cursor:pointer;

  transition:
    transform .2s,
    background-color .2s,
    border-color .2s;

  white-space:nowrap;
}

.btn:hover{
  transform:translateY(-1px);
}


/* Botón principal marrón */

.btn-primary{
  background:var(--rust);
  color:#fff8ed;
}

.btn-primary:hover{
  background:var(--rust-dark);
}


/* Botón WhatsApp verde */

.btn-primarywa{
  background:var(--whatsapp);
  color:white;
}

.btn-primarywa:hover{
  background:var(--whatsapp-dark);
}


/* Botón claro */

.btn-light{
  background:var(--surface);
  border-color:var(--line);
}

.btn-light:hover{
  border-color:var(--ink);
}


/* Botón oscuro */

.btn-dark{
  background:var(--ink);
  color:#fff8ed;
}


/* =========================================================
   TEXTOS Y SECCIONES
========================================================= */

.eyebrow{
  color:var(--rust);

  font-size:13px;
  font-weight:700;

  text-transform:uppercase;
  letter-spacing:.08em;
}

.section{
  padding:76px 0;
}

.section-head{
  max-width:700px;
  margin-bottom:38px;
}

.section-head h2{
  font-size:clamp(30px,4vw,44px);
  margin-top:8px;
}

.section-head p{
  margin-top:14px;
  font-size:16px;
}


/* =========================================================
   HEADER
========================================================= */

.site-header{
  position:sticky;
  top:0;

  z-index:100;

  width:100%;
  max-width:100%;

  background:rgba(245,239,228,.94);

  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);

  border-bottom:1px solid var(--line);
}


/* Barra de navegación */

.nav{
  min-width:0;
  height:80px;

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

  gap:20px;
}


/* Logo */

.logo{
  display:flex;
  align-items:center;

  flex:0 0 auto;
  min-width:0;

  line-height:0;
  text-decoration:none;
}

.site-header .logo img.brand-logo{
  display:block;

  width:180px;
  max-width:180px;
  max-height:68px;

  height:auto;

  object-fit:contain;
  object-position:left center;

  margin:0;
  padding:0;

  border-radius:0;
}


/* Navegación */

.nav nav{
  min-width:0;
}

.nav-links{
  display:flex;
  align-items:center;

  gap:25px;

  list-style:none;

  margin:0;
  padding:0;
}

.nav-links a{
  color:var(--muted);

  text-decoration:none;

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

  white-space:nowrap;
}

.nav-links a:hover,
.nav-links a.active{
  color:var(--rust);
}


/* Acciones del header */

.nav-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;

  gap:10px;

  flex:0 0 auto;
  min-width:0;
}


/* Botón consulta */

.cart-btn{
  position:relative;

  flex:0 0 auto;

  border:1px solid var(--line);

  background:var(--surface);

  border-radius:999px;

  padding:9px 13px;

  color:var(--ink);

  cursor:pointer;

  white-space:nowrap;
}

.cart-count{
  position:absolute;

  right:-4px;
  top:-5px;

  min-width:19px;
  height:19px;

  display:grid;
  place-items:center;

  background:var(--rust);
  color:white;

  border-radius:50%;

  font-size:11px;
}


/* Menú hamburguesa */

.menu-btn{
  display:none;

  flex:0 0 auto;

  border:0;
  background:none;

  color:var(--ink);

  padding:5px;

  font-size:25px;
  line-height:1;

  cursor:pointer;
}


/* =========================================================
   HERO
========================================================= */

.hero{
  padding:85px 0 70px;
}

.hero-grid{
  display:grid;

  grid-template-columns:1.05fr .95fr;

  gap:55px;

  align-items:center;

  min-width:0;
}

.hero-grid > *{
  min-width:0;
}

.hero h1{
  font-size:clamp(43px,6vw,70px);

  max-width:11ch;

  margin:10px 0 20px;
}

.hero .lead{
  font-size:18px;
  max-width:57ch;
}

.hero-actions{
  display:flex;

  gap:12px;

  flex-wrap:wrap;

  margin-top:30px;
}

.hero-art{
  min-height:440px;

  border-radius:30px;

  background:
    linear-gradient(
      145deg,
      var(--steel),
      #273943
    );

  display:grid;
  place-items:center;

  overflow:hidden;

  box-shadow:var(--shadow);
}

.hero-art img{
  width:100%;
  height:100%;

  object-fit:cover;
}


/* =========================================================
   CATEGORÍAS
========================================================= */

.category-grid{
  display:grid;

  grid-template-columns:repeat(3,minmax(0,1fr));

  gap:20px;
}

.category-card{
  min-width:0;

  background:var(--surface);

  border:1px solid var(--line);

  border-radius:var(--radius);

  overflow:hidden;

  text-decoration:none;

  box-shadow:0 4px 15px rgba(42,33,25,.04);
}


/*
   Relación aproximada de 378 × 284 px.
   378 / 284 = 1.3309
   Muy cercana a 4:3.
*/

.category-card .cat-img{
  aspect-ratio:378 / 284;

  background:#ddd;

  overflow:hidden;
}

.category-card .cat-img img{
  width:100%;
  height:100%;

  object-fit:cover;

  transition:transform .3s;
}

.category-card:hover .cat-img img{
  transform:scale(1.04);
}

.category-card .cat-body{
  padding:22px;
}

.category-card h3{
  font-size:25px;
}

.category-card p{
  margin-top:8px;

  font-size:14px;
}

.category-card .link{
  display:inline-block;

  margin-top:15px;

  color:var(--rust);

  font-weight:700;
  font-size:14px;
}


/* =========================================================
   PRODUCTOS
========================================================= */

.products-toolbar{
  display:flex;

  justify-content:space-between;

  gap:15px;

  flex-wrap:wrap;

  margin-bottom:25px;
}

.search{
  flex:1;

  min-width:240px;

  position:relative;
}

.search input{
  width:100%;

  padding:13px 16px;

  border:1px solid var(--line);

  border-radius:999px;

  background:var(--surface);

  outline:none;
}

.filters{
  display:flex;

  gap:8px;

  flex-wrap:wrap;
}

.filter{
  border:1px solid var(--line);

  background:transparent;

  border-radius:999px;

  padding:10px 14px;

  cursor:pointer;

  color:var(--muted);
}

.filter.active,
.filter:hover{
  background:var(--ink);
  color:white;
}

.product-grid{
  display:grid;

  grid-template-columns:repeat(4,minmax(0,1fr));

  gap:20px;
}

.product-card{
  min-width:0;

  background:var(--surface);

  border:1px solid var(--line);

  border-radius:var(--radius);

  overflow:hidden;

  display:flex;
  flex-direction:column;
}

.product-image{
  position:relative;

  aspect-ratio:1/1;

  background:#eee;

  overflow:hidden;
}

.product-image img{
  width:100%;
  height:100%;

  object-fit:cover;
}

.badge{
  position:absolute;

  left:12px;
  top:12px;

  background:var(--rust);
  color:white;

  padding:5px 9px;

  border-radius:999px;

  font-size:11px;
  font-weight:700;
}

.product-info{
  min-width:0;

  padding:17px;

  display:flex;
  flex-direction:column;

  gap:8px;

  flex:1;
}

.product-info h3{
  font:600 18px "Work Sans",sans-serif;
}

.product-info .category{
  color:var(--rust);

  font-size:12px;
  font-weight:700;

  text-transform:uppercase;
  letter-spacing:.05em;
}

.product-info p{
  font-size:13px;
  flex:1;
}

.price{
  margin-top:3px;

  color:var(--ink);

  font:700 22px Fraunces,serif;
}

.product-actions{
  display:flex;

  gap:8px;

  margin-top:8px;
}

.product-actions .btn{
  flex:1;

  padding:9px 13px;

  font-size:13px;
}


/* =========================================================
   HERO DE OTRAS PÁGINAS
========================================================= */

.page-hero{
  padding:65px 0 45px;

  border-bottom:1px solid var(--line);
}

.page-hero h1{
  font-size:clamp(38px,5vw,58px);

  margin-top:8px;
}

.page-hero p{
  max-width:700px;

  margin-top:14px;

  font-size:17px;
}


/* =========================================================
   INFORMACIÓN
========================================================= */

.info-grid{
  display:grid;

  grid-template-columns:repeat(2,minmax(0,1fr));

  gap:22px;
}

.info-card{
  min-width:0;

  background:var(--surface);

  border:1px solid var(--line);

  border-radius:var(--radius);

  padding:28px;
}

.info-card h2{
  font-size:28px;
}

.info-card ul{
  padding-left:20px;

  color:var(--muted);
}

.info-card li{
  margin:9px 0;
}


/* =========================================================
   NOSOTROS
========================================================= */

.about-grid{
  display:grid;

  grid-template-columns:.9fr 1.1fr;

  gap:50px;

  align-items:center;
}

.about-grid > *{
  min-width:0;
}

.about-image{
  aspect-ratio:1/1;

  border-radius:28px;

  overflow:hidden;

  background:#ddd;
}

.about-image img{
  width:100%;
  height:100%;

  object-fit:cover;
}

.about-copy h2{
  font-size:clamp(30px,4vw,46px);
}

.about-copy p{
  margin-top:18px;

  font-size:16px;
}

.stats{
  display:flex;

  gap:35px;

  flex-wrap:wrap;

  margin-top:28px;
}

.stats strong{
  display:block;

  font:700 30px Fraunces,serif;
}

.stats span{
  color:var(--muted);

  font-size:13px;
}


/* =========================================================
   CONTACTO
========================================================= */

.contact-grid{
  display:grid;

  grid-template-columns:.8fr 1.2fr;

  gap:25px;
}

.contact-grid > *{
  min-width:0;
}

.contact-list{
  display:grid;

  gap:12px;

  margin-top:22px;
}

.contact-item{
  padding:16px;

  border:1px solid var(--line);

  border-radius:14px;

  background:var(--surface);
}

.contact-item b{
  display:block;

  margin-bottom:3px;
}

.contact-item a{
  color:var(--rust);

  text-decoration:none;
}

.contact-form{
  background:var(--surface);

  border:1px solid var(--line);

  border-radius:var(--radius);

  padding:28px;
}

.field{
  margin-bottom:15px;
}

.field label{
  display:block;

  margin-bottom:6px;

  font-size:13px;
  font-weight:700;
}

.field input,
.field textarea{
  width:100%;

  padding:12px 14px;

  border:1px solid var(--line);

  border-radius:10px;

  background:white;

  outline:none;
}

.field textarea{
  min-height:130px;

  resize:vertical;
}


/* =========================================================
   CTA
========================================================= */

.cta{
  min-width:0;

  display:grid;

  grid-template-columns:minmax(0,1fr) auto;

  gap:30px;

  align-items:center;

  background:var(--ink);

  color:#f5efe4;

  border-radius:28px;

  padding:48px;
}

.cta > *{
  min-width:0;
}

.cta p{
  color:#d5c9b5;

  margin-top:10px;
}

.cta .btn{
  margin-top:20px;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer{
  margin-top:60px;

  padding:55px 0 22px;

  background:var(--ink);

  color:#d5c9b5;
}

.footer-grid{
  display:grid;

  grid-template-columns:1.3fr .8fr .8fr;

  gap:40px;

  padding-bottom:35px;

  border-bottom:1px solid rgba(255,255,255,.12);
}

.footer-grid > *{
  min-width:0;
}

.site-footer .logo img.brand-logo{
  display:block;

  width:220px;
  max-width:220px;

  height:auto;

  object-fit:contain;

  margin:0;
  padding:0;

  border-radius:0;
}

.site-footer p{
  color:#bdb09a;

  margin-top:12px;

  font-size:14px;
}

.site-footer h4{
  margin-bottom:14px;

  color:#fff8ed;

  font:700 13px "Work Sans",sans-serif;
}

.site-footer ul{
  display:grid;

  gap:9px;

  list-style:none;

  padding:0;
  margin:0;
}

.site-footer a{
  color:#bdb09a;

  text-decoration:none;

  font-size:14px;
}

.site-footer a:hover{
  color:white;
}

.footer-bottom{
  display:flex;

  justify-content:space-between;

  gap:15px;

  flex-wrap:wrap;

  padding-top:18px;

  color:#968a77;

  font-size:12px;
}


/* =========================================================
   WHATSAPP FLOTANTE
========================================================= */

.wa{
  position:fixed;

  right:20px;
  bottom:20px;

  z-index:90;

  width:56px;
  height:56px;

  display:grid;
  place-items:center;

  background:var(--whatsapp);

  color:white;

  border-radius:50%;

  box-shadow:0 8px 25px rgba(0,0,0,.2);

  text-decoration:none;
  font-weight:700;
}

.wa:hover{
  background:var(--whatsapp-dark);
}


/* =========================================================
   OTROS
========================================================= */

.empty{
  grid-column:1/-1;

  padding:50px;

  text-align:center;

  color:var(--muted);
}

.toast{
  position:fixed;

  left:50%;
  bottom:25px;

  z-index:200;

  transform:translate(-50%,20px);

  max-width:calc(100% - 30px);

  background:var(--ink);

  color:white;

  padding:12px 18px;

  border-radius:999px;

  opacity:0;

  pointer-events:none;

  transition:.25s;
}

.toast.show{
  opacity:1;

  transform:translate(-50%,0);
}


/* =========================================================
   TABLET Y MOBILE
   Hasta 950px
========================================================= */

@media (max-width:950px){

  /* HEADER */

  .nav{
    position:relative;

    height:70px;

    gap:10px;
  }

  .logo{
    flex:0 1 auto;
    min-width:0;
  }

  .site-header .logo img.brand-logo{
    width:155px;
    max-width:155px;
    max-height:56px;
  }


  /* Menú desplegable */

  .nav nav{
    position:static;
  }

  .nav-links{
    position:absolute;

    top:70px;
    left:-20px;
    right:-20px;

    z-index:110;

    display:none;

    flex-direction:column;
    align-items:stretch;

    gap:0;

    padding:10px 20px 20px;

    background:var(--bg);

    border-bottom:1px solid var(--line);

    box-shadow:0 12px 20px rgba(42,33,25,.06);
  }

  .nav-links.open{
    display:flex;
  }

  .nav-links li{
    width:100%;
  }

  .nav-links a{
    display:block;

    width:100%;

    padding:11px 10px;
  }


  /* Acciones */

  .nav-actions{
    flex:0 0 auto;

    gap:8px;
  }


  /*
     IMPORTANTE:
     ocultamos únicamente el WhatsApp
     grande que está dentro del header.
  */

  .site-header .header-whatsapp{
    display:none !important;
  }


  /* Consulta */

  .cart-btn{
    flex:0 0 auto;

    padding:9px 13px;

    white-space:nowrap;
  }


  /* Hamburguesa */

  .menu-btn{
    display:block;

    flex:0 0 auto;

    padding:6px;

    font-size:25px;
    line-height:1;
  }


  /* CONTENIDO */

  .hero-grid,
  .about-grid,
  .contact-grid{
    grid-template-columns:1fr;
  }

  .hero-art{
    min-height:320px;
  }

  .product-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .category-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

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


/* =========================================================
   MOBILE
   Hasta 650px
========================================================= */

@media (max-width:650px){

  .container{
    width:calc(100% - 28px);
  }

  .section{
    padding:55px 0;
  }


  /* HEADER */

  .nav{
    height:68px;

    gap:7px;
  }

  .site-header .logo img.brand-logo{
    width:135px;
    max-width:135px;
    max-height:52px;
  }

  .nav-actions{
    gap:5px;
  }

  .cart-btn{
    padding:8px 11px;

    font-size:14px;
  }

  .menu-btn{
    padding:4px;

    font-size:23px;
  }

  .nav-links{
    top:68px;

    left:-14px;
    right:-14px;

    padding-left:14px;
    padding-right:14px;
  }


  /* HERO */

  .hero{
    padding:55px 0;
  }

  .hero h1{
    font-size:clamp(40px,13vw,58px);
  }

  .hero .lead{
    font-size:17px;
  }

  .hero-actions{
    align-items:flex-start;
  }


  /* PRODUCTOS */

  .product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));

    gap:13px;
  }

  .product-info{
    padding:13px;
  }

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

  .price{
    font-size:19px;
  }

  .product-actions{
    flex-direction:column;
  }

  .product-actions .btn{
    width:100%;
  }

  .search{
    min-width:0;
    width:100%;
  }


  /* CATEGORÍAS */

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


  /* OTROS GRIDS */

  .info-grid,
  .footer-grid{
    grid-template-columns:1fr;
  }


  /* CTA */

  .cta{
    padding:30px 24px;
  }


  /* FOOTER */

  .site-footer .logo img.brand-logo{
    width:200px;
    max-width:100%;
  }
}


/* =========================================================
   MOBILE PEQUEÑO
   Hasta 420px
========================================================= */

@media (max-width:420px){

  .site-header .logo img.brand-logo{
    width:120px;
    max-width:120px;
  }

  .cart-btn{
    padding:7px 10px;

    font-size:13px;
  }

  .menu-btn{
    font-size:22px;
  }

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

  .hero-actions{
    flex-direction:column;
    align-items:stretch;
  }

  .hero-actions .btn{
    width:100%;
  }
}


/* =========================================================
   MOBILE MUY PEQUEÑO
========================================================= */

@media (max-width:350px){

  .site-header .logo img.brand-logo{
    width:105px;
    max-width:105px;
  }

  .cart-btn{
    padding:7px 8px;

    font-size:12px;
  }

  .nav{
    gap:4px;
  }

  .nav-actions{
    gap:3px;
  }
}

/* =========================================================
   FIX DEFINITIVO MOBILE
========================================================= */

@media (max-width:950px){

  .site-header .nav .nav-actions > .header-whatsapp,
  .site-header .nav .nav-actions > .btn-primarywa{
    display:none !important;
  }

}

/* =========================================================
   PROTECCIÓN CONTRA OVERFLOW HORIZONTAL
========================================================= */

html,
body{
  width:100%;
  max-width:100vw;
  margin:0;
  padding:0;
  overflow-x:clip;
}

body > *{
  max-width:100%;
}

.site-header,
main,
.site-footer{
  width:100%;
  max-width:100%;
}

.container{
  max-width:100%;
}

img,
svg,
video,
iframe{
  max-width:100%;
}

@media (max-width:650px){

  .container{
    width:calc(100% - 28px);
    max-width:calc(100% - 28px);
    margin-left:auto;
    margin-right:auto;
  }

  .site-header .container.nav{
    width:calc(100% - 28px);
    max-width:calc(100% - 28px);
  }

  .footer-grid,
  .footer-bottom{
    width:100%;
    max-width:100%;
    min-width:0;
  }

  .footer-grid > *,
  .footer-bottom > *{
    min-width:0;
    max-width:100%;
  }

  .footer-bottom span{
    overflow-wrap:anywhere;
  }

}
/* =========================================================
   GALERÍA DE FOTOS DE PRODUCTOS
   Admite 1, 2 o más fotos por artículo.
   ========================================================= */
.product-slide{
  display:none;
  width:100%;
  height:100%;
  object-fit:cover;
}
.product-slide.active{display:block;}
.slider-arrow{
  position:absolute;
  top:50%;
  z-index:6;
  width:38px;
  height:38px;
  padding:0;
  transform:translateY(-50%);
  display:grid;
  place-items:center;
  border:1px solid rgba(42,33,25,.12);
  border-radius:50%;
  background:rgba(255,250,241,.92);
  color:var(--ink);
  font-size:26px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 4px 14px rgba(42,33,25,.14);
}
.slider-prev{left:10px;}
.slider-next{right:10px;}
.slider-dots{
  position:absolute;
  left:50%;
  bottom:10px;
  z-index:6;
  display:flex;
  gap:6px;
  transform:translateX(-50%);
}
.slider-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:rgba(255,255,255,.55);
  border:1px solid rgba(42,33,25,.25);
}
.slider-dot.active{background:#fff;}

/* ===== GUÍAS / CONTENIDO EVERGREEN ===== */
.guide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.guide-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:26px;box-shadow:var(--shadow)}
.guide-card h2{font-size:25px;margin:8px 0 12px}.guide-card h2 a{text-decoration:none}.guide-card .link{display:inline-block;margin-top:16px;color:var(--rust);font-weight:700;text-decoration:none}
.article-page{padding:54px 0 80px}.article-container{width:min(780px,calc(100% - 40px));margin:auto}.breadcrumbs{font-size:14px;color:var(--muted);margin-bottom:28px}.breadcrumbs a{color:var(--muted)}
.article-container h1{font-size:clamp(38px,6vw,62px);margin:10px 0 18px}.article-lead{font-size:20px;line-height:1.65}.article-cover{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:var(--radius);margin:30px 0}.article-container h2{font-size:30px;margin:36px 0 12px}.article-container p{font-size:17px;line-height:1.8}.article-cta{margin-top:44px;padding:30px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}.article-cta h2{margin-top:0}.article-cta .btn{margin-top:18px}
@media(max-width:800px){.guide-grid{grid-template-columns:1fr}.article-container{width:calc(100% - 28px)}.article-container h2{font-size:26px}}
