/* ============================================
   TÉCNICO CLIMA — styles.css
   Dark industrial theme inspired by Roofing X
   ============================================ */

/* ---- VARIABLES ---- */
:root {
  --bg:        #0a0a0a;
  --bg-2:      #111111;
  --bg-3:      #1a1a1a;
  --white:     #f5f5f5;
  --orange:    #f26522;
  --orange-dk: #d9561a;
  --gray:      #888888;
  --gray-lt:   #555555;
  --border:    rgba(255, 255, 255, 0.07);
  --border-md: rgba(255, 255, 255, 0.12);

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --ff-display:   'Bebas Neue', sans-serif;
  --ff-body:      'DM Sans', sans-serif;

  --header-h: 72px;
  --container: 1240px;
  --radius:    3px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html,
body {
  margin: 0 !important;
  padding: 0 !important;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; background: none; border: none; }

/* ---- UTILITIES ---- */
.container {
  width: min(var(--container), 100% - 2 * 2rem);
  margin-inline: auto;
}

.section {
  padding-block: 7rem;
}

.section-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-num--white {
  color: rgba(255, 255, 255, 0.5);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 2.5rem;
}

.section-title::before {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--orange);
  margin-bottom: 1rem;
}

.section-header {
  margin-bottom: 4rem;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
  cursor: pointer;
}

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

.btn-orange,
.btn-primary {
  background: var(--orange);
  color: #fff;
  border: 2px solid var(--orange);
}
.btn-orange:hover,
.btn-primary:hover { background: var(--orange-dk); border-color: var(--orange-dk); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}
.btn-outline:hover { border-color: var(--white); }

.btn-white {
  background: var(--white);
  color: #0a0a0a;
  border: 2px solid var(--white);
}
.btn-white:hover { background: #e0e0e0; border-color: #e0e0e0; }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.btn-outline-white:hover { border-color: var(--white); }


/* ============================================
   HEADER / NAV
   ============================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s, border-color 0.3s;
}

.header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  border-color: var(--border-md);
}

/* Nunca generar espacio extra sobre el header */
.header::before { display: none !important; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  overflow: visible;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo-text { color: var(--white); }
.logo-slash {
  color: var(--orange);
  font-weight: 900;
  letter-spacing: -0.06em;
  margin-inline: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-link {
  display: block;
  padding: 0.4rem 0.85rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--white); }

.nav-cta {
  margin-left: 1rem;
  padding: 0.6rem 1.2rem;
  font-size: 0.8rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  padding: 4px;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ============================================
   01 / HERO
   ============================================ */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding-top: var(--header-h);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 180px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
  z-index: 1;
  pointer-events: none;
}

/* Left: image */
.hero-image {
  position: relative;
  overflow: hidden;
  clip-path: inset(0 100% 0 0);  /* JS resets this on load */
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.15) 0%, transparent 60%);
}

/* Right: content */
.hero-content {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 5rem 4rem 4rem;
  border-left: 1px solid var(--border);
}

.hero-num {
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(3.8rem, 9vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  margin-bottom: 1.75rem;
  overflow: hidden;
}

.hero-line {
  display: block;
  overflow: hidden;
}

.hero-line .inner {
  display: block;
  transform: translateY(110%); /* GSAP anima esto a 0% */
}

/* Línea 1: degradé blanco → gris, profundidad sutil */
.line-1 .inner {
  background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Línea 2: Barlow Condensed Italic — contraste de personalidad */
.line-2 .inner {
  font-family: 'Barlow Condensed', sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: 1.08em;
  -webkit-text-fill-color: #f26522;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: #f26522;
}

.hero-subtitle {
  font-family: var(--ff-body);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 400;
  color: #aaaaaa;
  line-height: 1.7;
  margin: 1.5rem 0 2.5rem 0;
  max-width: 480px;
  display: block !important;
  min-height: 20px;
}

.hero-actions {
  display: flex !important;
  flex-wrap: wrap;
  gap: 1rem;
}


/* ============================================
   STRIP ANIMADO
   ============================================ */
.strip {
  overflow: hidden;
  background: var(--orange);
  border-top: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-block: 0.85rem;
  user-select: none;
}

.strip-track {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
  will-change: transform;
}

.strip-item {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0a0a0a;
}

.strip-sep {
  font-weight: 900;
  color: rgba(0, 0, 0, 0.4);
  font-size: 1.1rem;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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


/* ============================================
   02 / SERVICIOS
   ============================================ */
.services {
  background: var(--bg-2);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  background: var(--border);
  margin-bottom: 3.5rem;
}

.service-card {
  background: var(--bg-2);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: background 0.25s;
  opacity: 0;   /* animated by GSAP */
  transform: translateY(60px);
}
.service-card:hover { background: var(--bg-3); }
.service-card--featured {
  border-color: var(--orange);
  background: #150e09;
}

.card-icon {
  width: 44px;
  height: 44px;
  color: var(--orange);
  transition: transform 0.25s ease, color 0.25s ease;
}
.card-icon svg { width: 100%; height: 100%; }

.service-card:hover .card-icon {
  transform: scale(1.15) translateY(-3px);
  color: var(--orange);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.1;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.65;
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-top: 0.5rem;
  transition: gap 0.2s;
}
.card-link:hover { gap: 0.85rem; }

.card-sq {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--orange);
  flex-shrink: 0;
}

.section-footer-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}


/* ============================================
   03 / PROMO BAR
   ============================================ */
.promo-bar {
  position: relative;
  background:
    linear-gradient(rgba(242, 101, 34, 0.82), rgba(242, 101, 34, 0.82)),
    url('../img/descuento.webp');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.promo-pattern {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 18px,
    rgba(0, 0, 0, 0.055) 18px,
    rgba(0, 0, 0, 0.055) 19px
  );
  pointer-events: none;
}

.promo-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding-block: 4.5rem;
}

.promo-left { flex: 1; }

.promo-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.75rem;
}

.promo-sub {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.03em;
}

.promo-right {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
  flex-shrink: 0;
}


/* ============================================
   04 / NOSOTROS
   ============================================ */
.about { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-left .section-title { margin-bottom: 1.25rem; }

.about-text {
  font-size: 0.975rem;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 2.25rem;
  max-width: 480px;
}

.checkmarks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.5rem;
}
.checkmarks li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
}
.check {
  color: var(--orange);
  font-size: 1rem;
  font-weight: 900;
  flex-shrink: 0;
}

/* Right column visual */
.about-right { }
.about-visual {
  background: var(--bg-3);
  border: 1px solid var(--border-md);
  border-radius: var(--radius);
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  text-align: center;
}

.years-display { }
.years-number-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  line-height: 1;
}
.years-count {
  font-family: var(--font-display);
  font-size: clamp(6rem, 14vw, 9rem);
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  letter-spacing: -0.04em;
}
.years-plus {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--orange);
  margin-top: 0.4rem;
}
.years-label {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 0.5rem;
}

.about-badges {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}
.about-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 1rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}
.about-badge svg { color: var(--orange); flex-shrink: 0; }


/* ============================================
   05 / ZONA DE COBERTURA
   ============================================ */
.zona {
  background: var(--bg-2);
}

.zona-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.zona-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: border-color 0.25s;
  opacity: 0;
  transform: translateY(50px);
}
.zona-card:hover { border-color: var(--orange); }

.zona-icon {
  width: 48px;
  height: 48px;
  color: var(--orange);
}
.zona-icon svg { width: 100%; height: 100%; }

.zona-content h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.2rem;
}
.zona-content h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.85rem;
}
.zona-content p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
}


/* ============================================
   CTA FINAL
   ============================================ */
.cta-final {
  position: relative;
  background:
    linear-gradient(rgba(242, 101, 34, 0.82), rgba(242, 101, 34, 0.82)),
    url('../img/urgencia.webp');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.cta-pattern {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 18px,
    rgba(0, 0, 0, 0.055) 18px,
    rgba(0, 0, 0, 0.055) 19px
  );
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: 6rem;
  gap: 2.5rem;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #fff;
}

.cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #050505;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-block: 4rem;
}

.footer-brand .logo {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  display: inline-flex;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-col li {
  font-size: 0.875rem;
  color: var(--gray);
}
.footer-col a {
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--orange); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.5rem;
  border-top: 1px solid var(--border);
  gap: 1rem;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--gray-lt);
}
.footer-legal { text-align: right; }


/* ============================================
   TRABAJOS REALIZADOS — gallery scroll
   ============================================ */
.trabajos-section {
  padding: 5rem 0 0 0;
  overflow: hidden;
  background: #0a0a0a;
}

.trabajos-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
}

.trabajos-desc {
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  color: var(--gray);
  max-width: 52ch;
  line-height: 1.7;
}

/* Track wrappers */
.track-wrapper {
  overflow: hidden;
  margin-bottom: 1rem;
}
.track-wrapper:last-of-type { margin-bottom: 0; }

.track-inner {
  display: flex;
  gap: 1rem;
  width: max-content;
  will-change: transform;
}

/* Individual work item — portrait ratio */
.work-item {
  width: 220px;
  height: 300px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--bg-2);
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
}

.work-item:hover img {
  transform: scale(1.06);
}

/* Works marquee — subtle, below tracks */
.works-marquee {
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.5rem 0;
  overflow: hidden;
  margin-top: 2rem;
}

.works-marquee-inner {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: worksMarquee 25s linear infinite;
}

.works-marquee-inner span {
  font-family: var(--ff-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  white-space: nowrap;
  flex-shrink: 0;
}

@keyframes worksMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .trabajos-section { padding-top: 3.5rem; }
  .trabajos-header  { margin-bottom: 2.5rem; }
  .work-item { width: 160px; height: 220px; }
}

/* ============================================
   FOOTER CREDIT
   ============================================ */
.footer-credit {
  text-align: center;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-family: var(--ff-body);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.2);
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-credit a:hover {
  color: #f26522;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-image {
    height: 55vw;
    clip-path: none; /* reset clip-path for mobile */
  }
  .hero-content {
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
  }
  .hero-title { font-size: clamp(2.8rem, 10vw, 5rem); }
  .hero-line .inner { transform: none; }
  .hero-subtitle { opacity: 1; }
  .hero-actions { opacity: 1; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  :root { --header-h: 56px; }

  .section { padding-block: 4.5rem; }

  /* Header mobile — altura fija, solo padding horizontal */
  .header {
    height: 56px;
    padding: 0 1.25rem;
  }

  /* Nav: anula .container (margin-inline:auto y width restringido) */
  .nav {
    width: 100%;
    padding: 0;
    margin: 0;
    margin-inline: 0;
    gap: 0;
    overflow: visible;
  }

  /* Logo mobile */
  .logo {
    font-size: 1.1rem;
    line-height: 1;
    padding: 0;
    margin: 0;
  }

  /* Hamburger */
  .hamburger {
    display: flex;
    flex-shrink: 0;
    margin-left: auto;
    padding: 0.5rem;
  }

  /* Resetear cualquier padding/margin extra del body */
  body {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  /* Nav mobile dropdown —
     NUNCA se mueve por encima del header.
     max-height:0 colapsa el elemento en su posición
     (top: header-h), sin que su fondo oscuro pueda
     interferir con el área del header. */
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 1.5rem;
    border-bottom: 1px solid transparent;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    /* transform eliminado: era la causa del gap */
    transition:
      max-height 0.35s var(--ease-out),
      padding   0.35s var(--ease-out),
      visibility 0s linear 0.35s,
      border-color 0s linear 0.35s;
    z-index: 99;
  }
  .nav-links.open {
    max-height: 420px;
    padding: 1.5rem 1.5rem 2rem;
    visibility: visible;
    border-bottom-color: var(--border);
    transition:
      max-height 0.35s var(--ease-out),
      padding   0.35s var(--ease-out),
      visibility 0s linear 0s,
      border-color 0s linear 0s;
  }
  .nav-link {
    padding: 0.75rem 0.5rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--white);
  }
  .nav-link:last-child { border-bottom: none; }

  .nav-cta { display: none; }

  /* Hero mobile */
  .hero {
    grid-template-columns: 1fr;
    padding-top: 56px !important;
  }
  .hero-image { height: 52vw; }
  .hero-content { padding: 2.5rem 1.5rem; }
  .hero-subtitle { font-size: 0.95rem; max-width: 100%; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; justify-content: center; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }

  /* Promo */
  .promo-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    padding-block: 3.5rem;
  }
  .promo-right { flex-direction: row; flex-wrap: wrap; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .checkmarks { grid-template-columns: 1fr; }

  /* Zona */
  .zona-grid { grid-template-columns: 1fr; }
  .zona-card { opacity: 1; transform: none; } /* disable animation on mobile */

  /* CTA */
  .cta-btns { flex-direction: column; align-items: center; }
  .cta-btns .btn { justify-content: center; min-width: 220px; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 2rem; padding-block: 3rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-legal { text-align: left; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(2.4rem, 13vw, 4rem); }
  .section-title { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .promo-title { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .cta-title { font-size: clamp(1.8rem, 8vw, 2.5rem); }
}

@media (max-width: 400px) {
  .logo { font-size: 1.1rem; }
}

/* ============================================
   CUSTOM CURSOR (desktop)
   ============================================ */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(242, 101, 34, 0.5);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  * { cursor: none; }
  a, button, .btn { cursor: none; }
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-body);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  z-index: 2;
  user-select: none;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(242, 101, 34, 0.8), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top;    opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top;    opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

@media (max-width: 1024px) {
  .scroll-indicator { display: none; }
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transform: scale(0);          /* GSAP animates this to scale(1) */
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
  text-decoration: none;
}

.wa-float svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* Hover */
.wa-float:hover {
  transform: scale(1.12) !important;
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

/* Pulse ring */
.wa-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.45;
  animation: wa-pulse 2.2s ease-out infinite;
}

@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: 0.45; }
  70%  { transform: scale(1.65); opacity: 0; }
  100% { transform: scale(1.65); opacity: 0; }
}

/* Tooltip */
.wa-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  color: #111;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  pointer-events: none;
  opacity: 0;
  translate: 6px 0;
  transition: opacity 0.2s, translate 0.2s;
}

/* Tooltip arrow */
.wa-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: #fff;
}

.wa-float:hover .wa-tooltip {
  opacity: 1;
  translate: 0 0;
}

/* ============================================
   GRADIENTES RADIALES POR SECCIÓN
   ============================================ */
#servicios {
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%,
      rgba(242, 101, 34, 0.055) 0%,
      transparent 70%),
    #0a0a0a;
}

#nosotros {
  background:
    radial-gradient(ellipse 55% 45% at 0% 100%,
      rgba(30, 80, 180, 0.06) 0%,
      transparent 70%),
    #111111;
}

#zona {
  background:
    radial-gradient(ellipse 50% 55% at 0% 0%,
      rgba(242, 101, 34, 0.05) 0%,
      transparent 65%),
    #0a0a0a;
}

#diferenciadores {
  background:
    radial-gradient(ellipse 60% 50% at 100% 100%,
      rgba(20, 60, 160, 0.055) 0%,
      transparent 70%),
    #111111;
}

#trabajos {
  background:
    radial-gradient(ellipse 70% 40% at 100% 0%,
      rgba(242, 101, 34, 0.04) 0%,
      transparent 65%),
    #0a0a0a;
}

#contacto {
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%,
      rgba(242, 101, 34, 0.07) 0%,
      transparent 70%),
    #0a0a0a;
}

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  /* Solo cancelar las animaciones decorativas de fondo */
  .wa-float::before { animation: none; }
  .scroll-line { animation: none; }

  /* Fix crítico: revelar todo lo que GSAP animaría con opacity/transform */
  .hero-image { clip-path: none !important; }
  .hero-line .inner { transform: translateY(0%) !important; }
  .hero-subtitle { opacity: 1 !important; transform: none !important; }
  .hero-actions { opacity: 1 !important; transform: none !important; }
  .service-card { opacity: 1 !important; transform: none !important; }
  .zona-card { opacity: 1 !important; transform: none !important; }
  .section-header { opacity: 1 !important; transform: none !important; }
  .promo-left, .promo-right { opacity: 1 !important; transform: none !important; }
  .cta-title, .cta-btns { opacity: 1 !important; transform: none !important; }
  .footer-brand, .footer-col { opacity: 1 !important; transform: none !important; }
  #waFloat { transform: scale(1) !important; }

  /* Los carrouseles, strip, contador y marquesina siguen funcionando */
}
