/* ══════════════════════════════════════════════
   ANTORR — Shared Service Pages CSS
   Applies to: servicios/bim.html, civil.html, fotogrametria.html
══════════════════════════════════════════════ */

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { background: #0A0A0A; color: #E8E8E8; font-family: 'Inter', sans-serif; -webkit-font-smoothing: antialiased; margin: 0; padding: 0; }
h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; }
h3 { margin: 0; }

/* ── Nav glass ── */
.nav-glass {
  background: rgba(10,10,10,0.82);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* ── Nav link ── */
.nav-link {
  position: relative;
  color: #A1A1AA;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: #008f4c;
  transition: width 0.3s cubic-bezier(0.4,0,0.2,1);
}
.nav-link:hover { color: #E8E8E8; }
.nav-link:hover::after { width: 100%; }

/* ── Portal YARE button ── */
.btn-yare {
  border: 1px solid rgba(237,28,36,0.35);
  color: #ed1c24;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn-yare:hover {
  background: rgba(237,28,36,0.1);
  border-color: #ed1c24;
  color: #E8E8E8;
}

/* ── Academia Dropdown ── */
.nav-dropdown-wrapper { position: relative; }
.nav-chevron {
  display: inline-block;
  margin-left: 0.3rem;
  transition: transform 0.3s ease;
  vertical-align: middle;
}
.nav-dropdown-wrapper.open .nav-chevron { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 1rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 160px;
  background: rgba(13,13,13,0.97);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 0.5rem 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  backdrop-filter: blur(12px);
}
.nav-dropdown-wrapper.open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: all;
}
.nav-dropdown-item {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #A1A1AA;
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-dropdown-item:hover { color: #E8E8E8; background: rgba(255,255,255,0.04); }

/* ── Mobile menu ── */
#mobile-menu {
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(20px);
}
.nav-mobile-group { display: flex; flex-direction: column; }
.nav-mobile-accordion {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.nav-mobile-accordion.open .nav-chevron { transform: rotate(180deg); }
.nav-mobile-sub { display: flex; flex-direction: column; gap: 0.5rem; padding-left: 1rem; margin-top: 0.75rem; }
.nav-mobile-sub-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: #6B7280;
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-mobile-sub-link:hover { color: #E8E8E8; }

/* ── Accent ── */
.accent-line {
  display: inline-block;
  width: 2rem; height: 1px;
  background: #008f4c;
  vertical-align: middle;
  margin-right: 0.75rem;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3D3D3D;
  margin-bottom: 2.5rem;
}
.breadcrumb a { color: #4B5563; text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: #6B7280; }
.breadcrumb-sep { color: #2A2A2A; font-size: 0.6rem; }

/* ── Hero ── */
.srv-hero {
  background: #050505;
  padding: clamp(8rem, 18vw, 14rem) 0 clamp(5rem, 10vw, 10rem);
  position: relative;
  overflow: hidden;
}
.srv-hero-glow {
  position: absolute; top: 0; right: -10%;
  width: 55%; height: 60%;
  background: radial-gradient(ellipse 70% 60% at 80% 0%, rgba(0,143,76,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.srv-eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6B7280;
  margin-bottom: 1.5rem;
}
.srv-headline {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #EFEFEF;
  margin: 0 0 2rem;
}
.srv-headline span { color: #A1A1AA; font-weight: 300; }
.srv-desc {
  font-size: 1.05rem;
  font-weight: 300;
  color: #9CA3AF;
  line-height: 1.85;
  max-width: 38rem;
  margin-bottom: 2rem;
}
.srv-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-bottom: 3rem;
  margin-top: 0;
}
.srv-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.srv-stat-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #EFEFEF;
  letter-spacing: -0.025em;
  line-height: 1;
}
.srv-stat-val span { color: #008f4c; }
.srv-stat-label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4B5563;
}

/* ── Buttons ── */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #6B7280;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}
.btn-back:hover { color: #008f4c; }
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #008f4c;
  color: #0A0A0A;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 1.75rem;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
}
.btn-cta:hover {
  background: #007040;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0,143,76,0.25);
}

/* ── Features Section ── */
.features-section {
  background: #060606;
  padding: clamp(5rem, 9vw, 9rem) 0 clamp(5rem, 10vw, 10rem);
}
.features-header { margin-bottom: 4rem; }
.features-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #E8E8E8;
  margin: 0 0 0.75rem;
}
.features-sub {
  font-size: 0.875rem;
  font-weight: 300;
  color: #6B7280;
  line-height: 1.7;
  max-width: 36rem;
  margin: 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

/* ── Service Feature Card ── */
.service-feature {
  border: 1px solid #1A1A1A;
  background: #0D0D0D;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.service-feature:hover { border-color: rgba(0,143,76,0.22); background: #0F0F0F; }
.feature-icon {
  width: 2rem; height: 2rem;
  display: flex; align-items: center; justify-content: center;
  color: #2A4A36;
  margin-bottom: 0.25rem;
  flex-shrink: 0;
  transition: color 0.3s ease;
}
.service-feature:hover .feature-icon { color: #008f4c; }
.feature-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #CECECE;
  line-height: 1.3;
  margin: 0;
}
.feature-desc {
  font-size: 0.82rem;
  font-weight: 300;
  color: #6B7280;
  line-height: 1.75;
  margin: 0;
  flex-grow: 1;
}
.feature-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.4rem; }
.tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0,143,76,0.7);
  border: 1px solid rgba(0,143,76,0.15);
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
}

/* ── Metrics Section ── */
.metrics-section {
  background: #050505;
  border-top: 1px solid #111;
  border-bottom: 1px solid #111;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: #111111;
  border-left: 1px solid #111111;
  border-right: 1px solid #111111;
}
@media (min-width: 768px) {
  .metrics-grid { grid-template-columns: repeat(4, 1fr); }
}
.metric-item {
  background: #050505;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: background 0.3s ease;
}
.metric-item:hover { background: #0A0A0A; }
.metric-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  color: #EFEFEF;
  letter-spacing: -0.04em;
  line-height: 1;
}
.metric-val em { color: #008f4c; font-style: normal; }
.metric-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4B5563;
  line-height: 1.45;
}

/* ── Process Section ── */
.process-section {
  background: #060606;
  padding: clamp(5rem, 9vw, 9rem) 0;
  position: relative;
  overflow: hidden;
}
.process-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6B7280;
  margin-bottom: 1.5rem;
}
.process-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #E8E8E8;
  margin: 0 0 4rem;
}
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid #1A1A1A;
}
@media (min-width: 640px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .process-grid { grid-template-columns: repeat(4, 1fr); }
}
.process-step {
  padding: 2.5rem 2rem;
  border-right: 1px solid #1A1A1A;
  border-bottom: 1px solid #1A1A1A;
  background: #080808;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: background 0.3s ease;
}
.process-step:hover { background: #0D0D0D; }
@media (min-width: 1024px) {
  .process-step { border-bottom: none; }
  .process-step:last-child { border-right: none; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .process-step:nth-child(even) { border-right: none; }
  .process-step:nth-child(3), .process-step:nth-child(4) { border-bottom: none; }
}
@media (max-width: 639px) {
  .process-step { border-right: none; }
  .process-step:last-child { border-bottom: none; }
}
.process-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #008f4c;
}
.process-step-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #E8E8E8;
  line-height: 1.35;
  margin: 0;
}
.process-step-desc {
  font-size: 0.8125rem;
  font-weight: 300;
  color: #6B7280;
  line-height: 1.75;
  margin: 0;
}

/* ── Related Services Section ── */
.related-section {
  background: #050505;
  padding: clamp(5rem, 9vw, 9rem) 0;
}
.related-eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6B7280;
  margin-bottom: 1rem;
}
.related-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #E8E8E8;
  margin: 0 0 3rem;
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
.related-card {
  background: #0D0D0D;
  border: 1px solid #1A1A1A;
  padding: 2rem 1.75rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}
.related-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: linear-gradient(to right, #008f4c, rgba(0,143,76,0.3));
  transition: width 0.55s cubic-bezier(0.4,0,0.2,1);
}
.related-card:hover { border-color: rgba(0,143,76,0.2); background: #0F0F0F; }
.related-card:hover::after { width: 100%; }
.related-card-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0,143,76,0.65);
}
.related-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #E8E8E8;
  letter-spacing: -0.02em;
  margin: 0;
}
.related-card-desc {
  font-size: 0.8125rem;
  font-weight: 300;
  color: #6B7280;
  line-height: 1.7;
  margin: 0;
  flex-grow: 1;
}
.related-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4B5563;
  margin-top: 0.25rem;
  transition: color 0.25s, gap 0.25s;
}
.related-card:hover .related-card-link { color: #008f4c; gap: 0.75rem; }

/* ── CTA Final Section ── */
.cta-section {
  background: #050505;
  padding: clamp(5rem, 8vw, 8rem) 0;
  text-align: center;
}
.cta-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #EFEFEF;
  margin: 0 0 1.5rem;
}
.cta-desc {
  font-size: 0.95rem;
  font-weight: 300;
  color: #9CA3AF;
  line-height: 1.85;
  margin: 0 0 3rem;
}
.cta-btn-wrap {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}
.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #6B7280;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.25s;
}
.btn-cta-secondary:hover { color: #E8E8E8; }

/* ── WhatsApp Float ── */
.wa-float {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 3rem; height: 3rem;
  background: rgba(13,13,13,0.88);
  border: 1px solid rgba(0,143,76,0.32);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #008f4c;
  z-index: 9998;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.45);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  text-decoration: none;
}
.wa-float:hover {
  border-color: rgba(0,143,76,0.7);
  box-shadow: 0 4px 28px rgba(0,0,0,0.5), 0 0 18px rgba(0,143,76,0.18);
  transform: translateY(-2px);
}
@media (max-width: 640px) { .wa-float { bottom: 1.25rem; right: 1.25rem; } }

/* ── Footer ── */
.site-footer {
  background: #050505;
  border-top: 1px solid #008f4c;
  position: relative;
}
.footer-isotipo-wrap {
  display: flex;
  justify-content: center;
  padding-top: 3rem;
  padding-bottom: 1.75rem;
}
.footer-grid {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: stretch;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 2rem; }
}
.footer-col { display: flex; flex-direction: column; }
.footer-col-left  { align-items: flex-start; }
.footer-col-center { align-items: center; }
.footer-col-right  { align-items: flex-end; justify-content: space-between; }
.footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem; font-weight: 800;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: #CCCCCC;
}
.footer-sub {
  font-size: 0.65rem; font-weight: 300;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #4B4B4B; margin-top: 0.2rem;
}
.footer-address { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.85rem; }
.footer-address-label {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #6B7280; margin-bottom: 0.3rem;
}
.footer-address-text { font-size: 0.8125rem; color: #A1A1AA; line-height: 1.6; }
.footer-nav-links { display: flex; flex-direction: row; align-items: center; gap: 2rem; }
.footer-nav-link {
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #5A5A6A; text-decoration: none;
  transition: color 0.2s ease;
}
.footer-nav-link:hover { color: #E8E8E8; }
.footer-socials { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.social-btn {
  width: 2.25rem; height: 2.25rem;
  border: 1px solid #1C1C1C;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #4B5563;
  text-decoration: none;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.social-btn:hover { border-color: rgba(0,143,76,0.4); color: #E8E8E8; }
.footer-extra-links { display: flex; flex-direction: column; align-items: flex-end; gap: 0.45rem; }
.footer-extra-link {
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #6B7280; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: color 0.2s;
}
.footer-extra-link:hover { color: #E8E8E8; }
.footer-bottom {
  border-top: 1px solid #0F0F0F;
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; justify-content: center;
}
.footer-copy {
  font-size: 0.7rem; font-weight: 400;
  color: #3D3D3D; letter-spacing: 0.08em;
}

/* ── Reveal animations (IntersectionObserver) ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.4,0,0.2,1),
              transform 0.75s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }
.reveal-d6 { transition-delay: 0.48s; }

/* ── Utilities ── */
.max-w-7xl { max-width: 80rem; margin-left: auto; margin-right: auto; }
.px-container { padding-left: 1.5rem; padding-right: 1.5rem; }
@media (min-width: 1024px) { .px-container { padding-left: 2.5rem; padding-right: 2.5rem; } }
.antorr-border { border-color: #1C1C1C; }
