/* =========================================================
   DESIGN SYSTEM – CSS CUSTOM PROPERTIES
========================================================= */
:root {
  --color-bg:        #0D1B2A;
  --color-bg-alt:    #132238;
  --color-card:      #1A2D42;
  --color-accent:    #1E3A5F;
  --color-white:     #FFFFFF;
  --color-muted:     #A0B0C0;
  --color-highlight: #FFFFFF;
  --color-border:    rgba(255,255,255,0.08);
  --font-heading:    'Montserrat', sans-serif;
  --font-body:       'Inter', sans-serif;
  --transition:      0.3s ease;
  --radius:          4px;
  --max-w:           1200px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   SCROLL-REVEAL
========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   SECTION LABELS / HEADERS
========================================================= */
.section-overline {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--color-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1.15;
}

.section-title .underline-accent {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-white);
  margin: 14px auto 0;
}

.section-subtitle {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-top: 16px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

/* =========================================================
   BUTTONS
========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--radius);
  padding: 14px 28px;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition), background var(--transition), color var(--transition);
  border: 2px solid var(--color-white);
  white-space: nowrap;
}
.btn:hover  { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-white);
  color: var(--color-bg);
  border-color: var(--color-white);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

/* =========================================================
   NAVBAR
========================================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), backdrop-filter var(--transition), padding var(--transition);
  padding: 14px 0;
}
#navbar.scrolled {
  background: rgba(13,27,42,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo img {
  max-height: 48px;
  width: auto;
  transition: max-height var(--transition);
}
#navbar.scrolled .nav-logo img { max-height: 38px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-white);
  opacity: 0.85;
  transition: opacity var(--transition);
}
.nav-links a:hover { opacity: 1; }

.nav-cta { flex-shrink: 0; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1001;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav panel */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: rgba(13,27,42,0.99);
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 76px 24px 32px;
  z-index: 999;
  transform: translateY(-100%);
  transition: transform 0.35s ease;
}
.nav-mobile.open { transform: translateY(0); }
.nav-mobile a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-white);
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
  opacity: 0.9;
}
.nav-mobile .btn {
  color: var(--color-bg);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile .btn { margin-top: 24px; width: 100%; justify-content: center; }

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile { display: flex; }
}

/* =========================================================
   HERO
========================================================= */
#hero {
  min-height: 100vh;
  position: relative;
  background: var(--color-bg);
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,27,42,0.65);
  pointer-events: none;
}

/* Hero – split layout */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 120px clamp(32px, 5vw, 72px) 80px clamp(24px, 4vw, 64px);
}

/* Hero – vertical photo tickers */
.hero-ticker-side {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  height: 100vh;
  overflow: hidden;
  contain: layout style;
}

.hero-ticker-side::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 180px;
  height: 100%;
  background: linear-gradient(to right, var(--color-bg) 0%, transparent 100%);
  z-index: 4;
  pointer-events: none;
}

.hero-ticker-side::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      var(--color-bg)   0%,
      transparent       18%,
      transparent       82%,
      var(--color-bg)   100%);
  z-index: 3;
  pointer-events: none;
}

.hero-ticker-col {
  overflow: hidden;
  height: 100vh;
}

.hero-ticker-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
}

.hero-ticker-col.ticker-ready .hero-ticker-inner {
  animation-duration: var(--hero-ticker-duration, 42s);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.hero-ticker-col--up.ticker-ready .hero-ticker-inner {
  animation-name: hero-ticker-up;
}

.hero-ticker-col--down.ticker-ready .hero-ticker-inner {
  animation-name: hero-ticker-down;
}

@keyframes hero-ticker-up {
  from {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, calc(-1 * var(--hero-ticker-distance, 2160px)), 0);
    -webkit-transform: translate3d(0, calc(-1 * var(--hero-ticker-distance, 2160px)), 0);
  }
}

@keyframes hero-ticker-down {
  from {
    transform: translate3d(0, calc(-1 * var(--hero-ticker-distance, 2160px)), 0);
    -webkit-transform: translate3d(0, calc(-1 * var(--hero-ticker-distance, 2160px)), 0);
  }
  to {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
  }
}

.hero-photo {
  width: 100%;
  height: 260px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 6px;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.hero-tag {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 20px;
}

.hero-tag::after {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  background: var(--color-white);
  opacity: 0.7;
}

.hero-headline {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.4rem, 4.8vw, 4.2rem);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.05;
  color: var(--color-white);
  margin-bottom: 22px;
}

.hero-mobile-break {
  display: none;
}

.hero-sub {
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  color: rgba(160,176,192,0.85);
  font-weight: 300;
  max-width: 480px;
  margin: 0 0 36px;
  line-height: 1.75;
}

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.hero-btns .btn {
  font-size: 0.72rem;
  padding: 13px 24px;
  letter-spacing: 2px;
}

.hero-stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-right: 1px solid rgba(255,255,255,0.12);
  color: rgba(160,176,192,0.7);
}
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child  { border-right: none; }

.stat-item svg { flex-shrink: 0; opacity: 0.75; }

.stat-item strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1.2;
}

.stat-item span {
  display: block;
  font-size: 0.7rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

/* Hero – single column, ticker becomes full-bleed bg */
@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  /* Show ticker as background layer */
  .hero-ticker-side {
    display: grid;
    position: absolute;
    inset: 0;
    height: auto;
    z-index: 0;
  }

  /* Remove the left-side horizontal fade — not needed as bg */
  .hero-ticker-side::before {
    display: none;
  }

  /* Replace top/bottom gradient with a solid dark overlay */
  .hero-ticker-side::after {
    background: rgba(13, 27, 42, 0.88);
  }

  /* Let columns fill the full height of the bg container */
  .hero-ticker-col {
    height: 100%;
  }

  /* Float content above the ticker */
  .hero-content {
    position: relative;
    z-index: 1;
    padding: 100px 24px 80px 24px;
    max-width: 680px;
  }

  .hero-scroll { z-index: 2; }
}

/* Hero – tablet */
@media (max-width: 768px) {
  .hero-content {
    padding-top: 100px;
    padding-bottom: 80px;
  }
  .hero-tag {
    font-size: 0.62rem;
    letter-spacing: 2.5px;
    margin-bottom: 14px;
  }
  .hero-headline {
    font-size: 2.2rem;
    margin-bottom: 16px;
  }
  .hero-sub {
    font-size: 0.85rem;
    line-height: 1.65;
    margin-bottom: 28px;
  }
  .hero-btns {
    gap: 10px;
    margin-bottom: 36px;
  }
}

/* Hero – mobile */
@media (max-width: 640px) {
  .hero-content {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 92px;
    padding-bottom: 64px;
    width: 100%;
    max-width: 390px;
  }
  .hero-tag {
    font-size: 0.58rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
  }
  .hero-headline {
    font-size: clamp(1.45rem, 6.5vw, 1.65rem);
    letter-spacing: 0.3px;
    margin-bottom: 14px;
  }
  .hero-mobile-break {
    display: inline;
  }
  .hero-sub {
    font-size: 0.8rem;
    line-height: 1.6;
    margin-bottom: 22px;
    max-width: 350px;
  }
  .hero-btns {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 28px;
    width: 100%;
    max-width: 350px;
  }
  .hero-btns .btn {
    flex: none;
    justify-content: center;
    font-size: 0.62rem;
    padding: 11px 10px;
    letter-spacing: 0.5px;
    width: 100%;
  }
  .hero-btns .btn svg { display: none; }
  .hero-scroll { display: none; }
}

/* Stats – fila única en mobile */
@media (max-width: 640px) {
  .hero-stats { gap: 0; }
  .stat-item {
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 6px;
    border-right: 1px solid rgba(255,255,255,0.10);
    border-bottom: none;
    text-align: center;
    min-width: 0;
  }
  .stat-item:first-child { padding-left: 6px; }
  .stat-item:last-child  { border-right: none; }
  .stat-item svg         { width: 17px; height: 17px; opacity: 0.75; }
  .stat-item div         { min-width: 0; }
  .stat-item strong      { font-size: 0.62rem; letter-spacing: 0.3px; }
  .stat-item span        { font-size: 0.52rem; letter-spacing: 0; margin-top: 1px; }
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  width: fit-content;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,0.8);
}
.hero-scroll svg {
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* =========================================================
   SERVICES
========================================================= */
#servicios {
  padding: 100px 0;
  background: var(--color-bg-alt);
}

.services-list {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--color-border);
}

.service-row {
  padding: 32px 40px 32px 0;
  border-bottom: 1px solid var(--color-border);
  display: block;
  transition:
    background-color 0.22s ease,
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-row:nth-child(even) {
  padding: 32px 0 32px 40px;
  border-left: 1px solid var(--color-border);
}

.service-row:hover {
  background: rgba(255,255,255,0.018);
}

.service-row-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.service-num {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: rgba(160,176,192,0.3);
  padding-top: 3px;
  min-width: 18px;
  flex-shrink: 0;
  transition: color 0.22s ease;
}

.service-row:hover .service-num {
  color: rgba(160,176,192,0.6);
}

.service-icon {
  color: rgba(255,255,255,0.45);
  flex-shrink: 0;
  margin-top: 1px;
  transition:
    color 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-row:hover .service-icon {
  color: rgba(255,255,255,0.82);
  transform: translateY(-3px);
}

.service-icon svg { width: 20px; height: 20px; }

.service-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1.5;
  margin: 0;
}

.service-desc {
  color: var(--color-muted);
  font-size: 0.88rem;
  line-height: 1.8;
}

@media (max-width: 720px) {
  #servicios { padding: 72px 0; }
  #servicios .section-header { margin-bottom: 24px; }
  .services-list { grid-template-columns: 1fr; margin-top: 32px; }
  .service-row,
  .service-row:nth-child(even) {
    padding: 24px 0;
    border-left: none;
  }
}

@media (max-width: 480px) {
  #servicios { padding: 56px 0; }
  .services-list { margin-top: 24px; }
  .service-row,
  .service-row:nth-child(even) { padding: 20px 0; }
  .service-desc { font-size: 0.85rem; }
}

/* Services – underline draw-in (signature moment) */
.section-header.reveal .underline-accent {
  transform-origin: center center;
  transform: scaleX(0);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.35s;
}
.section-header.reveal.visible .underline-accent {
  transform: scaleX(1);
}

/* Why-us underline – same draw-in, left-anchored */
.whyus-left.reveal .underline-accent {
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.35s;
}
.whyus-left.reveal.visible .underline-accent {
  transform: scaleX(1);
}

/* =========================================================
   WHY US
========================================================= */
#nosotros {
  padding: 100px 0;
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.nosotros-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  z-index: 0;
}

.nosotros-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,27,42,0.84);
  z-index: 1;
  pointer-events: none;
}

#nosotros .container {
  position: relative;
  z-index: 2;
}

.whyus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.whyus-left .section-overline { text-align: left; }

.whyus-left .section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-align: left;
  margin-top: 0;
}
.whyus-left .section-title .underline-accent { margin-left: 0; }

.whyus-body {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-top: 20px;
  margin-bottom: 32px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.feature-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: start;
}

.feature-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 4rem;
  line-height: 1;
  color: var(--color-white);
  opacity: 0.12;
  user-select: none;
  padding-top: 2px;
}

.feature-text-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  color: var(--color-white);
  margin-bottom: 4px;
}

.feature-text-desc {
  color: var(--color-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .whyus-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* =========================================================
   NOSOTROS – ORCHESTRATED ENTRANCE & HOVER
========================================================= */

/* Video overlay breathes open when the section is ready */
.nosotros-bg-overlay {
  transition: opacity 1.4s cubic-bezier(0.25, 1, 0.5, 1);
}
#nosotros.nosotros-ready .nosotros-bg-overlay {
  opacity: 0.74;
}

/* Feature items: horizontal slide (overrides default vertical) */
#nosotros .feature-item.reveal {
  transform: translateX(-24px);
}
#nosotros .feature-item.reveal.visible {
  transform: translateX(0);
}

/* Ghost numbers: hover micro-interaction */
#nosotros .feature-num {
  transition: opacity 0.32s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.32s cubic-bezier(0.25, 1, 0.5, 1);
}
#nosotros .feature-item:hover .feature-num {
  opacity: 0.3;
  transform: translateX(10px);
}

/* Feature title sharpens on hover */
#nosotros .feature-text-title {
  transition: color 0.25s ease;
}
#nosotros .feature-item:hover .feature-text-title {
  color: var(--color-white);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  #nosotros .feature-item.reveal { transform: none !important; }
  #nosotros .nosotros-bg-overlay { transition: none !important; }
}

/* =========================================================
   GALLERY
========================================================= */
#galeria {
  padding: 100px 0;
  background: var(--color-bg-alt);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,27,42,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-overlay svg {
  color: var(--color-white);
  width: 40px;
  height: 40px;
}

.gallery-item:hover img            { transform: scale(1.03); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-footer { text-align: center; }

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

/* =========================================================
   GALLERY – TICKER TRACKS
========================================================= */
.gallery-ticker-wrap {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 44px;
  contain: layout style;
}

.gallery-track { overflow: hidden; }

.gallery-track-inner {
  display: flex;
  gap: 10px;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
}

.gallery-track.ticker-ready .gallery-track-inner {
  animation-duration: var(--gallery-ticker-duration, 52s);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.gallery-track--left.ticker-ready .gallery-track-inner {
  animation-name: gallery-ticker-left;
}

.gallery-track--right.ticker-ready .gallery-track-inner {
  animation-name: gallery-ticker-right;
}

.gallery-track:hover .gallery-track-inner {
  animation-play-state: paused;
}

@keyframes gallery-ticker-left {
  from {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(-1 * var(--gallery-ticker-distance, 2960px)), 0, 0);
    -webkit-transform: translate3d(calc(-1 * var(--gallery-ticker-distance, 2960px)), 0, 0);
  }
}

@keyframes gallery-ticker-right {
  from {
    transform: translate3d(calc(-1 * var(--gallery-ticker-distance, 2960px)), 0, 0);
    -webkit-transform: translate3d(calc(-1 * var(--gallery-ticker-distance, 2960px)), 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
  }
}


.gallery-track .gallery-item {
  width: 360px;
  height: 240px;
  aspect-ratio: unset;
  flex-shrink: 0;
}

.gallery-track .gallery-overlay svg {
  width: 32px;
  height: 32px;
}

@media (max-width: 768px) {
  .gallery-ticker-wrap { gap: 8px; }
  .gallery-track .gallery-item { width: 260px; height: 174px; }
}
@media (max-width: 480px) {
  .gallery-track .gallery-item { width: 200px; height: 134px; }
}

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
#lightbox.active { display: flex; }

#lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

#lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity var(--transition);
}
#lightbox-close:hover { opacity: 1; }

/* =========================================================
   CTA BAND
========================================================= */
#cta-band {
  position: relative;
  padding: 120px 0;
  text-align: center;
  background-image: url('assets/images/CTABackground.jpg');
  background-size: cover;
  background-position: center 40%;
  isolation: isolate;
}

#cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    #132238 0%,
    rgba(13,27,42,0.78) 12%,
    rgba(13,27,42,0.78) 88%,
    #0D1B2A 100%
  );
  z-index: -1;
}

#cta-band .container {
  position: relative;
  z-index: 1;
}

.cta-headline {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  letter-spacing: 0.5px;
  color: var(--color-white);
  max-width: 680px;
  margin: 0 auto 16px;
  line-height: 1.2;
}

.cta-sub {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-bottom: 36px;
}

@media (max-width: 768px) {
  #cta-band { padding: 80px 0; }
  .cta-headline {
    font-size: clamp(1.2rem, 2.8vw, 1.92rem);
    max-width: 560px;
    margin-bottom: 12px;
  }
  .cta-sub {
    font-size: 0.76rem;
    margin-bottom: 28px;
  }
  #cta-band .btn {
    font-size: 0.7rem;
    padding: 12px 22px;
    letter-spacing: 1px;
  }
}

/* =========================================================
   CONTACT
========================================================= */
#contacto {
  padding: 100px 0;
  background: var(--color-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.contact-rows {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-row svg {
  flex-shrink: 0;
  color: var(--color-muted);
  margin-top: 2px;
}

.contact-row-content {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.contact-row-content a {
  color: var(--color-muted);
  transition: color var(--transition);
}
.contact-row-content a:hover { color: var(--color-white); }

.contact-socials {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.contact-socials a {
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: background var(--transition), border-color var(--transition);
}
.contact-socials a:hover {
  background: var(--color-card);
  border-color: rgba(255,255,255,0.2);
}
.contact-socials svg { width: 20px; height: 20px; }

.contact-map iframe {
  width: 100%;
  border-radius: 8px;
  display: block;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* =========================================================
   FOOTER
========================================================= */
footer {
  background: #080F18;
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-logo img { max-height: 44px; margin-bottom: 16px; }

.footer-tagline {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 280px;
}

.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  transition: color var(--transition), border-color var(--transition);
}
.footer-socials a:hover { color: var(--color-white); border-color: rgba(255,255,255,0.25); }
.footer-socials svg { width: 18px; height: 18px; }

.footer-col-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 20px;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: var(--color-muted);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--color-white); }

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-contact-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--color-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}
.footer-contact-list svg { flex-shrink: 0; margin-top: 2px; color: var(--color-muted); }
.footer-contact-list a { color: var(--color-muted); transition: color var(--transition); }
.footer-contact-list a:hover { color: var(--color-white); }

/* Footer newsletter */
.footer-newsletter-sub {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.footer-newsletter-sub strong { color: var(--color-white); font-weight: 600; }

.footer-newsletter-row {
  display: flex;
  gap: 0;
  margin-bottom: 10px;
}
.footer-newsletter-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--color-border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 10px 14px;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition);
  min-width: 0;
}
.footer-newsletter-input::placeholder { color: rgba(160,176,192,0.5); }
.footer-newsletter-input:focus { border-color: rgba(255,255,255,0.3); }
.footer-newsletter-input.input-error { border-color: #e05252; }

.footer-newsletter-btn {
  background: var(--color-white);
  border: 1px solid var(--color-white);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 10px 14px;
  color: var(--color-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), opacity var(--transition);
  flex-shrink: 0;
}
.footer-newsletter-btn:hover { opacity: 0.88; }
.footer-newsletter-btn:disabled { opacity: 0.5; cursor: default; }

.footer-newsletter-fine {
  font-size: 0.75rem;
  color: rgba(160,176,192,0.55);
  line-height: 1.5;
}
.footer-newsletter-fine a { color: rgba(160,176,192,0.7); text-decoration: underline; }
.footer-newsletter-fine a:hover { color: var(--color-muted); }

.footer-newsletter-success {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  color: #7dcea0;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 4px 0;
}
.footer-newsletter-success[hidden] { display: none; }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 20px 0;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.78rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
    order: 1;
  }
  .footer-grid > div:nth-child(2) { order: 2; } /* Navegación */
  .footer-grid > div:nth-child(4) { order: 3; } /* Contacto */
  .footer-grid > div:nth-child(3) {             /* Newsletter */
    grid-column: 1 / -1;
    order: 4;
  }
}

/* =========================================================
   FLOATING WHATSAPP
========================================================= */
#wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: transform var(--transition);
  animation: pulse-wa 3s ease-in-out infinite;
}
#wa-float:hover { animation-play-state: paused; transform: scale(1.1); }

@keyframes pulse-wa {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.08); }
}

#wa-float svg { width: 22px; height: 22px; }

.wa-tooltip {
  position: absolute;
  right: 64px;
  white-space: nowrap;
  background: var(--color-card);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 6px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
#wa-float:hover .wa-tooltip { opacity: 1; }

/* =========================================================
   FLOATING COUPON BUTTON
========================================================= */
#coupon-float {
  position: fixed;
  bottom: 84px;
  right: 28px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-card);
  border: 1.5px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  cursor: pointer;
  color: var(--color-white);
  transition: transform var(--transition);
  animation: pulse-wa 3s ease-in-out infinite;
}
#coupon-float:hover { animation-play-state: paused; transform: scale(1.1); }
#coupon-float svg   { width: 20px; height: 20px; }

.coupon-tooltip {
  position: absolute;
  right: 56px;
  white-space: nowrap;
  background: var(--color-card);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 6px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
#coupon-float:hover .coupon-tooltip { opacity: 1; }

/* =========================================================
   POPUP MODAL
========================================================= */
#popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.80);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
#popup-overlay.active { display: flex; }

#popup-modal {
  position: relative;
  width: 100%;
  max-width: 860px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  animation: popIn 0.3s ease forwards;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.97) translateY(12px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.popup-left {
  width: 50%;
  flex-shrink: 0;
  position: relative;
  background-image: url('assets/trabajos/4.jpg');
  background-size: cover;
  background-position: center;
  min-height: 480px;
}

.popup-left-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(13,27,42,0.5), rgba(13,27,42,0.8));
}

.popup-left-text {
  position: absolute;
  bottom: 28px;
  left: 28px;
  z-index: 1;
}

.popup-left-brand {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--color-white);
}

.popup-left-location {
  display: block;
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 4px;
}

.popup-right {
  flex: 1;
  background: var(--color-bg);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
}

.popup-logo { max-width: 120px; height: auto; }

.popup-headline {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-white);
  margin-top: 0;
}

.popup-sub {
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 12px;
}

.popup-input {
  width: 100%;
  background: transparent;
  color: var(--color-white);
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  border-radius: 0;
  padding: 10px 0 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-top: 20px;
  outline: none;
  transition: border-color 0.25s ease;
}
.popup-input::placeholder { color: rgba(160,176,192,0.45); }
.popup-input:focus         { border-bottom-color: var(--color-white); }

.popup-btn {
  margin-top: 20px;
  width: 100%;
  justify-content: center;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.popup-btn:hover  { transform: translateY(-1px); }
.popup-btn:active { transform: translateY(0); opacity: 0.85; }

.popup-fine {
  margin-top: 16px;
  color: var(--color-muted);
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.5;
}

#popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  z-index: 10;
  transition: opacity var(--transition);
  padding: 4px 8px;
}
#popup-close:hover { opacity: 1; }

.popup-eyebrow {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: rgba(160,176,192,0.6);
  margin-top: 28px;
  margin-bottom: 16px;
}

.popup-offer-display {
  display: flex;
  align-items: center;
  gap: 20px;
}

.popup-offer-pct {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(3rem, 6vw, 4.5rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--color-white);
}

.popup-offer-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 20px;
  border-left: 1px solid rgba(255,255,255,0.12);
}

.popup-offer-detail span:first-child {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
}

.popup-offer-detail span:last-child {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.popup-rule {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  margin: 24px 0 0;
}

.popup-input.input-error {
  border-bottom-color: #c0392b;
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-6px); }
  75%      { transform: translateX(6px); }
}

#popup-success-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 20px;
}

#popup-success-view[hidden] { display: none; }

.popup-check-svg {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
}

.popup-check-circle {
  stroke-dasharray: 188;
  stroke-dashoffset: 188;
  animation: draw-circle 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.popup-check-mark {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: draw-check 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
}

@keyframes draw-circle {
  to { stroke-dashoffset: 0; }
}

@keyframes draw-check {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .popup-check-circle,
  .popup-check-mark { animation: none; stroke-dashoffset: 0; }
  #popup-modal { animation: none; }
  .service-row { transition: background-color 0.2s ease !important; }
  .service-icon { transition: none !important; }
  .section-header.reveal .underline-accent,
  .whyus-left.reveal .underline-accent {
    transition: none !important;
    transform: scaleX(1) !important;
  }
}

@media (max-width: 640px) {
  .popup-left  { display: none; }
  .popup-right { padding: 40px 28px; }
}

/* =========================================================
   UTILITY
========================================================= */
section { position: relative; }

/* =========================================================
   FOOTER – BOTTOM BAR WITH LEGAL LINKS
========================================================= */
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-legal-links {
  display: flex;
  gap: 20px;
}
.footer-legal-links a {
  color: var(--color-muted);
  font-size: 0.78rem;
  transition: color var(--transition);
}
.footer-legal-links a:hover { color: var(--color-white); }

@media (max-width: 640px) {
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* =========================================================
   POPUP FINE PRINT LINK
========================================================= */
.popup-fine a {
  color: var(--color-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}
.popup-fine a:hover { color: var(--color-white); }

/* =========================================================
   TESTIMONIOS TICKER
========================================================= */
#testimonios {
  padding: 100px 0 0;
  background: var(--color-bg);
  overflow: hidden;
}

#testimonios .section-header {
  text-align: center;
  margin-bottom: 64px;
}

.testimonios-ticker-wrap {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  padding-bottom: 100px;
}

.testimonios-track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
}

.testimonios-track.ticker-ready {
  animation: testimonios-ticker var(--testimonios-ticker-duration, 64s) linear infinite;
}

.testimonios-ticker-wrap:hover .testimonios-track.ticker-ready {
  animation-play-state: paused;
}

@keyframes testimonios-ticker {
  from {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(-1 * var(--testimonios-ticker-distance, 3980px)), 0, 0);
    -webkit-transform: translate3d(calc(-1 * var(--testimonios-ticker-distance, 3980px)), 0, 0);
  }
}

.testi-card {
  width: 340px;
  flex-shrink: 0;
  background: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.testi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.testi-stars {
  color: #FBBC05;
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.testi-google {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.testi-text {
  color: #3c3c3c;
  font-size: 0.85rem;
  line-height: 1.65;
  flex: 1;
}

.testi-name {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #888888;
}

@media (max-width: 768px) {
  .testi-card {
    width: 260px;
    padding: 12px 16px;
    gap: 7px;
  }
  .testi-text { font-size: 0.78rem; }
  .testi-name { font-size: 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .testimonios-track { transform: translate3d(0, 0, 0); }
}

/* =========================================================
   LEGAL PAGES
========================================================= */
.legal-hero {
  background: var(--color-bg-alt);
  padding: 120px 0 64px;
  border-bottom: 1px solid var(--color-border);
}
.legal-hero .section-overline { text-align: left; }
.legal-hero .section-title {
  text-align: left;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}
.legal-hero-date {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.legal-section {
  padding: 80px 0 100px;
  background: var(--color-bg);
}

.legal-content {
  max-width: 760px;
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-white);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}
.legal-content h2:first-child { margin-top: 0; }

.legal-content p {
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.85;
  margin-bottom: 14px;
}
.legal-content p strong { color: var(--color-white); font-weight: 600; }

.legal-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 14px;
}
.legal-content ul li {
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.8;
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;
}
.legal-content ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: rgba(160,176,192,0.35);
}
.legal-content ul li strong { color: var(--color-white); font-weight: 600; }

.legal-content a {
  color: rgba(255,255,255,0.75);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.legal-content a:hover { color: var(--color-white); }

/* =========================================================
   404 PAGE
========================================================= */
.error-404 {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  background: var(--color-bg);
  padding: 80px 0;
}

.error-404-inner {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.error-404-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(10rem, 28vw, 22rem);
  line-height: 1;
  letter-spacing: -4px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.06);
  user-select: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  pointer-events: none;
}

.error-404-inner .section-overline {
  position: relative;
  text-align: center;
}

.error-404-inner .section-title {
  position: relative;
  text-align: center;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-top: 8px;
}

.error-404-desc {
  position: relative;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-top: 20px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.error-404-btns {
  position: relative;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* ============================================================
   FAQ
============================================================ */
#faq {
  padding: var(--section-padding) 0;
  background: var(--color-bg);
}

.faq-list {
  max-width: 780px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.faq-item:first-child {
  border-top: 1px solid rgba(255,255,255,.08);
}

.faq-question {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 4px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: clamp(0.88rem, 1.6vw, 1rem);
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--color-text);
  user-select: none;
  transition: color .2s;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  flex-shrink: 0;
  color: var(--color-accent);
  transition: transform .25s;
}
details[open] .faq-question::after {
  transform: rotate(45deg);
}
.faq-question:hover { color: var(--color-accent); }

.faq-answer {
  padding: 0 4px 22px;
}
.faq-answer p {
  font-size: 0.93rem;
  line-height: 1.85;
  color: var(--color-muted);
}
.faq-answer a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
