/* ===== RESET / BASE ===== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: auto; /* Lenis handles smooth scroll */
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #0d0d0d; }
::-webkit-scrollbar-thumb { background: #F0A500; border-radius: 2px; }

/* ===== HEADER — glass on scroll ===== */
#header {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.3s ease, backdrop-filter 0.4s ease;
}
#header.scrolled {
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 30px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Nav links — light for dark header */
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.25s;
}
.nav-link:hover { color: #F0A500; }

.nav-pin { flex-shrink: 0; display: inline-block; }

/* Mobile nav — dark theme */
.mobile-nav-link {
  display: block;
  padding: 12px 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-nav-link:hover { color: #F0A500; }
.mobile-nav-link:last-child { border-bottom: none; }

/* Hamburger — white lines */
.ham-line {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 1px;
  transition: all 0.3s;
}
#hamburger.open .ham-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#hamburger.open .ham-line:nth-child(2) { opacity: 0; }
#hamburger.open .ham-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===== SECTION TITLES — centered with accent bar ===== */
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.04em;
  text-align: center;
  margin-bottom: 1rem;
}
.section-accent {
  width: 48px;
  height: 2px;
  background: #F0A500;
  margin: 0 auto 1.5rem;
  border-radius: 1px;
}
.section-subtitle {
  text-align: center;
  color: #999;
  font-size: 0.9rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== GRADIENT DIVIDERS ===== */
.gradient-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 165, 0, 0.2), transparent);
}

/* ===== HERO ===== */
.hero-bg { background-color: #1a1a1a; }

/* ===== EMPRESA BG ===== */
.empresa-bg {
  background-color: #222;
  filter: grayscale(100%);
}

/* ===== SERVICE CARDS ===== */
.service-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 2rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #F0A500, transparent);
  opacity: 0;
  transition: opacity 0.35s;
}
.service-card:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(240, 165, 0, 0.25);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(240, 165, 0, 0.08);
}
.service-card:hover::before { opacity: 1; }

.service-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: rgba(240, 165, 0, 0.12);
  line-height: 1;
  margin-bottom: 1.25rem;
  font-variant-numeric: tabular-nums;
  transition: color 0.35s;
}
.service-card:hover .service-number {
  color: rgba(240, 165, 0, 0.22);
}

/* ===== STATS ===== */
.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
}
.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #F0A500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-suffix {
  font-size: 1.5rem;
  color: rgba(240, 165, 0, 0.6);
  margin-left: 2px;
}
.stat-label {
  font-size: 0.7rem;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.75rem;
}

/* ===== NOSOTROS — structure badges ===== */
.structure-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 100px;
  font-size: 0.78rem;
  color: #bbb;
  transition: all 0.3s;
  white-space: nowrap;
}
.structure-badge:hover {
  border-color: rgba(240, 165, 0, 0.3);
  background: rgba(240, 165, 0, 0.06);
  color: #F0A500;
}
.badge-dot {
  width: 6px;
  height: 6px;
  background: #F0A500;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== SLIDER SCROLLBAR ===== */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ===== CONTACT CARD ===== */
.contact-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@media (min-width: 768px) {
  .contact-card { padding: 3.5rem; }
}

/* ===== CONTACT FORM ===== */
.form-label {
  display: block;
  font-size: 0.72rem;
  color: #888;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: inherit;
  font-size: 0.875rem;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  border-radius: 8px;
}
.form-input::placeholder { color: #555; }
.form-input:focus {
  border-color: #F0A500;
  background: rgba(240, 165, 0, 0.04);
  box-shadow: 0 0 0 3px rgba(240, 165, 0, 0.08);
}

.submit-btn {
  background: #F0A500;
  color: #000;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 36px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.25s;
}
.submit-btn:hover {
  background: #d4920a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240, 165, 0, 0.25);
}
.submit-btn:active { transform: translateY(0); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

#form-msg.success { color: #4ade80; }
#form-msg.error   { color: #f87171; }

/* ===== GLIGHTBOX OVERRIDES ===== */
.glightbox-clean .gclose { color: #F0A500; }

/* ===== AMBIENT GLOW EFFECTS ===== */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

/* ===== EMPRESA TOGGLE ===== */
.empresa-details summary::-webkit-details-marker { display: none; }
.empresa-details summary::marker { display: none; content: ''; }
.empresa-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #F0A500;
  cursor: pointer;
  padding: 10px 20px;
  border: 1px solid rgba(240, 165, 0, 0.25);
  border-radius: 100px;
  background: rgba(240, 165, 0, 0.06);
  transition: all 0.25s;
  list-style: none;
}
.empresa-toggle:hover {
  background: rgba(240, 165, 0, 0.12);
  border-color: rgba(240, 165, 0, 0.4);
}
.empresa-toggle::after {
  content: '+';
  font-size: 1rem;
  transition: transform 0.3s;
}
.empresa-details[open] .empresa-toggle::after {
  content: '−';
}
.empresa-details[open] .empresa-content {
  animation: accordionSlideDown 0.4s ease-out forwards;
}

@keyframes accordionSlideDown {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ===== PRENSA CARDS ===== */
.prensa-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.prensa-card:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(240, 165, 0, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(240, 165, 0, 0.06);
}
.prensa-date {
  font-size: 0.7rem;
  color: #F0A500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}
.prensa-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}
.prensa-excerpt {
  font-size: 0.82rem;
  color: #888;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}
.prensa-link {
  font-size: 0.78rem;
  color: #F0A500;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.prensa-link:hover { color: #d4920a; }

/* ===== PROYECTO LINK ===== */
.proyecto-link {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #F0A500;
  text-decoration: none;
  padding: 10px 24px;
  border: 1px solid rgba(240, 165, 0, 0.3);
  border-radius: 8px;
  transition: all 0.25s;
}
.proyecto-link:hover {
  background: rgba(240, 165, 0, 0.1);
  border-color: #F0A500;
}

/* ===== UTILITY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
