/* =====================================================
   7Conecta — Empresa (single page) styles
   ===================================================== */

.page-empresa { background: var(--c-bg); }

/* ---------- Buttons (extras) ---------- */
.btn-full { width: 100%; }
.btn-sm { padding: .65rem 1rem; font-size: .9rem; }
.btn-wpp-lg {
  background: #21B63E;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .97rem;
  line-height: 1;
  border: 2px solid transparent;
  transition: transform .18s, background .18s;
  text-decoration: none;
}
.btn-wpp-lg:hover { background: #1A9B33; transform: translateY(-2px); text-decoration: none; }
.btn-wpp-lg svg { width: 18px; height: 18px; }

/* ---------- Crumbs ---------- */
.crumbs {
  background: #fff;
  border-bottom: 1px solid var(--c-line);
  font-size: .85rem;
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  padding: .9rem 0;
  color: var(--c-text-2);
  list-style: none;
  margin: 0;
}
.crumbs li { display: inline-flex; align-items: center; gap: .35rem; }
.crumbs li:not(:last-child)::after {
  content: "›";
  color: var(--c-text-3);
  margin-left: .35rem;
}
.crumbs a { color: var(--c-text-2); }
.crumbs a:hover { color: var(--c-primary); }
.crumbs li[aria-current] { color: var(--c-dark); font-weight: 600; }

/* ---------- Placeholder photos ---------- */
.placeholder-photo {
  position: relative;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(135deg, #d9e0ea 0 18px, #cfd6e1 18px 36px);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.placeholder-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(2,39,87,.04), rgba(1,85,222,.06));
}
.ph-label {
  position: relative;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .72rem;
  letter-spacing: .15em;
  color: rgba(2,39,87,.6);
  background: rgba(255,255,255,.85);
  padding: .35rem .75rem;
  border-radius: 4px;
  text-transform: uppercase;
}
.placeholder-photo--cover .ph-label {
  font-size: .8rem;
  padding: .55rem 1rem;
}

/* ============================================
   Hero cover
   ============================================ */
.biz-hero {
  position: relative;
  background: var(--c-dark);
  color: #fff;
  padding-bottom: 0;
}
.biz-hero-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.biz-hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.biz-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2,39,87,.5) 0%, rgba(2,39,87,.85) 70%, rgba(2,39,87,.95) 100%);
}

.biz-hero-inner {
  position: relative;
  z-index: 2;
  padding: 1.5rem 0 2rem;
}
.biz-hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(8rem, 18vw, 14rem);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: rgba(255,255,255,.85);
  font-weight: 500;
  font-size: .92rem;
  padding: .5rem .8rem;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  text-decoration: none;
}
.back-link svg { width: 16px; height: 16px; }
.back-link:hover { background: rgba(255,255,255,.15); text-decoration: none; }

.biz-hero-actions-mini { display: flex; gap: .5rem; }
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .15s;
}
.icon-btn:hover { background: rgba(255,255,255,.2); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.is-saved { background: var(--c-orange); border-color: var(--c-orange); }
.icon-btn.is-saved svg { fill: currentColor; }

/* Floating info card */
.biz-hero-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.75rem;
  background: #fff;
  color: var(--c-text);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 30px 60px -20px rgba(2,39,87,.45), 0 12px 30px rgba(2,39,87,.18);
  margin-bottom: -3rem;
}
.bhc-logo {
  width: 96px; height: 96px;
  border-radius: 18px;
  background: linear-gradient(135deg, #022757, #0155DE);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -.02em;
  align-self: flex-start;
  overflow: hidden;
}
.bhc-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bhc-info { min-width: 0; }
.bhc-cat-row {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1rem;
  align-items: center;
  margin-bottom: .35rem;
}
.bhc-cat {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-primary);
}
.bhc-verified {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: color-mix(in oklch, var(--c-green), white 86%);
  color: var(--c-green);
  font-weight: 700;
  font-size: .78rem;
  padding: .25rem .6rem;
  border-radius: var(--r-pill);
}
.bhc-verified svg { width: 14px; height: 14px; }

.bhc-info h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  color: var(--c-dark);
  margin-bottom: .55rem;
  letter-spacing: -.02em;
}
.bhc-tag {
  color: var(--c-text-2);
  margin-bottom: 1.1rem;
  max-width: 56ch;
}
.bhc-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.bhc-stats li {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .92rem;
}
.bhc-stats strong { color: var(--c-dark); font-weight: 700; }
.bhc-stats span { color: var(--c-text-2); }
.stat-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--c-bg);
  color: var(--c-primary);
  display: grid; place-items: center;
}
.stat-icon svg { width: 16px; height: 16px; }
.stat-rating { background: color-mix(in oklch, var(--c-orange), white 86%); color: var(--c-orange); }

.bhc-actions {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  min-width: 220px;
  align-self: stretch;
  justify-content: center;
}
.bhc-actions .btn {
  justify-content: flex-start;
  padding: .85rem 1.1rem;
}

/* ============================================
   Gallery
   ============================================ */
.biz-gallery {
  padding-top: 4.5rem;
  padding-bottom: 1.5rem;
  background: var(--c-bg);
}
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 130px 130px;
  gap: .5rem;
  border-radius: 14px;
  overflow: hidden;
}
.gal-cell {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--c-bg-2);
  cursor: pointer;
  border: 0;
  padding: 0;
  transition: transform .2s, box-shadow .2s;
}
.gal-cell:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.gal-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gal-cell--main { grid-row: span 2; }
.gal-cell--more { position: relative; }
.gal-more-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2,39,87,.7);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  font-size: .85rem;
  font-weight: 600;
  text-align: center;
  padding: .5rem;
}
.gal-more-overlay svg { width: 22px; height: 22px; }

/* Lightbox */
.empresa-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.empresa-lightbox.is-open { opacity: 1; pointer-events: auto; }
.empresa-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  object-fit: contain;
}
.empresa-lightbox-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.15);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.empresa-lightbox-close:hover { background: rgba(255,255,255,.3); }
.empresa-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(255,255,255,.15);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.empresa-lightbox-nav:hover { background: rgba(255,255,255,.3); }
.empresa-lightbox-prev { left: 1rem; }
.empresa-lightbox-next { right: 1rem; }

/* ============================================
   Main content grid
   ============================================ */
.biz-main { padding: 2rem 0 3rem; }
.biz-main > .container.biz-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.75rem;
  align-items: flex-start;
}
.biz-content { display: flex; flex-direction: column; gap: 1.25rem; }
.biz-side { display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: calc(var(--hdr-h, 70px) + 1rem); }

/* Card primitive */
.card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--c-line);
  box-shadow: var(--sh-1);
}
.card-pad { padding: 1.75rem; }
.card-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--c-line);
}
.card-head h2 { font-size: 1.25rem; color: var(--c-dark); }
.card-head--split { justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.card-meta { font-size: .85rem; color: var(--c-text-2); margin-left: auto; }

.rich-text p { color: var(--c-text-2); margin-bottom: .75rem; line-height: 1.7; }
.rich-text strong { color: var(--c-dark); }

.biz-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1rem;
}
.biz-tag-item {
  background: var(--c-bg);
  color: var(--c-dark);
  font-size: .82rem;
  font-weight: 600;
  padding: .4rem .8rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: .9rem;
  margin-bottom: 1rem;
  list-style: none;
  padding: 0;
}
.service {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .9rem;
  align-items: center;
  padding: .9rem;
  border-radius: 10px;
  border: 1px solid var(--c-line);
  background: var(--c-bg);
  transition: border-color .2s, background .2s;
}
.service:hover { background: #fff; border-color: var(--c-primary); }
.service-ic {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: #fff;
  color: var(--c-primary);
  display: grid; place-items: center;
  border: 1px solid var(--c-line);
}
.service-ic svg { width: 20px; height: 20px; }
.service h3 { font-size: .98rem; color: var(--c-dark); margin-bottom: .1rem; }
.service p { font-size: .82rem; color: var(--c-text-2); }

/* ============================================
   Sidebar cards
   ============================================ */
.side-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--c-line);
  padding: 1.4rem;
  box-shadow: var(--sh-1);
}
.side-card--flush { padding: 1.4rem 1.4rem 0; overflow: hidden; }
.side-head {
  margin-bottom: 1.1rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--c-line);
}
.side-head--row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.side-head h3 { font-size: 1rem; color: var(--c-dark); }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  font-weight: 600;
  padding: .3rem .65rem;
  border-radius: var(--r-pill);
}
.status-open { background: color-mix(in oklch, var(--c-green), white 86%); color: var(--c-green); }
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in oklch, currentColor, transparent 80%);
}

.info-list { display: flex; flex-direction: column; gap: 1rem; list-style: none; padding: 0; margin: 0; }
.info-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .8rem;
  align-items: flex-start;
}
.info-ic {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--c-bg);
  color: var(--c-primary);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.info-ic svg { width: 16px; height: 16px; }
.info-lbl { display: block; font-size: .73rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c-text-3); }
.info-val { display: block; color: var(--c-dark); font-weight: 500; font-size: .92rem; line-height: 1.45; word-break: break-word; }
a.info-val:hover { color: var(--c-primary); }

.side-socials {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.side-socials a {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .88rem;
  color: var(--c-dark);
  font-weight: 500;
}
.side-socials svg { width: 18px; height: 18px; color: var(--c-primary); }

.hours { display: flex; flex-direction: column; list-style: none; padding: 0; margin: 0; }
.hours li {
  display: flex;
  justify-content: space-between;
  padding: .55rem 0;
  font-size: .9rem;
  border-bottom: 1px dashed var(--c-line);
}
.hours li:last-child { border-bottom: 0; }
.hours li span { color: var(--c-text-2); }
.hours li b { color: var(--c-dark); font-weight: 600; }
.hours li.is-today { background: color-mix(in oklch, var(--c-primary), white 94%); margin: 0 -1.4rem; padding-left: 1.4rem; padding-right: 1.4rem; }
.hours li.is-today span,
.hours li.is-today b { color: var(--c-primary); }
.hours .closed { color: var(--c-text-3); font-weight: 500; }

.map-frame { margin: 0 -1.4rem; position: relative; }
.map-frame #empresa-map { width: 100%; height: 280px; }
.map-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.4rem;
  background: var(--c-bg);
  border-top: 1px solid var(--c-line);
  font-size: .85rem;
  color: var(--c-text-2);
  gap: .75rem;
}

/* ============================================
   Sticky mobile CTA
   ============================================ */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: none;
  gap: .5rem;
  padding: .65rem .75rem calc(.65rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--c-line);
  box-shadow: 0 -8px 30px rgba(2,39,87,.1);
  z-index: 40;
}
.sticky-cta .btn { flex: 1; min-width: 0; padding: .75rem .5rem; }

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(1rem);
  background: var(--c-dark, #022757);
  color: #fff;
  padding: .75rem 1.5rem;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 9999;
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1080px) {
  .biz-main > .container.biz-grid { grid-template-columns: 1fr; }
  .biz-side { position: static; }
  .biz-hero-card { grid-template-columns: auto 1fr; }
  .bhc-actions { grid-column: 1 / -1; flex-direction: row; min-width: 0; }
  .bhc-actions .btn { flex: 1; }
}

@media (max-width: 768px) {
  .biz-hero-meta { margin-bottom: clamp(6rem, 16vw, 10rem); }
  .biz-hero-card {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.25rem;
    text-align: left;
  }
  .bhc-logo { width: 70px; height: 70px; font-size: 1.5rem; }
  .bhc-actions { flex-direction: column; }
  .bhc-actions .btn { width: 100%; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 160px 110px 110px;
  }
  .gal-cell--main { grid-column: 1 / -1; grid-row: 1; }

  .card-pad { padding: 1.25rem; }
  .sticky-cta { display: flex; }
  .biz-main { padding-bottom: 5rem; }
}

@media (max-width: 480px) {
  .bhc-stats { gap: .75rem; }
  .bhc-stats li { font-size: .85rem; }
  .gallery-grid { grid-template-rows: 140px 90px 90px; }
}

/* Hide empty sections */
.biz-content:empty, .biz-side:empty { display: none; }
.biz-grid:has(.biz-side:empty) { grid-template-columns: 1fr; }
.biz-grid:has(.biz-content:empty) { grid-template-columns: 1fr; }
