/* ── Reset & tokens ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange:        #E8461E;
  --orange-light:  #F26640;
  --orange-dim:    rgba(232, 70, 30, 0.15);
  --bg-dark:       #0d0d0d;
  --bg-section:    #141414;
  --bg-card:       #1c1c1c;
  --bg-card-hover: #232323;
  --bg-light:      #f5f5f5;
  --bg-white:      #ffffff;
  --text-on-dark:  #ffffff;
  --text-on-light: #111111;
  --muted-dark:    rgba(255, 255, 255, 0.5);
  --muted-light:   #666666;
  --border-dark:   rgba(255, 255, 255, 0.08);
  --border-light:  rgba(0, 0, 0, 0.1);
  --nav-h:         72px;
  --radius:        12px;
  --radius-sm:     8px;
  --transition:    0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  overflow-x: hidden;
}

/* ── Utility ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.1s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.btn--primary:hover { background: var(--orange-light); border-color: var(--orange-light); }

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.06); }

.btn--white {
  background: #fff;
  color: var(--orange);
  border-color: #fff;
}
.btn--white:hover { background: var(--bg-light); }

.btn--full { width: 100%; justify-content: center; }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Section shared ── */
.section { padding: 96px 0; }
.section--dark  { background: var(--bg-section); }
.section--light { background: var(--bg-light); }

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--text-on-dark);
}
.section__title--dark { color: var(--text-on-light); }

.section__sub {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted-dark);
}
.section__sub--dark { color: var(--muted-light); }

/* ──────────────────────────────
   NAV
────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border-dark);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav__logo img {
  height: 36px;
  width: auto;
  display: block;
  filter: brightness(0.9);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav__links a {
  display: block;
  padding: 8px 14px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.nav__links a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav__cta {
  background: var(--orange) !important;
  color: #fff !important;
  padding: 8px 20px !important;
}
.nav__cta:hover { background: var(--orange-light) !important; }
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ──────────────────────────────
   HERO
────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url('images/website-background.png') center center / cover no-repeat;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(10,10,10,0.88) 0%, rgba(10,10,10,0.7) 50%, rgba(10,10,10,0.35) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-h);
  max-width: 660px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-dim);
  border: 1px solid rgba(232,70,30,0.3);
  color: var(--orange-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.hero__badge svg { width: 14px; height: 14px; fill: currentColor; }
.hero__title {
  font-size: clamp(42px, 6.5vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
}
.hero__highlight {
  color: var(--orange);
  position: relative;
}
.hero__sub {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin-bottom: 40px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  animation: bounce 2s infinite;
  z-index: 1;
}
.hero__scroll svg { width: 28px; height: 28px; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ──────────────────────────────
   SERVICIOS
────────────────────────────── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color var(--transition), background var(--transition), transform var(--transition), opacity var(--transition);
}
.service-card:hover {
  border-color: var(--orange);
  background: linear-gradient(160deg, #1c1c1c 0%, rgba(232,70,30,0.08) 100%);
  transform: translateY(-4px);
}
.services__grid:hover .service-card:not(:hover) {
  opacity: 0.45;
  border-color: var(--border-dark);
}
.service-card__badge {
  position: absolute;
  top: -1px;
  right: 24px;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 0 0 6px 6px;
}
.service-card__icon {
  width: 52px;
  height: 52px;
  background: var(--orange-dim);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
}
.service-card__icon svg { width: 28px; height: 28px; }
.service-card__title {
  font-size: 20px;
  font-weight: 700;
}
.service-card__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted-dark);
}
.service-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.service-card__list li {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  padding-left: 16px;
  position: relative;
}
.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
.service-card__link {
  display: inline-block;
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 4px;
  transition: letter-spacing var(--transition);
}
.service-card__link:hover { letter-spacing: 0.3px; }

/* ──────────────────────────────
   NOSOTROS
────────────────────────────── */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about__content { display: flex; flex-direction: column; gap: 20px; }
.about__content .section__label { margin-bottom: 0; }
.about__text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted-light);
}
.about__badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 4px 0;
}
.about__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-on-light);
}
.about__badge svg { width: 18px; height: 18px; }
.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: #fff;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat__number {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  color: var(--orange);
  letter-spacing: -2px;
}
.stat__plus {
  font-size: 32px;
  font-weight: 700;
}
.stat__label {
  font-size: 14px;
  color: var(--muted-light);
  font-weight: 500;
}

/* ──────────────────────────────
   INDUSTRIAS
────────────────────────────── */
.industries__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.industry-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color var(--transition), transform var(--transition);
}
.industry-card:hover {
  border-color: rgba(232,70,30,0.35);
  transform: translateY(-3px);
}

.industry-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.industry-card__icon {
  width: 44px;
  height: 44px;
  background: var(--orange-dim);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
}
.industry-card__icon svg { width: 24px; height: 24px; }
.industry-card h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.industry-card__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted-dark);
}

/* ──────────────────────────────
   TESTIMONIALES
────────────────────────────── */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.testimonial-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}
.testimonial-card--featured {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange);
  transform: translateY(-8px);
}
.testimonial-card--featured:hover { transform: translateY(-12px); }
.testimonial-card__stars {
  color: var(--orange);
  font-size: 14px;
  letter-spacing: 2px;
}
.testimonial-card__quote {
  font-size: 15px;
  line-height: 1.75;
  color: #333;
  flex: 1;
  font-style: italic;
}
.testimonial-card__quote::before { content: '\201C'; }
.testimonial-card__quote::after  { content: '\201D'; }
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial-card__author strong {
  display: block;
  font-size: 14px;
  color: var(--text-on-light);
}
.testimonial-card__author span {
  display: block;
  font-size: 12px;
  color: var(--muted-light);
  margin-top: 2px;
}

/* ──────────────────────────────
   CTA BANNER
────────────────────────────── */
.cta-banner {
  background: var(--orange);
  padding: 72px 0;
}
.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: #fff;
}
.cta-banner p {
  margin-top: 8px;
  font-size: 16px;
  color: rgba(255,255,255,0.8);
}

/* ──────────────────────────────
   CONTACTO
────────────────────────────── */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contact__info { display: flex; flex-direction: column; gap: 20px; }
.contact__sub {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted-dark);
}
.contact__details { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.contact__detail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: rgba(255,255,255,0.7);
}
.contact__detail svg { width: 20px; height: 20px; color: var(--orange); flex-shrink: 0; }

/* Form */
.contact__form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.3px;
}
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  padding: 13px 16px;
  outline: none;
  transition: border-color var(--transition);
  resize: vertical;
}
.form-field select { appearance: none; cursor: pointer; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255,255,255,0.25); }
.form-field select option { background: var(--bg-card); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--orange); }
.form-field input.error,
.form-field textarea.error { border-color: #ff4444; }
.form-success {
  display: none;
  color: #44cc88;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  padding: 20px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(68,204,136,0.35);
  background: rgba(68,204,136,0.12);
  line-height: 1.5;
}
.form-success.visible { display: block; }

/* ──────────────────────────────
   RECONOCIMIENTOS
────────────────────────────── */
.awards__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 28px;
  align-items: center;
  justify-items: center;
  max-width: 740px;
  margin: 0 auto;
}
.award-badge {
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.35));
  width: 100%;
  max-width: 210px;
}
.award-badge--featured { max-width: 252px; }
.award-badge__body {
  background: #ffffff;
  clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
  padding: 28px 22px 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
}
.award-badge--featured .award-badge__body { padding: 32px 26px 90px; }
.award-badge__gc-logo {
  width: 120px;
  height: auto;
  margin-bottom: 10px;
}
.award-badge--featured .award-badge__gc-logo { width: 140px; }
.award-badge__region {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #5f6368;
  text-transform: uppercase;
}
.award-badge__title {
  font-size: 20px;
  font-weight: 800;
  color: #202124;
  line-height: 1.15;
  margin: 4px 0 2px;
}
.award-badge--featured .award-badge__title { font-size: 24px; }
.award-badge__category {
  font-size: 13px;
  color: #5f6368;
  font-weight: 400;
}
.award-badge__year {
  font-size: 16px;
  font-weight: 700;
  color: #1a73e8;
  margin-top: 4px;
}
.award-badge--featured .award-badge__year { font-size: 20px; }

/* ──────────────────────────────
   UBICACIÓN
────────────────────────────── */
.location__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.location__title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 28px;
  line-height: 1.2;
}
.location__cards { display: flex; flex-direction: column; gap: 16px; }
.location__card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.07);
}
.location__card-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--orange);
}
.location__card-icon svg { width: 100%; height: 100%; }
.location__card strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-on-light);
  margin-bottom: 6px;
}
.location__card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted-light);
}
.location__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  height: 340px;
}
.location__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ──────────────────────────────
   FOOTER
────────────────────────────── */
.footer {
  background: #080808;
  border-top: 1px solid var(--border-dark);
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 24px 48px;
}
.footer__brand { display: flex; flex-direction: column; gap: 16px; }
.footer__logo { height: 36px; width: auto; max-width: 160px; align-self: flex-start; filter: brightness(0.85); }
.footer__brand p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted-dark);
  max-width: 280px;
}
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-dark);
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition);
}
.footer__social a:hover { color: var(--orange); border-color: var(--orange); }
.footer__social svg { width: 16px; height: 16px; }
.footer__links h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer__links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__links li, .footer__links a {
  font-size: 14px;
  color: var(--muted-dark);
  text-decoration: none;
  transition: color var(--transition);
}
.footer__links a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid var(--border-dark);
  padding: 20px 24px;
}
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

/* ──────────────────────────────
   RESPONSIVE
────────────────────────────── */
@media (max-width: 1100px) {
  .industries__grid { grid-template-columns: repeat(2, 1fr); }
  }

@media (max-width: 1100px) {
  .services__grid       { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .services__grid             { grid-template-columns: repeat(2, 1fr); }
  .about__grid                { grid-template-columns: 1fr; gap: 48px; }
  .about__stats               { grid-template-columns: repeat(4, 1fr); }
  .testimonials__grid         { grid-template-columns: 1fr; }
  .testimonial-card--featured { transform: none; }
  .contact__grid              { grid-template-columns: 1fr; gap: 48px; }
  .footer__inner              { grid-template-columns: 1fr 1fr; }
  .footer__brand              { grid-column: 1 / -1; }
  .industries__grid           { grid-template-columns: 1fr 1fr; }
  .cta-banner__inner          { flex-direction: column; text-align: center; }
  .location__grid             { grid-template-columns: 1fr; gap: 40px; }
  .location__map              { height: 280px; }
  .awards__grid               { max-width: 600px; gap: 20px; }
}

@media (max-width: 680px) {
  .awards__grid { grid-template-columns: 1fr; gap: 32px; }
  .award-badge, .award-badge--featured { max-width: 220px; margin: 0 auto; }
  .section { padding: 64px 0; }
  .services__grid      { grid-template-columns: 1fr; }
  .industries__grid    { grid-template-columns: 1fr; }
  .hero__title { letter-spacing: -1px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .about__stats { grid-template-columns: 1fr 1fr; }
  .industries__grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }

  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: rgba(13,13,13,0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links a { font-size: 20px; padding: 12px 24px; }
  .nav__cta { margin-top: 8px; }
}
