/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --verde-bosque: #15301F;
  --verde:        #2E5A34;
  --verde-hoja:   #5E8A4E;
  --verde-claro:  #EAF2E3;
  --buganvilia:   #C32A6E;
  --barro:        #B8623A;
  --arena:        #F3EDE1;
  --crema:        #FBF7EF;
  --tinta:        #1B2419;
  --talavera:     #2C6E9B;
  --sombra-s:     0 4px 16px -4px rgba(21,48,31,.14);
  --sombra-m:     0 16px 40px -12px rgba(21,48,31,.22);
  --sombra-l:     0 28px 60px -16px rgba(21,48,31,.32);
  --r:            20px;
  --r-sm:         12px;
  --ease:         cubic-bezier(.22,1,.36,1);
}

/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--tinta);
  background: var(--crema);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.08;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.wrap { width: min(1200px, 92vw); margin-inline: auto; }

/* ── Eyebrow label ────────────────────────────────────────────────────────── */
.eyebrow {
  font-size: .7rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--barro);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  flex: none;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 999px;
  padding: .7rem 1.4rem;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  border: none;
  transition: background .18s, transform .18s var(--ease), box-shadow .18s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: scale(.97); }
.btn-wa {
  background: var(--verde);
  color: #fff;
  box-shadow: 0 4px 14px -4px rgba(46,90,52,.45);
}
.btn-wa:hover { background: var(--verde-bosque); box-shadow: var(--sombra-m); }
.btn-ghost {
  background: transparent;
  color: var(--verde-bosque);
  border: 1.5px solid rgba(21,48,31,.22);
}
.btn-ghost:hover { border-color: var(--verde); color: var(--verde); }
.btn-sm { padding: .5rem 1rem; font-size: .82rem; }

/* ── Talavera band ────────────────────────────────────────────────────────── */
.talavera-band {
  height: 10px;
  background-color: var(--verde-bosque);
  background-size: 20px 20px;
  background-image:
    radial-gradient(circle at 10px 10px, var(--buganvilia) 2px, transparent 2.4px),
    radial-gradient(circle at 0 0, var(--talavera) 2px, transparent 2.4px),
    radial-gradient(circle at 20px 20px, var(--talavera) 2px, transparent 2.4px);
}

/* ── NAV ──────────────────────────────────────────────────────────────────── */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,247,239,.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(21,48,31,.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 0;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.logo-img { height: 44px; width: auto; }
.nav-links { display: flex; gap: 1.8rem; align-items: center; }
.nav-links a:not(.btn) {
  font-weight: 500;
  font-size: .92rem;
  color: var(--verde-bosque);
  opacity: .8;
  transition: opacity .14s;
}
.nav-links a:not(.btn):hover { opacity: 1; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .35rem; line-height: 0; }

/* ── HERO ─────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--verde-bosque);
  color: var(--crema);
  overflow: hidden;
  position: relative;
}
/* subtle dot texture */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(94,138,78,.18) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 4rem;
  align-items: center;
  padding: 6rem 0 7rem;
}
.hero-text { display: flex; flex-direction: column; gap: 0; }
.hero .eyebrow { color: #E8B98C; margin-bottom: 1.2rem; }
.hero .eyebrow::before { background: #E8B98C; }
.hero h1 {
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  letter-spacing: -.02em;
  line-height: 1.0;
  margin-bottom: 1.4rem;
}
.hero h1 em { font-style: italic; color: var(--buganvilia); }
.hero .lead {
  font-size: 1.1rem;
  color: rgba(251,247,239,.78);
  max-width: 48ch;
  line-height: 1.7;
  margin-bottom: 2.2rem;
}
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 2.8rem; }
.hero .btn-ghost { color: var(--crema); border-color: rgba(251,247,239,.3); }
.hero .btn-ghost:hover { border-color: rgba(251,247,239,.7); color: #fff; }

/* stats */
.stat-row {
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(251,247,239,.12);
  padding-top: 2rem;
}
.stat {
  flex: 1;
  padding-right: 1.6rem;
  border-right: 1px solid rgba(251,247,239,.1);
}
.stat:last-child { border-right: none; padding-right: 0; padding-left: 1.6rem; }
.stat:first-child { padding-left: 0; }
.stat b { font-family: "Fraunces", serif; font-size: 2rem; color: #E8B98C; display: block; line-height: 1; margin-bottom: .2rem; }
.stat span { font-size: .8rem; color: rgba(251,247,239,.6); }

/* hero visual panel */
.hero-visual {
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  gap: 1rem;
}
.hero-img-main {
  aspect-ratio: 3/4;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid rgba(251,247,239,.12);
  box-shadow: var(--sombra-l);
  background: #234a2e;
}
.hero-img-main svg { width: 100%; height: 100%; }
.hero-badge-wrap {
  padding-bottom: 2rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  background: #fff;
  border-radius: var(--r-sm);
  padding: .75rem 1.1rem;
  box-shadow: var(--sombra-m);
}
.hero-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--verde-claro);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 1.2rem;
}
.hero-badge b { display: block; font-size: .9rem; color: var(--verde-bosque); line-height: 1.2; }
.hero-badge span { font-size: .72rem; color: rgba(27,36,25,.55); }

/* ── SECTION BASE ─────────────────────────────────────────────────────────── */
section { padding: 5.5rem 0; }
.sec-head { margin-bottom: 3rem; }
.sec-head h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--verde-bosque);
  margin: .6rem 0 .7rem;
}
.sec-head p { color: rgba(27,36,25,.65); font-size: 1.05rem; max-width: 56ch; }

/* ── CATEGORÍAS VISUALES ──────────────────────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}
.cat-tile {
  border-radius: var(--r-sm);
  padding: 1.2rem 1rem;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s var(--ease);
  background: #fff;
  box-shadow: var(--sombra-s);
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--sombra-m); }
.cat-tile.active { border-color: var(--verde); background: var(--verde-claro); }
.cat-tile .icon { font-size: 2rem; margin-bottom: .5rem; }
.cat-tile .label { font-size: .8rem; font-weight: 700; color: var(--verde-bosque); text-transform: uppercase; letter-spacing: .06em; }

/* ── FILTER CHIPS ─────────────────────────────────────────────────────────── */
.filters { display: flex; gap: .55rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.chip {
  border: 1.5px solid rgba(21,48,31,.15);
  background: #fff;
  border-radius: 999px;
  padding: .5rem 1.1rem;
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  color: var(--verde-bosque);
  font-family: inherit;
  transition: all .16s;
  box-shadow: var(--sombra-s);
}
.chip:hover { border-color: var(--verde); color: var(--verde); }
.chip[aria-pressed="true"] { background: var(--verde); border-color: var(--verde); color: #fff; box-shadow: 0 4px 14px -4px rgba(46,90,52,.4); }

/* ── PRODUCT GRID ─────────────────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.6rem;
}
.card {
  background: #fff;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sombra-s);
  border: 1px solid rgba(21,48,31,.06);
  cursor: pointer;
  transition: transform .24s var(--ease), box-shadow .24s var(--ease);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sombra-l); }
.card:focus-visible { outline: 3px solid var(--buganvilia); outline-offset: 2px; }

/* image wrapper */
.card-img-wrap {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--verde-claro);
}
.card .ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.card:hover .ph { transform: scale(1.04); }

/* quick action overlay */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(21,48,31,.72) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .24s;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.card:hover .card-overlay { opacity: 1; }
.card-overlay .btn-wa { width: 100%; justify-content: center; font-size: .82rem; padding: .55rem 1rem; }

/* category badge on image */
.card-cat-badge {
  position: absolute;
  top: .9rem;
  left: .9rem;
  background: rgba(251,247,239,.92);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: .28rem .75rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--barro);
}

.card .body { padding: 1.1rem 1.2rem 1.3rem; }
.card h3 { font-size: 1.15rem; color: var(--verde-bosque); margin-bottom: .35rem; }
.card .desc {
  font-size: .88rem;
  color: rgba(27,36,25,.62);
  margin-bottom: .8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.55;
}
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.card .price { font-weight: 700; color: var(--verde); font-size: 1.1rem; font-family: "Fraunces", serif; }
.card-wa-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--verde-claro);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--verde);
  transition: background .16s, color .16s;
  flex: none;
}
.card:hover .card-wa-icon { background: var(--verde); color: #fff; }

.empty {
  padding: 4rem 2rem;
  text-align: center;
  color: rgba(27,36,25,.5);
  grid-column: 1/-1;
  border: 2px dashed rgba(21,48,31,.12);
  border-radius: var(--r);
  font-size: 1rem;
}

/* ── NOSOTROS ─────────────────────────────────────────────────────────────── */
.nosotros { background: var(--verde-bosque); color: var(--crema); }
.nosotros .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.nosotros h2 { color: var(--crema); }
.nosotros .eyebrow { color: #E8B98C; }
.nosotros .eyebrow::before { background: #E8B98C; }
.nosotros p { color: rgba(251,247,239,.78); margin-top: 1rem; }
.nosotros .vals { list-style: none; margin-top: 2rem; display: grid; gap: 1rem; }
.nosotros .vals li {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: 1rem 1.2rem;
  background: rgba(255,255,255,.06);
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,.08);
}
.nosotros .vals svg { flex: none; margin-top: 2px; }
.nosotros .vals span { font-size: .95rem; color: rgba(251,247,239,.82); }
.frame {
  aspect-ratio: 1/1;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sombra-l);
  border: 1px solid rgba(255,255,255,.1);
}

/* ── VISÍTANOS ────────────────────────────────────────────────────────────── */
.visit .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 2.8rem; align-items: stretch; }
.info-card {
  background: #fff;
  border-radius: var(--r);
  padding: 2rem;
  box-shadow: var(--sombra-m);
  border: 1px solid rgba(21,48,31,.06);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.info-row {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(21,48,31,.07);
  align-items: flex-start;
}
.info-row:last-of-type { border-bottom: none; }
.info-row-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--verde-claro);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--verde);
  flex: none;
}
.info-row b { display: block; color: var(--verde-bosque); font-size: .9rem; margin-bottom: .15rem; }
.info-row span { color: rgba(27,36,25,.65); font-size: .93rem; }
.map {
  border-radius: var(--r);
  overflow: hidden;
  min-height: 380px;
  box-shadow: var(--sombra-m);
  border: 1px solid rgba(21,48,31,.07);
}
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ── LIGHTBOX ─────────────────────────────────────────────────────────────── */
.lb {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(13,26,16,.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}
.lb.open { display: flex; }
.lb-card {
  background: var(--crema);
  border-radius: var(--r);
  overflow: hidden;
  max-width: 580px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,.7);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.lb-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: unset; min-height: 320px; }
.lb-body { padding: 1.8rem; display: flex; flex-direction: column; }
.lb-body .cat { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--barro); }
.lb-body h3 { font-size: 1.6rem; color: var(--verde-bosque); margin: .4rem 0 .7rem; line-height: 1.15; }
.lb-body p { font-size: .92rem; color: rgba(27,36,25,.72); line-height: 1.65; flex: 1; }
.lb-body .price { font-family: "Fraunces", serif; font-size: 1.6rem; font-weight: 700; color: var(--verde); margin: 1rem 0; }
.lb-body .btn-wa { justify-content: center; }
.lb-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(251,247,239,.9);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tinta);
  transition: background .14s;
}
.lb-close:hover { background: #fff; }

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
footer {
  background: var(--tinta);
  color: rgba(251,247,239,.6);
  padding: 3.5rem 0 2rem;
}
.foot-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}
.foot-brand { display: flex; align-items: center; gap: .8rem; }
.logo-pill { background: rgba(251,247,239,.08); padding: .45rem .8rem; border-radius: 10px; display: inline-block; line-height: 0; }
.logo-pill img { height: 38px; width: auto; }
.foot-tagline { font-size: .8rem; color: rgba(251,247,239,.4); margin-top: .3rem; }
.foot-links { display: flex; gap: 1.6rem; justify-content: center; }
.foot-links a { font-size: .85rem; font-weight: 500; transition: color .14s; }
.foot-links a:hover { color: #fff; }
.foot-copy { text-align: right; font-size: .8rem; }

/* ── WA FLOAT ─────────────────────────────────────────────────────────────── */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px -6px rgba(37,211,102,.65);
  transition: transform .18s var(--ease), box-shadow .18s;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 12px 30px -6px rgba(37,211,102,.7); }

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 0;
    padding: 2.8rem 0 3.5rem;
  }
  .hero-text { order: 1; }
  .hero-visual { order: 2; max-width: 280px; margin: 2rem auto; }

  /* stats en móvil: compactos en fila */
  .stat-row {
    margin-top: 1.6rem;
    gap: 0;
  }
  .stat b { font-size: 1.3rem; }
  .stat span { font-size: .72rem; }
  .stat { padding-right: 1rem; }
  .stat:last-child { padding-left: 1rem; }

  .nosotros .wrap, .visit .wrap { grid-template-columns: 1fr; }
  .lb-card { grid-template-columns: 1fr; }
  .lb-card img { min-height: 240px; }
  .foot-inner { grid-template-columns: 1fr; text-align: center; }
  .foot-copy { text-align: center; }
  .foot-links { flex-wrap: wrap; justify-content: center; }
  .nav-links {
    position: fixed;
    inset: 65px 0 auto 0;
    background: rgba(251,247,239,.97);
    backdrop-filter: blur(14px);
    flex-direction: column;
    padding: 1.4rem 7vw;
    gap: 1rem;
    border-bottom: 1px solid rgba(21,48,31,.1);
    transform: translateY(-130%);
    transition: transform .25s var(--ease);
    align-items: flex-start;
    z-index: 49;
  }
  .nav-links.show { transform: translateY(0); }
  .nav-links .btn { width: 100%; justify-content: center; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero .lead { font-size: .95rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { justify-content: center; }
  .hero-visual { max-width: 220px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
