/* ══════════════════════════════════════════════════════════════
   negocio.css — Página individual de comercio JAC Miraflores
   ══════════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────────── */
.neg-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding-top: 68px;
  overflow: hidden;
}
.neg-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: zoomOut 10s ease forwards;
}
@keyframes zoomOut { to { transform: scale(1); } }
.neg-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,31,20,0.95) 0%,
    rgba(10,31,20,0.55) 55%,
    rgba(10,31,20,0.2) 100%
  );
}
.neg-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 60px;
  padding-bottom: 72px;
  width: 100%;
}
.neg-hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; }

/* Breadcrumb */
.neg-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.neg-breadcrumb a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.neg-breadcrumb a:hover { color: var(--yellow, #F5C842); }
.neg-breadcrumb span:last-child { color: rgba(255,255,255,0.8); }

/* Badges */
.neg-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.neg-badge-cat {
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  padding: 4px 12px;
  border-radius: 100px;
  backdrop-filter: blur(6px);
}
.neg-badge-plan {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}
.neg-badge-plan--premium {
  background: var(--yellow, #F5C842);
  color: #0A1F14;
}
.neg-badge-plan--std {
  background: rgba(46,204,127,0.85);
  color: #fff;
}

.neg-hero-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.neg-hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* CTA del hero */
.neg-hero-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.neg-btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 22px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 18px rgba(37,211,102,0.35);
}
.neg-btn-wa:hover { background: #1da851; transform: translateY(-2px); }
.neg-btn-contacto,
.neg-btn-galeria {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 11px 18px;
  border-radius: 12px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s;
}
.neg-btn-contacto:hover,
.neg-btn-galeria:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
}

/* ── Layout principal ──────────────────────────────────────── */
.neg-main { padding: 40px 0 72px; }
.neg-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

/* ── Secciones de contenido ────────────────────────────────── */
.neg-section {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid rgba(27,94,59,0.08);
  margin-bottom: 24px;
}
.neg-section:last-child { margin-bottom: 0; }

.neg-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #0A1F14;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(27,94,59,0.08);
}
.neg-section-title svg { stroke: #1B5E3B; flex-shrink: 0; }

/* ── Galería ───────────────────────────────────────────────── */
.neg-galeria {
  display: grid;
  gap: 8px;
}
.neg-galeria--full  { grid-template-columns: repeat(3, 1fr); grid-template-rows: 200px 200px; }
.neg-galeria--small { grid-template-columns: repeat(3, 1fr); grid-template-rows: 200px; }
.neg-galeria--uno   { grid-template-columns: 1fr; }

.neg-gal-item {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #e8f0ea;
}
.neg-gal-item--main {
  grid-column: span 2;
  grid-row: span 2;
}
.neg-galeria--small .neg-gal-item--main { grid-column: span 1; grid-row: span 1; }
.neg-galeria--uno   .neg-gal-item { height: 320px; }

.neg-gal-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.neg-gal-item:hover img { transform: scale(1.06); }
.neg-gal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,31,20,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}
.neg-gal-item:hover .neg-gal-overlay { opacity: 1; }

/* ── Productos ─────────────────────────────────────────────── */
.neg-prods-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(27,94,59,0.1);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 18px;
}
.neg-prod-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(27,94,59,0.07);
  transition: background 0.15s;
}
.neg-prod-card:last-child { border-bottom: none; }
.neg-prod-card:hover { background: #f7fbf8; }
.neg-prod-info { display: flex; flex-direction: column; gap: 3px; }
.neg-prod-nombre {
  font-size: 0.92rem;
  font-weight: 600;
  color: #0A1F14;
}
.neg-prod-desc {
  font-size: 0.8rem;
  color: #5A7A66;
  line-height: 1.4;
}
.neg-prod-precio {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1B5E3B;
  white-space: nowrap;
  flex-shrink: 0;
}
.neg-prods-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37,211,102,0.1);
  border: 1.5px solid rgba(37,211,102,0.3);
  color: #1B5E3B;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 11px 18px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.neg-prods-cta:hover { background: rgba(37,211,102,0.18); border-color: #2ECC7F; }

/* ── Formulario ────────────────────────────────────────────── */
.neg-form-card { }
.neg-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ins-field { margin-bottom: 14px; }
.ins-field:last-child { margin-bottom: 0; }
.ins-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #2d3f35;
  margin-bottom: 6px;
}
.ins-field input,
.ins-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid rgba(27,94,59,0.2);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: #0A1F14;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}
.ins-field input:focus,
.ins-field textarea:focus {
  border-color: #2ECC7F;
  box-shadow: 0 0 0 3px rgba(46,204,127,0.12);
}
.ins-field input.error { border-color: #e05c5c; }
.ins-field textarea { resize: vertical; min-height: 100px; }
.ins-err { display: block; font-size: 0.73rem; color: #e05c5c; min-height: 14px; margin-top: 4px; }
.neg-btn-enviar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #1B5E3B;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.2s, transform 0.15s;
}
.neg-btn-enviar:hover { background: #0A3D22; transform: translateY(-1px); }
.neg-btn-enviar:disabled { background: #7aaa8e; cursor: not-allowed; transform: none; }
.neg-form-success {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 20px;
}
.neg-form-success h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #1B5E3B;
}
.neg-form-success p { font-size: 0.88rem; color: #5A7A66; line-height: 1.6; }

/* ── Columna lateral ───────────────────────────────────────── */
.neg-col-side {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.neg-info-card {
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  border: 1px solid rgba(27,94,59,0.09);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.neg-info-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #0A1F14;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(27,94,59,0.08);
}
.neg-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(27,94,59,0.06);
}
.neg-info-item--col { flex-direction: column; }
.neg-info-item--col .neg-info-ico { display: none; }
.neg-info-item:last-of-type { border-bottom: none; }
.neg-info-ico {
  width: 30px; height: 30px;
  background: rgba(27,94,59,0.07);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.neg-info-txt { display: flex; flex-direction: column; gap: 4px; }
.neg-info-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5A7A66;
}
.neg-info-val { font-size: 0.87rem; color: #1C2B22; line-height: 1.5; }
.neg-info-link {
  font-size: 0.87rem;
  color: #1B5E3B;
  font-weight: 600;
  text-decoration: none;
}
.neg-info-link:hover { color: #2ECC7F; text-decoration: underline; }

.neg-horario-list { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.neg-horario-list li { display: flex; justify-content: space-between; gap: 8px; font-size: 0.82rem; }
.neg-hor-dia { color: #5A7A66; }
.neg-hor-val { color: #1C2B22; font-weight: 500; text-align: right; }

/* Redes sociales */
.neg-redes {
  display: flex;
  gap: 8px;
  padding: 12px 0 4px;
  flex-wrap: wrap;
}
.neg-red {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}
.neg-red:hover { opacity: 0.85; transform: translateY(-1px); }
.neg-red--fb { background: #1877F2; color: #fff; }
.neg-red--ig { background: linear-gradient(135deg,#f58529,#dd2a7b,#8134af); color: #fff; }

/* Botón WA en tarjeta */
.neg-wa-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 13px;
  border-radius: 12px;
  text-decoration: none;
  margin-top: 14px;
  transition: background 0.2s, transform 0.15s;
}
.neg-wa-card-btn:hover { background: #1da851; transform: translateY(-1px); }

/* Volver */
.neg-volver {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #5A7A66;
  text-decoration: none;
  padding: 11px 16px;
  background: #fff;
  border-radius: 12px;
  border: 1.5px solid rgba(27,94,59,0.12);
  transition: color 0.2s, border-color 0.2s;
}
.neg-volver:hover { color: #1B5E3B; border-color: #1B5E3B; }

/* Compartir */
.neg-compartir {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(27,94,59,0.08);
  padding: 16px;
}
.neg-compartir-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5A7A66;
  margin-bottom: 10px;
}
.neg-compartir-btns { display: flex; gap: 8px; }
.neg-share-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 9px 8px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.neg-share-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.neg-share-wa   { background: #25D366; color: #fff; }
.neg-share-copy { background: #f0f7f3; border: 1.5px solid rgba(27,94,59,0.15); color: #1B5E3B; }

/* ── Lightbox ──────────────────────────────────────────────── */
.neg-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.neg-lightbox.active { opacity: 1; pointer-events: all; }
.neg-lb-img {
  max-width: 90vw;
  max-height: 82vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.neg-lb-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.neg-lb-close:hover { background: rgba(255,255,255,0.25); }
.neg-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.neg-lb-nav:hover { background: rgba(255,255,255,0.25); }
.neg-lb-prev { left: 16px; }
.neg-lb-next { right: 16px; }
.neg-lb-counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.4);
  padding: 4px 14px;
  border-radius: 100px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .neg-layout { grid-template-columns: 1fr; }
  .neg-col-side { position: static; }
  .neg-galeria--full { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .neg-gal-item--main { grid-column: span 2; height: 220px; }
}
@media (max-width: 600px) {
  .neg-hero { min-height: 50vh; }
  .neg-hero-title { font-size: 1.7rem; }
  .neg-hero-ctas { flex-direction: column; align-items: flex-start; }
  .neg-galeria--full  { grid-template-columns: 1fr; }
  .neg-gal-item--main { grid-column: span 1; height: 200px; }
  .neg-form-row { grid-template-columns: 1fr; }
  .neg-section { padding: 20px 16px; }
  .neg-lb-prev { left: 6px; }
  .neg-lb-next { right: 6px; }
}
