*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ─── Sunset Core Palette ─── */
  --orange:        #D4561A;          /* quemado principal */
  --orange-light:  #E8740A;          /* naranja vivo */
  --orange-dim:    rgba(212,86,26,0.13);

  --black:         #0D0806;          /* negro cálido */
  --dark:          #140C08;          /* fondo oscuro cálido */
  --dark2:         #1E1008;          /* card hover dark */
  --white:         #FFF8F2;          /* blanco crema */
  --gray:          #9A7060;          /* gris cálido */
  --border:        rgba(255,200,140,0.09);

  /* ─── Sunset Spectrum — Rojo › Naranja › Ámbar › Oro › Crema ─── */
  --spec-crimson:  #8B1A0A;
  --spec-red:      #C43010;
  --spec-orange:   #D4561A;
  --spec-amber:    #E8820A;
  --spec-gold:     #F0A820;
  --spec-yellow:   #F5C840;
  --spec-cream:    #FFF4DC;

  /* Full sunset gradient */
  --spectrum: linear-gradient(90deg,
    #8B1A0A  0%,
    #C43010 18%,
    #D4561A 34%,
    #E8720A 50%,
    #F0A820 68%,
    #F5C840 84%,
    #FFF4DC 100%
  );

  /* Sunset radial glow */
  --spectrum-glow: radial-gradient(ellipse,
    rgba(212,86,26,0.18)  0%,
    rgba(240,168,32,0.10) 45%,
    rgba(139,26,10,0.08)  100%
  );
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  cursor: auto;
}

/* ═══════════════════════════════════
   HERO
═══════════════════════════════════ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('/chip.jpeg');
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
#hero.loaded .hero-bg { transform: scale(1); }

.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg,
      rgba(13,8,6,0.93)   0%,
      rgba(13,8,6,0.72)   40%,
      rgba(139,26,10,0.12) 65%,
      rgba(240,168,32,0.15) 100%
    );
}

/* Sunset line at bottom of hero */
.hero-spectrum-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--spectrum);
  opacity: 0.7;
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 80px;
  max-width: 800px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-dim);
  border: 1px solid rgba(212,86,26,0.40);
  color: var(--orange-light);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.7s 0.3s forwards;
}
.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--orange-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(1.5)}
}
.hero-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
}
.hero-title em {
  font-style: normal;
  /* Degradado dorado en el título destacado */
  background: linear-gradient(90deg, #E8720A, #F5C840);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,240,220,0.60);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 44px;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s forwards;
}
.hero-btns {
  display: flex; gap: 16px;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s forwards;
}
.btn-primary {
  background: linear-gradient(135deg, #C43010, #E8720A);
  color: #fff;
  padding: 14px 34px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 32px rgba(196,48,16,0.40);
}
.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(196,48,16,0.55);
}
.btn-ghost {
  border: 1px solid rgba(245,200,64,0.30);
  color: rgba(255,240,210,0.80);
  padding: 14px 34px;
  border-radius: 6px;
  font-weight: 400;
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn-ghost:hover { border-color: #F0A820; color: #F0A820; transform: translateY(-2px); }

.hero-scroll {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,220,160,0.40);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 1s 1.5s forwards;
  z-index: 2;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, #E8720A, transparent);
  animation: scrollLine 1.8s infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ═══════════════════════════════════
   TICKER — sunset gradient background
═══════════════════════════════════ */
.ticker-wrap {
  background: var(--spectrum);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.ticker-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.18);
  pointer-events: none;
}
.ticker-track {
  display: inline-flex;
  animation: ticker 22s linear infinite;
  position: relative;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.95);
}
.ticker-dot {
  width: 5px; height: 5px;
  background: rgba(255,255,255,0.65);
  border-radius: 50%;
  flex-shrink: 0;
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════════
   STATS BAR
═══════════════════════════════════ */
.stats-bar {
  background: var(--dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 80px;
  display: flex;
  justify-content: center;
  gap: 0;
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--spectrum-glow);
  opacity: 0.7;
  pointer-events: none;
}
.stat-item {
  flex: 1;
  max-width: 240px;
  text-align: center;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}
.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0; top: 10%; bottom: 10%;
  width: 1px;
  background: rgba(212,86,26,0.18);
}

/* Sunset tinted numbers */
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.04em;
  color: var(--orange);
}
.stat-item:nth-child(1) .stat-num {
  background: linear-gradient(135deg, #C43010, #E8720A);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-item:nth-child(2) .stat-num {
  background: linear-gradient(135deg, #E8720A, #F0A820);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-item:nth-child(3) .stat-num {
  background: linear-gradient(135deg, #F0A820, #F5C840);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255,220,180,0.35);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 400;
}

/* ═══════════════════════════════════
   SECTION LABELS & TITLES
═══════════════════════════════════ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--orange);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 18px;
}
.section-label::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--spectrum);
  border-radius: 2px;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 60px;
}
.section-title.light { color: var(--white); }

/* ═══════════════════════════════════
   SERVICES
═══════════════════════════════════ */
#services {
  padding: 120px 80px;
  background: var(--white);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  background: #E8C8A8;
  border-radius: 16px;
  overflow: hidden;
}
.service-card {
  background: var(--white);
  padding: 0;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
}
.service-card:hover { background: var(--dark2); }
.service-card:hover .service-card-title { color: #F0A820; }
.service-card:hover .service-img { filter: brightness(0.40) saturate(0.5); }
.service-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: filter 0.4s, transform 0.5s;
}
.service-card:hover .service-img { transform: scale(1.04); }

/* Sunset top border on hover */
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--spectrum);
  transform: scaleX(0);
  transition: transform 0.35s ease;
}
.service-card:hover::after { transform: scaleX(1); }

.service-card-body { padding: 22px 24px 28px; }
.service-icon {
  width: 36px; height: 36px;
  background: var(--orange-dim);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  transition: background 0.3s;
}
.service-card:hover .service-icon { background: rgba(212,86,26,0.28); }
.service-icon svg { width: 18px; height: 18px; stroke: var(--orange-light); }
.service-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
  transition: color 0.3s;
}
.service-card-desc {
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 1.65;
  transition: color 0.3s;
}
.service-card:hover .service-card-desc { color: rgba(255,220,180,0.45); }

/* ═══════════════════════════════════
   INNOVATION
═══════════════════════════════════ */
#innovation {
  padding: 120px 0;
  overflow: hidden;
  position: relative;
}
#innovation::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('/inovatec.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: saturate(0.5) brightness(0.35) sepia(0.3);
  z-index: 0;
}
#innovation::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,8,6,0.88) 0%,
    rgba(20,12,8,0.72) 50%,
    rgba(139,26,10,0.10) 100%
  );
  z-index: 1;
}
#innovation .innovation-inner {
  position: relative;
  z-index: 2;
}
.innovation-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 580px;
}
.innovation-text {
  padding: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.innovation-text .section-title { margin-bottom: 28px; }
.innovation-body {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.744);
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 44px;
}
.innovation-body p + p { margin-top: 16px; }
.innovation-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}
.innovation-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 8s ease;
}
.innovation-img-wrap:hover .innovation-img { transform: scale(1.03); }
.innovation-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--dark) 0%, transparent 40%);
}
.innovation-badge {
  position: absolute;
  bottom: 40px; right: 40px;
  background: linear-gradient(135deg, #C43010, #E8720A);
  color: #fff;
  padding: 18px 24px;
  border-radius: 12px;
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.4;
  box-shadow: 0 20px 60px rgba(196,48,16,0.50);
}
.innovation-badge::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: var(--spectrum);
  border-radius: 14px;
  z-index: -1;
  opacity: 0.75;
}

/* ═══════════════════════════════════
   DIFFERENTIATORS
═══════════════════════════════════ */
#differentiators {
  padding: 120px 80px;
  background: var(--white);
}
.diff-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: start;
}
.diff-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 16px;
}
.diff-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0 20px;
  padding: 28px 0;
  border-bottom: 1px solid #F0DDD0;
  transition: all 0.3s;
  cursor: default;
}
.diff-item:first-child { border-top: 1px solid #F0DDD0; }
.diff-item:hover {
  background: var(--dark);
  margin: 0 -28px;
  padding: 28px 28px;
  border-color: transparent;
  border-radius: 12px;
}

/* Sunset spectrum numbers per item */
.diff-num {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding-top: 4px;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.diff-item:nth-child(1) .diff-num { background: linear-gradient(135deg,#8B1A0A,#C43010); -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent; }
.diff-item:nth-child(2) .diff-num { background: linear-gradient(135deg,#C43010,#D4561A); -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent; }
.diff-item:nth-child(3) .diff-num { background: linear-gradient(135deg,#D4561A,#E8820A); -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent; }
.diff-item:nth-child(4) .diff-num { background: linear-gradient(135deg,#E8820A,#F0A820); -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent; }
.diff-item:nth-child(5) .diff-num { background: linear-gradient(135deg,#F0A820,#F5C840); -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent; }

.diff-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
  transition: color 0.3s;
}
.diff-item:hover .diff-title { color: #F0A820; }
.diff-text {
  font-size: 0.83rem;
  color: #9A7060;
  line-height: 1.7;
  transition: color 0.3s;
}
.diff-item:hover .diff-text { color: rgba(255,220,180,0.45); }

.diff-img-col {
  position: sticky;
  top: 100px;
}
.diff-img-wrap {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3/4;
  position: relative;
  padding: 2px;
  background: var(--spectrum);
}
.diff-img-wrap-inner {
  border-radius: 19px;
  overflow: hidden;
  width: 100%; height: 100%;
  position: relative;
}
.diff-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 6s ease;
  display: block;
}
.diff-img-wrap:hover .diff-img { transform: scale(1.04); }
.diff-img-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 30px;
  background: linear-gradient(to top, rgba(13,8,6,0.85) 0%, transparent 100%);
}
.diff-img-caption h4 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.diff-img-caption p {
  font-size: 0.78rem;
  color: rgba(255,220,180,0.50);
}

/* ═══════════════════════════════════
   LOCATIONS
═══════════════════════════════════ */
#locations {
  padding: 120px 80px;
  position: relative;
  overflow: hidden;
}
#locations::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('undo.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: saturate(0.25) brightness(0.28) sepia(0.4);
  z-index: 0;
}
#locations::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,8,6,0.78) 0%,
    rgba(13,8,6,0.60) 50%,
    rgba(13,8,6,0.92) 100%
  );
  z-index: 1;
}
#locations .spectrum-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--spectrum);
  opacity: 0.55;
  z-index: 3;
}
#locations > * {
  position: relative;
  z-index: 2;
}
.locations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 60px;
}
.location-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/10;
  cursor: pointer;
  transition: box-shadow 0.3s;
}
.location-card:hover {
  box-shadow: 0 0 0 3px rgba(232,114,10,0.45);
}
.location-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
  filter: brightness(0.7) saturate(0.80);
}
.location-card:hover .location-img {
  transform: scale(1.06);
  filter: brightness(0.52) saturate(1.05);
}
.location-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,8,6,0.88) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px;
}
.location-flag { font-size: 1.6rem; margin-bottom: 10px; }
.location-country {
  font-size: 0.7rem;
  color: #F0A820;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 6px;
}
.location-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.location-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #C43010, #E8720A);
  color: #fff;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: fit-content;
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.4s, opacity 0.4s, box-shadow 0.2s;
}
.location-card:hover .location-btn { transform: translateY(0); opacity: 1; }
.location-btn:hover { box-shadow: 0 8px 28px rgba(196,48,16,0.50); }
.location-btn svg { width: 14px; height: 14px; }

/* ═══════════════════════════════════
   ANIMATIONS
═══════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.h-line {
  height: 1px;
  background: var(--spectrum);
  opacity: 0.22;
}

/* ═══════════════════════════════════
   DROPDOWN
═══════════════════════════════════ */
.zt-has-dropdown { position: relative; }
.zt-has-dropdown > a { display: flex; align-items: center; gap: 5px; }
.zt-has-dropdown > a svg { transition: transform .25s; opacity: .6; }
.zt-has-dropdown:hover > a svg { transform: rotate(180deg); }

.zt-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 50%; transform: translateX(-50%);
  background: rgba(13,8,6,0.97);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(212,86,26,0.12);
  border-radius: 10px;
  padding: 8px;
  min-width: 250px;
  list-style: none;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.zt-has-dropdown:hover .zt-dropdown {
  display: block;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
/* Sunset top line on dropdown */
.zt-dropdown::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--spectrum);
  border-radius: 10px 10px 0 0;
}
.zt-dropdown li a {
  display: block;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: .83rem !important;
  color: rgba(255,220,180,.55) !important;
  text-transform: none !important;
  letter-spacing: .01em !important;
  transition: background .2s, color .2s !important;
}
.zt-dropdown li a:hover {
  background: rgba(212,86,26,0.12);
  color: #F0A820 !important;
}
.zt-has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -20px; right: -20px;
  height: 20px;
  background: transparent;
}