/* ============================================================
   GREMI D'HERBOLARIS CV — estilo natural / orgánico moderno
   Paleta inspirada en verde bosque, verde salvia, arena y crema.
   ============================================================ */

:root {
  --green-900: #1e3a2b;
  --green-800: #2c4a38;
  --green-700: #3a5a44;
  --green-600: #4f7355;
  --green-500: #6a9072;
  --green-400: #9ab89e;
  --green-200: #d3e0cf;
  --green-100: #eaf1e6;
  --earth-900: #3d2f21;
  --earth-600: #7a5c3c;
  --earth-400: #c2a37a;
  --sand: #f4efe4;
  --cream: #faf7ef;
  --ink: #1d241c;
  --muted: #5a6257;
  --line: #d9dccf;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(30, 58, 43, .06), 0 2px 6px rgba(30, 58, 43, .05);
  --shadow-md: 0 4px 14px rgba(30, 58, 43, .08), 0 2px 4px rgba(30, 58, 43, .04);
  --shadow-lg: 0 20px 45px rgba(30, 58, 43, .15);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans: 'Manrope', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--green-700);
  text-decoration: none;
  transition: color .2s ease;
}

a:hover {
  color: var(--green-900);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--green-900);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* --------- Header / nav --------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 239, .85);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-900);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
}

.brand img.logo,
.brand svg {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: none;
  fill: var(--green-700);
}

.brand small {
  display: block;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--green-600);
  font-weight: 500;
  margin-top: -2px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}

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

.nav-links a.active::after {
  content: '';
  position: absolute;
  inset: auto 0 -4px;
  height: 2px;
  background: var(--green-600);
  border-radius: 2px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--green-700);
  color: #ffffff !important;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(30, 58, 43, .15);
}

.nav-cta:hover,
.nav-cta:focus,
.nav-cta.active { background: var(--green-900); color: #ffffff !important; }

/* Ensure active state on the CTA keeps white text (some nav-links rules apply color) */
.nav-links a.nav-cta,
.nav-links a.nav-cta:visited { color: #ffffff !important; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--green-900);
}

@media (max-width: 880px) {
  .nav-links {
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; }
  .menu-toggle { display: inline-flex; }
  .nav-cta { padding: 8px 14px; }
}

/* --------- Hero --------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 120px;
  background:
    radial-gradient(ellipse at top left, rgba(106, 144, 114, .25), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(194, 163, 122, .18), transparent 55%),
    linear-gradient(180deg, var(--cream), var(--sand));
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--green-400);
  border-radius: 999px;
  background: rgba(255,255,255,.6);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-800);
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: italic;
  color: var(--green-600);
}

.hero p.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
}

.btn-primary { background: var(--green-800); color: var(--white); }
.btn-primary:hover { background: var(--green-900); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-ghost { background: transparent; color: var(--green-800); border-color: var(--green-400); }
.btn-ghost:hover { background: var(--green-100); color: var(--green-900); }

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero-stats .stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--green-800);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stats .stat span {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--green-200), var(--green-400));
}

.hero-visual .leaf-bg {
  position: absolute;
  inset: 0;
  opacity: .9;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.3), transparent 40%),
    linear-gradient(160deg, #6a9072 0%, #3a5a44 55%, #2c4a38 100%);
}

.hero-visual svg.leaves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-visual .tag {
  position: absolute;
  left: 24px;
  bottom: 24px;
  right: 24px;
  padding: 18px 22px;
  background: rgba(250, 247, 239, .96);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.hero-visual .tag strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--green-900);
  margin-bottom: 4px;
}

.hero-visual .tag span {
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 920px) {
  .hero { padding: 64px 0 80px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { aspect-ratio: 3 / 2; max-width: 520px; }
  .hero-stats { gap: 20px; }
}

/* --------- Sections --------- */
.section {
  padding: 96px 0;
}

.section.alt {
  background: var(--sand);
}

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}

.section-head .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 14px;
}

.section-head p {
  font-size: 1.1rem;
  color: var(--muted);
}

/* --------- About --------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-grid .about-copy p {
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 1.2em;
}

.about-grid .about-copy p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 3.5em;
  float: left;
  line-height: 0.9;
  margin-right: 10px;
  margin-top: 4px;
  color: var(--green-700);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.value-card {
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}

.value-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.value-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-100);
  color: var(--green-800);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.value-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.value-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .value-grid { grid-template-columns: 1fr; }
}

/* --------- Directory / filters --------- */
.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 12px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}

.filters input,
.filters select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  appearance: none;
  transition: border-color .15s;
}

.filters input:focus,
.filters select:focus {
  outline: none;
  border-color: var(--green-600);
  background: var(--white);
}

.filters .reset {
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--muted);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all .15s;
}
.filters .reset:hover { background: var(--green-100); color: var(--green-800); border-color: var(--green-400); }

.result-count {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-400);
}

.card-img {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--green-200), var(--green-500));
  position: relative;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

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

.card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(30, 58, 43, .55) 100%);
  pointer-events: none;
}

.card-img .city-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 5px 12px;
  background: rgba(255,255,255, .95);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green-800);
  letter-spacing: 0.02em;
  z-index: 1;
}

.card-body {
  padding: 22px 22px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--green-900);
}

.card-body .address {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.card-body .summary {
  font-size: 0.92rem;
  color: var(--ink);
  flex: 1;
  margin-bottom: 18px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.chip {
  font-size: 0.73rem;
  padding: 3px 10px;
  background: var(--green-100);
  color: var(--green-800);
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.card-cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.card-cta::after {
  content: '→';
  transition: transform .2s ease;
}

.card:hover .card-cta::after { transform: translateX(4px); }

.no-results {
  padding: 48px;
  text-align: center;
  color: var(--muted);
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

@media (max-width: 720px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .reset { grid-column: 1 / -1; }
}

/* --------- Map --------- */
.map-wrapper {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  height: 640px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: var(--white);
}

.map-sidebar {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-right: 1px solid var(--line);
  overflow: hidden;
}

.map-sidebar header {
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.map-sidebar header strong { font-family: var(--font-serif); font-size: 1.05rem; color: var(--green-900); }
.map-sidebar header span { font-size: 0.8rem; color: var(--muted); }

.map-sidebar input {
  margin: 10px 16px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  font-family: inherit;
  font-size: 0.9rem;
}

.map-list {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-y: auto;
  flex: 1;
}

.map-list li {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .15s;
}

.map-list li:hover,
.map-list li.active {
  background: var(--green-100);
}

.map-list li strong {
  display: block;
  font-family: var(--font-serif);
  color: var(--green-900);
  font-size: 1rem;
  line-height: 1.2;
  margin-bottom: 4px;
}

.map-list li .addr { font-size: 0.8rem; color: var(--muted); }

#map {
  height: 100%;
  width: 100%;
}

.leaflet-popup-content-wrapper { border-radius: 12px; }
.leaflet-popup-content { font-family: var(--font-sans); margin: 14px 16px; }
.leaflet-popup-content strong { color: var(--green-900); font-family: var(--font-serif); font-size: 1.05rem; display: block; margin-bottom: 4px; }
.leaflet-popup-content a { color: var(--green-700); font-weight: 600; }

.marker-cluster {
  background: rgba(106, 144, 114, 0.6);
  border-radius: 50%;
}
.marker-cluster div {
  background: var(--green-700);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 700;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  margin: 5px;
  display: grid;
  place-items: center;
  font-size: 13px;
}

.map-legend {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 880px) {
  .map-wrapper {
    grid-template-columns: 1fr;
    grid-template-rows: 260px 1fr;
    height: auto;
  }
  .map-wrapper #map { height: 420px; }
  .map-sidebar { border-right: 0; border-bottom: 1px solid var(--line); order: 2; }
  .map-wrapper #map-container { order: 1; }
  .map-list { max-height: 260px; }
}

/* --------- Contacto + Asóciate --------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: flex-start;
}

.info-card {
  background: var(--green-800);
  color: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.info-card h3 { color: var(--white); }
.info-card p { color: rgba(255,255,255,.85); }

.info-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}

.info-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: 0.95rem;
}

.info-list li:first-child { border-top: 0; }

.info-list .icon {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,.12);
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
}

.info-list a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.info-list a:hover { color: var(--green-200); }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.form-field { margin-bottom: 18px; }

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-800);
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--cream);
  color: var(--ink);
  transition: border-color .15s;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--green-600);
  background: var(--white);
}

.form-field textarea { min-height: 140px; resize: vertical; }

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 14px;
}

.form-feedback {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--green-100);
  color: var(--green-900);
  border: 1px solid var(--green-400);
  border-radius: 10px;
  font-size: 0.92rem;
}

.form-feedback.show { display: block; }

@media (max-width: 880px) {
  .two-col { grid-template-columns: 1fr; }
  .info-card, .form-card { padding: 28px; }
}

/* --------- Asóciate section --------- */
.asociate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.benefit-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: all .25s;
}

.benefit-card:hover {
  border-color: var(--green-400);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.benefit-card .num {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--green-500);
  line-height: 1;
  margin-bottom: 10px;
}

.benefit-card h3 { font-size: 1.1rem; margin-bottom: 8px; }

.benefit-card p { font-size: 0.92rem; color: var(--muted); margin: 0; }

.asociate-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  color: var(--white);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
  gap: 24px;
}

.asociate-cta h3 { color: var(--white); margin: 0 0 6px; font-size: 1.6rem; }
.asociate-cta p { color: rgba(255,255,255,.85); margin: 0; max-width: 580px; }
.asociate-cta .btn-primary { background: var(--white); color: var(--green-900); }
.asociate-cta .btn-primary:hover { background: var(--sand); color: var(--green-900); }

@media (max-width: 880px) {
  .asociate-grid { grid-template-columns: 1fr; }
  .asociate-cta { flex-direction: column; align-items: flex-start; }
}

/* --------- Footer --------- */
.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,.8);
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.site-footer h4 {
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin: 0 0 18px;
}

.site-footer .brand { color: var(--white); margin-bottom: 18px; }
.site-footer .brand svg { fill: var(--green-200); }
.site-footer .brand small { color: var(--green-200); }
.site-footer p { font-size: 0.92rem; line-height: 1.7; }
.site-footer a { color: rgba(255,255,255,.8); font-size: 0.92rem; }
.site-footer a:hover { color: var(--white); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.82rem;
  color: rgba(255,255,255,.6);
  flex-wrap: wrap;
}

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* --------- Herbolario detail page --------- */
.detail-hero {
  position: relative;
  padding: 48px 0 0;
  background: linear-gradient(180deg, var(--cream), var(--sand));
}

.detail-hero .header-row {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
}

.detail-hero .shop-logo {
  width: 112px;
  height: 112px;
  object-fit: contain;
  background: var(--white);
  border-radius: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  flex: none;
}

.detail-hero .shop-title { flex: 1; min-width: 250px; }
.detail-hero h1 { margin-bottom: 6px; }
.detail-hero .cat-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }

@media (max-width: 640px) {
  .detail-hero .shop-logo { width: 80px; height: 80px; padding: 8px; }
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.breadcrumbs a { color: var(--green-700); }
.breadcrumbs .sep { margin: 0 6px; color: var(--line); }

.detail-hero h1 { margin-bottom: 8px; }

.detail-hero .city {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 14px;
  margin-top: 20px;
  margin-bottom: 64px;
}

.gallery .g-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--green-200);
  position: relative;
}
.gallery .g-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery .g-item.main { grid-row: 1 / span 2; }
.gallery .g-item.only-main { grid-column: 1 / -1; grid-row: 1 / span 2; }

@media (max-width: 720px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px 200px; }
  .gallery .g-item.main { grid-column: 1 / -1; grid-row: 1; }
}

.detail-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 56px;
  padding: 56px 0 96px;
}

.detail-body .prose h2 {
  font-size: 1.8rem;
  margin-top: 1.5em;
  margin-bottom: 0.6em;
}

.detail-body .prose p {
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.75;
}

.detail-aside {
  position: sticky;
  top: 110px;
}

.aside-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.aside-card h3 {
  font-size: 1.15rem;
  margin-bottom: 18px;
}

.aside-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.aside-list li {
  padding: 10px 0;
  font-size: 0.95rem;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
}

.aside-list li:first-child { border-top: 0; }
.aside-list li strong { display: block; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }

#map-detail {
  height: 280px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-top: 18px;
}

@media (max-width: 880px) {
  .detail-body { grid-template-columns: 1fr; gap: 32px; padding: 32px 0 64px; }
  .detail-aside { position: static; }
}

/* --------- Interactive gallery + lightbox --------- */
.gallery .g-item {
  cursor: zoom-in;
  transition: transform .3s ease, box-shadow .3s ease;
}
.gallery .g-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.gallery .g-item img {
  transition: transform .5s ease;
}
.gallery .g-item:hover img { transform: scale(1.08); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(30, 36, 28, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  animation: fadeIn .2s ease;
}
.lightbox.open { display: flex; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  object-fit: contain;
}

.lightbox .close, .lightbox .nav {
  position: absolute;
  background: rgba(255,255,255,0.15);
  border: 0;
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s;
}
.lightbox .close:hover, .lightbox .nav:hover { background: rgba(255,255,255,0.28); }
.lightbox .close { top: 24px; right: 24px; }
.lightbox .prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

/* --------- Servicios section on detail page --------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.service-card {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all .2s;
}
.service-card:hover { border-color: var(--green-400); box-shadow: var(--shadow-sm); }
.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--green-800);
}
.service-card p { font-size: 0.92rem; color: var(--ink); margin: 0; line-height: 1.6; }

.pullquote {
  margin: 40px 0;
  padding: 32px 36px;
  background: var(--green-100);
  border-left: 4px solid var(--green-600);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--green-900);
}

.productos-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.productos-row .chip {
  font-size: 0.85rem;
  padding: 6px 14px;
}

/* --------- Utility --------- */
.text-center { text-align: center; }
.mt-8 { margin-top: 48px; }
.skeleton {
  background: linear-gradient(110deg, var(--green-100) 8%, var(--sand) 18%, var(--green-100) 33%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --------- 404 / Fallback image --------- */
.img-placeholder {
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.25), transparent 50%),
    linear-gradient(135deg, var(--green-500), var(--green-800));
  display: grid;
  place-items: center;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.6rem;
  text-align: center;
  padding: 40px;
}
