/* ══════════════════════════════════════════════════════════════════
   ubicaciones.css — page-specific styles (extends style.css)
   ══════════════════════════════════════════════════════════════════ */

/* ─── Page Hero ─────────────────────────────────────────────────── */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 80px) 0 80px;
  overflow: hidden;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, #0d2040 0%, var(--bg) 70%);
}
.page-hero__glow {
  position: absolute;
  width: 600px; height: 400px;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(29, 106, 189, 0.14) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}
.page-hero__content { max-width: 700px; }
.page-hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 16px 0 20px;
}
.page-hero__title .accent { color: var(--orange); }
.page-hero__sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ─── Office grid ───────────────────────────────────────────────── */
.office-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.office-info .section__eyebrow { text-align: left; }

.office-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 24px 0;
}
/* reuse contact-item__icon from main CSS */
.office-detail .contact-item__icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--orange-glow);
  border: 1px solid var(--orange-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 0.875rem;
  flex-shrink: 0;
}
.office-detail strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}
.office-detail span,
.office-detail a {
  display: block;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.55;
}
.office-detail a { transition: color 0.2s; }
.office-detail a:hover { color: var(--orange); }

.office-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.office-map {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border-2);
  min-height: 480px;
  background: var(--surface);
}
.office-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 480px;
  filter: invert(0.9) hue-rotate(180deg) saturate(0.8) brightness(0.9);
}

/* ─── Aduanas grid ──────────────────────────────────────────────── */
.aduanas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.aduana-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  position: relative;
  opacity: 0;
  transform: translateY(28px);
  transition: border-color 0.3s, transform 0.35s var(--ease-out), box-shadow 0.35s;
  overflow: hidden;
}
.aduana-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--orange-glow), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.aduana-card:hover {
  border-color: var(--orange-border);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.aduana-card:hover::before { opacity: 1; }

.aduana-card__icon {
  font-size: 1.5rem;
  color: var(--orange);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.aduana-card__badge {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.aduana-card__badge--air  { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.2); }
.aduana-card__badge--sea  { background: rgba(20, 184, 166, 0.12); color: #2dd4bf; border: 1px solid rgba(20,184,166,0.2); }
.aduana-card__badge--land { background: rgba(40, 120, 160, 0.12);  color: var(--orange-lt); border: 1px solid var(--orange-border); }

.aduana-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.aduana-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.aduana-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.aduana-card__tags span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border-2);
  padding: 3px 9px;
  border-radius: 100px;
}

/* ─── Reach section ─────────────────────────────────────────────── */
.reach-grid {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 48px 40px;
  gap: 0;
}
.reach-item {
  flex: 1;
  text-align: center;
}
.reach-item i {
  font-size: 2rem;
  color: var(--orange);
  margin-bottom: 16px;
  display: block;
}
.reach-item h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.reach-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.reach-divider {
  width: 1px;
  height: 80px;
  background: var(--border-2);
  flex-shrink: 0;
}

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .office-grid { grid-template-columns: 1fr; gap: 40px; }
  .office-map { min-height: 380px; }
  .office-map iframe { min-height: 380px; }
  .aduanas-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .aduanas-grid { grid-template-columns: 1fr; }
  .reach-grid {
    flex-direction: column;
    padding: 36px 24px;
    gap: 28px;
  }
  .reach-divider { width: 100%; height: 1px; }
  .office-actions { flex-direction: column; }
  .office-actions .btn { width: 100%; justify-content: center; }
}
