:root {
  --bg: #020914;
  --navy: #061528;
  --navy-2: #0b2342;
  --blue: #0c55c8;
  --blue-bright: #2389ff;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --soft: rgba(255, 255, 255, 0.12);
  --glass: rgba(7, 19, 36, 0.64);
  --earth: #a66d38;
  --radius: 28px;
  --header-h: 92px;
  --float-edge: 20px;
  --float-gap: 10px;
  --float-wa-size: 58px;
  --float-chat-size: 48px;
  --float-top-size: 46px;
  --font-main: "Inter", system-ui, sans-serif;
  --font-script: "Caveat", cursive;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--white);
  background: var(--bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

textarea {
  resize: none;
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.08;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.22) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.15) 0 1px, transparent 1px);
  background-size: 44px 44px, 71px 71px;
  mix-blend-mode: screen;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  height: var(--header-h);
  padding: 24px clamp(22px, 3.8vw, 58px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transition: all 0.35s ease;
}

.site-header.scrolled {
  height: 78px;
  padding-top: 15px;
  padding-bottom: 15px;
  background: rgba(1, 9, 20, 0.88);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(35, 137, 255, 0.14);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.32);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 4px;
  filter: drop-shadow(0 14px 20px rgba(0,0,0,0.34));
}

.brand-text {
  display: grid;
  line-height: 1.05;
  font-size: clamp(15px, 1.1vw, 22px);
  font-weight: 600;
}

.brand-text strong {
  font-size: clamp(17px, 1.25vw, 24px);
  font-weight: 850;
}

.desktop-nav {
  min-width: min(620px, 45vw);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 3vw, 56px);
  padding: 18px 42px;
  border-radius: 999px;
  background: rgba(6, 18, 35, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.03), 0 18px 48px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.desktop-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 650;
  font-size: 16px;
  transition: color 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--white);
}

.desktop-nav a.active::after,
.desktop-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20px;
  height: 3px;
  background: var(--blue-bright);
  border-radius: 999px;
}

.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 17px 30px;
  border-radius: 999px;
  border: 0;
  background: var(--white);
  color: #06101e;
  font-weight: 850;
  font-family: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 54px rgba(255, 255, 255, 0.1);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.header-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(35, 137, 255, 0.18) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.header-cta:hover::after {
  transform: translateX(120%);
}

.header-cta svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.7;
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(35, 137, 255, 0.18);
}

.header-cta-arrow {
  transition: transform 0.28s ease;
}

.header-cta:hover .header-cta-arrow {
  transform: translateX(2px);
}

.mobile-menu-button,
.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 46%, rgba(18, 82, 156, 0.28), transparent 32%),
    radial-gradient(circle at 38% 34%, rgba(36, 137, 255, 0.15), transparent 25%),
    linear-gradient(180deg, #020812 0%, #061a31 45%, #020814 100%);
  padding: var(--header-h) clamp(20px, 3.4vw, 64px) 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.45), transparent 30%, rgba(0,0,0,0.25)),
    radial-gradient(circle at center, transparent 44%, rgba(0,0,0,0.58) 100%);
  z-index: 1;
}

.hero-bg-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(110deg, transparent 0 38%, rgba(255,255,255,0.05) 44%, transparent 52%),
    radial-gradient(circle at 88% 68%, rgba(203, 129, 51, 0.24), transparent 25%);
}

.biomass-field {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -6%;
  height: 31vh;
  z-index: 2;
  background:
    radial-gradient(ellipse at 20% 72%, rgba(132, 78, 38, 0.95), transparent 35%),
    radial-gradient(ellipse at 78% 62%, rgba(158, 95, 45, 0.92), transparent 42%),
    linear-gradient(180deg, transparent 0%, rgba(80, 45, 24, 0.9) 60%, rgba(25, 13, 8, 1) 100%);
  filter: blur(0.2px);
}

.biomass-field::before,
.biomass-field::after {
  content: "";
  position: absolute;
  inset: -20%;
  background-image:
    radial-gradient(circle, rgba(190, 121, 61, 0.85) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(255, 188, 98, 0.34) 0 1px, transparent 2px);
  background-size: 32px 18px, 53px 26px;
  transform: rotate(-7deg);
  opacity: 0.55;
}

.dust {
  position: absolute;
  z-index: 7;
  pointer-events: none;
  filter: blur(7px);
  opacity: 0.55;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(212, 148, 86, 0.74), rgba(148, 80, 38, 0.16) 52%, transparent 72%);
  animation: dustFloat 5s ease-in-out infinite alternate;
}

.dust-one {
  width: 54vw;
  height: 17vh;
  left: 23%;
  bottom: 18%;
}

.dust-two {
  width: 34vw;
  height: 15vh;
  right: 4%;
  bottom: 22%;
  animation-delay: -2s;
}

.speed-lines {
  position: absolute;
  z-index: 4;
  left: 8%;
  right: 5%;
  bottom: 31%;
  height: 34vh;
  opacity: 0.45;
  pointer-events: none;
  background:
    linear-gradient(100deg, transparent 0%, rgba(35,137,255,0.3) 20%, transparent 46%),
    linear-gradient(102deg, transparent 8%, rgba(255,255,255,0.11) 38%, transparent 72%),
    linear-gradient(100deg, transparent 48%, rgba(207,124,57,0.18) 67%, transparent 86%);
  transform: skewY(-5deg);
  animation: speedPulse 3.5s ease-in-out infinite alternate;
}

.hero-copy {
  position: absolute;
  left: clamp(24px, 3.8vw, 64px);
  top: 36%;
  z-index: 15;
  width: min(360px, 30vw);
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.4s;
}

.small-line {
  display: block;
  width: 46px;
  height: 3px;
  background: var(--blue-bright);
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero-copy p {
  color: rgba(255,255,255,0.9);
  font-size: clamp(14px, 1vw, 18px);
  line-height: 1.62;
  font-weight: 520;
}

.family-message {
  margin-top: 34px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--white);
}

.family-message-copy {
  display: flex;
  flex-direction: column;
}

.family-message-location {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  font-family: var(--font-main);
  font-size: clamp(12px, 0.95vw, 14px);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.78);
}

.family-message-pin {
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  stroke-width: 1.6;
  color: rgba(147, 197, 253, 0.95);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.18));
}

.family-message-location-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.family-message-location-main {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 650;
}

.family-message-location-sub {
  font-size: 0.92em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.family-message > svg,
.family-message > [data-lucide="heart"] {
  width: 35px;
  height: 35px;
  stroke-width: 1.6;
  flex-shrink: 0;
}

.family-message span {
  font-family: var(--font-script);
  font-size: clamp(28px, 2.7vw, 42px);
  line-height: 0.88;
  transform: rotate(-2deg);
  text-shadow: 0 10px 22px rgba(0,0,0,0.28);
}

.family-message strong,
.hero-script-banner strong {
  color: #28a8ff;
  position: relative;
  font-weight: 700;
}

.family-message strong::after,
.hero-script-banner strong::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -8px;
  bottom: -4px;
  height: 7px;
  background: rgba(35, 137, 255, 0.68);
  border-radius: 999px;
  z-index: -1;
  transform: rotate(-2deg);
}

.hero-title .hero-script-banner {
  position: absolute;
  z-index: 19;
  right: 16%;
  bottom: 5.5%;
  left: auto;
  width: min(460px, 36vw);
  margin: 0;
  padding: 0;
  text-align: center;
  color: var(--white);
  transform: translateX(-10%) rotate(-2deg);
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.75s;
}

.hero-script-banner span {
  display: inline-block;
  font-family: var(--font-script);
  font-size: clamp(26px, 3.5vw, 50px);
  line-height: 0.9;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.hero-title {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.hero-title h1 {
  position: absolute;
  inset: 0;
  font-weight: 950;
  letter-spacing: -0.08em;
  line-height: 0.78;
  color: var(--white);
  text-shadow: 0 24px 55px rgba(0,0,0,0.24);
}

.title-line {
  position: absolute;
  display: block;
  white-space: nowrap;
  opacity: 0;
  animation: titleIn 1s cubic-bezier(.18,.84,.36,1) forwards;
}

.title-transports {
  top: 17%;
  left: 3.1%;
  font-size: clamp(72px, 12vw, 198px);
  animation-delay: 0.05s;
}

.title-amalia {
  top: 37%;
  left: 19%;
  font-size: clamp(58px, 8vw, 142px);
  z-index: 18;
  animation-delay: 0.18s;
}

.title-gonzalez {
  bottom: 14%;
  right: 8.8%;
  font-size: clamp(60px, 8.6vw, 150px);
  z-index: 18;
  animation-delay: 0.31s;
}

.truck-stage {
  position: absolute;
  z-index: 14;
  left: 22.5%;
  right: 3.2%;
  bottom: 23.2%;
  height: clamp(270px, 36vw, 458px);
  transform: translateX(2%);
  opacity: 0;
  animation: truckIntro 1.25s cubic-bezier(.2,.78,.29,1) forwards 0.35s;
  transform-origin: center bottom;
  pointer-events: auto;
}

/* Premium hover: no vibration. The truck gently grows, brightens and reveals the info tabs. */
.truck-stage:hover .truck-img,
.truck-stage.is-running .truck-img {
  transform: scale(1.018);
  filter:
    drop-shadow(0 32px 42px rgba(0,0,0,0.52))
    drop-shadow(0 0 30px rgba(35,137,255,0.28))
    brightness(1.055)
    contrast(1.035);
}

.hero:has(.truck-stage:hover) .dust {
  opacity: 0.82;
}

.truck-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 28px 36px rgba(0,0,0,0.48))
    drop-shadow(0 0 16px rgba(35,137,255,0.08));
  user-select: none;
  transform-origin: center center;
  transition: transform 0.42s cubic-bezier(.2,.8,.2,1), filter 0.42s ease;
}

.truck-stage::after {
  content: "";
  position: absolute;
  left: 3%;
  right: 2%;
  bottom: 3%;
  height: 54px;
  background: radial-gradient(ellipse, rgba(196, 119, 57, 0.5), transparent 72%);
  filter: blur(16px);
  opacity: 0.78;
  z-index: -1;
}

.truck-stage:hover .truck-img {
  filter:
    drop-shadow(0 30px 38px rgba(0,0,0,0.5))
    drop-shadow(0 0 26px rgba(35,137,255,0.22));
}

.wheel-blur {
  position: absolute;
  bottom: 8.5%;
  width: clamp(40px, 4.3vw, 75px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px dashed rgba(255,255,255,0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  animation: wheelSpin 0.7s linear infinite;
}

.truck-stage:hover .wheel-blur {
  opacity: 0;
}

.wheel-blur-1 { left: 10.2%; }
.wheel-blur-2 { left: 18.4%; }
.wheel-blur-3 { right: 14.2%; }

.hotspot {
  position: absolute;
  z-index: 40;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  outline: none;
  cursor: pointer;
}

.hotspot-dot {
  display: block;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255,255,255,0.82);
  border-radius: 999px;
  background: rgba(12, 85, 200, 0.62);
  box-shadow:
    0 0 0 8px rgba(35, 137, 255, 0.15),
    0 0 26px rgba(35, 137, 255, 0.45);
  cursor: pointer;
  animation: pulse 1.9s ease-in-out infinite;
}

.hotspot::before {
  content: "";
  position: absolute;
  width: 1px;
  height: 54px;
  left: 18px;
  bottom: 28px;
  border-left: 1px dashed rgba(255,255,255,0.36);
  pointer-events: none;
}

.hotspot-cercania::before,
.hotspot-nacional::before {
  top: 28px;
  bottom: auto;
  height: 42px;
}

.hotspot-biomasa,
.hotspot-versatil { left: 54.2%; top: 33.5%; }
.hotspot-flota { right: 11.8%; top: 42.5%; }
.hotspot-cercania { left: 20.5%; bottom: 20.5%; }
.hotspot-nacional { left: 45.5%; bottom: 27%; }

.tooltip {
  position: absolute;
  left: -72px;
  bottom: calc(100% + 50px);
  min-width: 250px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 13px;
  background: rgba(8, 17, 30, 0.78);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 18px 52px rgba(0,0,0,0.32);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  pointer-events: none;
  transition: all 0.25s ease;
}

.tooltip-bottom {
  bottom: auto;
  top: calc(100% + 26px);
}

.tooltip svg {
  width: 28px;
  height: 28px;
  color: var(--blue-bright);
  flex: 0 0 auto;
}

.tooltip strong,
.tooltip span {
  display: block;
}

.tooltip strong {
  font-size: 16px;
  line-height: 1.1;
}

.tooltip span {
  margin-top: 5px;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  line-height: 1.35;
}

.hotspot:hover .tooltip,
.hotspot:focus .tooltip,
.hotspot:focus-within .tooltip,
.hotspot.active .tooltip {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.feature-strip {
  position: absolute;
  z-index: 20;
  left: 16%;
  right: 12%;
  bottom: 3.6%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.75s;
}

.feature-strip article {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 34px;
  border-right: 1px solid rgba(255,255,255,0.2);
}

.feature-strip article:last-child {
  border-right: 0;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--blue-bright);
  background: rgba(35, 137, 255, 0.08);
}

.feature-icon svg {
  width: 27px;
  height: 27px;
}

.feature-strip h3 {
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.feature-strip p {
  margin-top: 4px;
  color: rgba(255,255,255,0.68);
  font-size: 14px;
}

.scroll-indicator {
  position: absolute;
  right: 38px;
  bottom: 34px;
  z-index: 30;
  width: 28px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  display: none;
}

.scroll-indicator span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--white);
  position: absolute;
  left: 50%;
  top: 9px;
  transform: translateX(-50%);
  animation: scrollDot 1.4s ease-in-out infinite;
}

.content-section,
.contact-section {
  position: relative;
  z-index: 5;
  padding: 120px clamp(22px, 6vw, 92px);
  background: #f5f8fc;
  color: #071222;
}

.content-section.darker {
  background: #061528;
  color: var(--white);
}

.section-inner {
  max-width: 1050px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  color: var(--blue);
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 14px;
}

.content-section h2,
.contact-card h2 {
  max-width: 820px;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.content-section p,
.contact-card p {
  max-width: 690px;
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(7,18,34,0.72);
}

.darker p {
  color: rgba(255,255,255,0.72);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  padding: 34px;
  border-radius: 26px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}

.service-card svg {
  color: var(--blue-bright);
  width: 34px;
  height: 34px;
}

.service-card h3 {
  margin-top: 26px;
  font-size: 24px;
}

.service-card p {
  margin-top: 12px;
  font-size: 15px;
}

.contact-section {
  background:
    radial-gradient(circle at 30% 10%, rgba(35,137,255,0.16), transparent 35%),
    linear-gradient(180deg, #f5f8fc, #dfe8f5);
}

.contact-card {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 60px);
  border-radius: 36px;
  background: rgba(255,255,255,0.82);
  color: #06101e;
  box-shadow: 0 30px 90px rgba(4, 18, 36, 0.14);
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(7,18,34,0.12);
  border-radius: 18px;
  padding: 18px 20px;
  outline: none;
  background: rgba(255,255,255,0.85);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(37, 99, 235, 0.72);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.contact-form button {
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  padding: 18px 22px;
  background: var(--blue);
  color: var(--white);
  font-weight: 850;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.contact-form button:hover {
  transform: translateY(-1px);
  background: #0643a7;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes titleIn {
  from { opacity: 0; transform: translateY(34px) scale(0.98); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes truckIntro {
  from { opacity: 0; transform: translateX(9%) scale(0.98); filter: blur(14px); }
  to { opacity: 1; transform: translateX(2%) scale(1); filter: blur(0); }
}

/* No engine shake in v3: hover is handled with scale + glow for a smoother premium feel. */

@keyframes dustFloat {
  from { transform: translateX(-1%) translateY(0) scale(1); }
  to { transform: translateX(2%) translateY(-4px) scale(1.04); }
}

@keyframes speedPulse {
  from { opacity: 0.22; transform: translateX(-1%) skewY(-5deg); }
  to { opacity: 0.52; transform: translateX(1%) skewY(-5deg); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(35,137,255,0.12), 0 0 26px rgba(35,137,255,0.45); }
  50% { box-shadow: 0 0 0 14px rgba(35,137,255,0.02), 0 0 34px rgba(35,137,255,0.65); }
}

@keyframes wheelSpin {
  to { transform: rotate(360deg); }
}

@keyframes scrollDot {
  0%, 100% { opacity: 0.25; transform: translate(-50%, 0); }
  50% { opacity: 1; transform: translate(-50%, 14px); }
}

@keyframes scrollHintFloat {
  0%, 100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(12px);
    opacity: 0.72;
  }
}

.hero-scroll-hint {
  position: absolute;
  left: clamp(24px, 3.8vw, 64px);
  bottom: 9%;
  z-index: 25;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.25s ease, transform 0.25s ease;
}

.hero-scroll-hint-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero-scroll-hint:hover {
  color: var(--white);
  transform: translateY(2px);
}

.hero-scroll-hint-label {
  display: block;
  font-family: var(--font-main);
  font-size: clamp(28px, 3.6vw, 52px);
  font-weight: 950;
  letter-spacing: 0.1em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.hero-scroll-hint-arrow {
  display: block;
  width: clamp(44px, 5.8vw, 72px);
  height: clamp(44px, 5.8vw, 72px);
  margin-inline: auto;
  stroke-width: 2.2;
  animation: scrollHintFloat 2.1s ease-in-out infinite;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.32));
}

.scroll-indicator--legacy {
  display: none !important;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .desktop-nav {
    min-width: auto;
    gap: 26px;
    padding-inline: 28px;
  }

  .header-cta span {
    display: none;
  }

  .hero-copy {
    top: 33%;
    width: 250px;
  }

  .truck-stage {
    left: 18%;
    right: -5%;
    bottom: 24%;
  }

  .title-transports {
    font-size: clamp(64px, 13vw, 150px);
  }

  .title-amalia {
    left: 17%;
  }

  .hero-title .hero-script-banner span {
    font-size: clamp(24px, 3.6vw, 44px);
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 82px;
    --float-edge: 14px;
  }

  .site-header {
    display: flex;
    justify-content: space-between;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .mobile-menu-button {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.07);
    border-radius: 16px;
    display: grid;
    place-content: center;
    gap: 7px;
    cursor: pointer;
    backdrop-filter: blur(12px);
  }

  .mobile-menu-button span {
    width: 22px;
    height: 2px;
    background: var(--white);
    display: block;
    transition: transform 0.25s ease;
  }

  .mobile-menu-button.open span:first-child {
    transform: translateY(4.5px) rotate(45deg);
  }

  .mobile-menu-button.open span:last-child {
    transform: translateY(-4.5px) rotate(-45deg);
  }

  .mobile-nav {
    position: fixed;
    top: 84px;
    left: 20px;
    right: 20px;
    z-index: 60;
    display: grid;
    gap: 4px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(3, 12, 24, 0.92);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(20px);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
  }

  .mobile-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav a {
    padding: 15px 16px;
    border-radius: 16px;
    font-weight: 750;
  }

  .mobile-nav a:hover {
    background: rgba(255,255,255,0.08);
  }

  .mobile-cta {
    display: block;
    width: 100%;
    border: 0;
    background: var(--white);
    color: #06101e;
    text-align: center;
    margin-top: 8px;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
  }

  .hero {
    min-height: 980px;
    padding-inline: 22px;
  }

  .title-transports {
    top: 15%;
    left: 4%;
    font-size: clamp(50px, 16vw, 118px);
  }

  .title-amalia {
    top: 29%;
    left: 6%;
    font-size: clamp(48px, 15vw, 108px);
  }

  .title-gonzalez {
    top: 63%;
    bottom: auto;
    left: 4%;
    right: auto;
    font-size: clamp(46px, 14vw, 104px);
  }

  .hero-copy {
    top: 73%;
    left: 24px;
    width: min(360px, calc(100% - 48px));
  }

  .family-message {
    margin-top: 22px;
  }

  .truck-stage {
    left: -7%;
    right: -15%;
    bottom: 34%;
    height: 320px;
  }

  .tooltip {
    display: none;
  }

  .hotspot::before {
    display: none;
  }

  .hero-title .hero-script-banner {
    right: auto;
    left: 2%;
    bottom: auto;
    top: calc(63% + clamp(36px, 10vw, 68px));
    width: min(92%, 340px);
    transform: rotate(-2deg);
    text-align: left;
  }

  .hero-title .hero-script-banner span {
    font-size: clamp(22px, 5.8vw, 34px);
  }

  .hero-scroll-hint {
    left: 24px;
    bottom: 12%;
  }

  .hero-scroll-hint-stack {
    gap: 14px;
  }

  .hero-scroll-hint-label {
    font-size: clamp(24px, 6vw, 40px);
  }

  .hero-scroll-hint-arrow {
    width: clamp(38px, 9vw, 56px);
    height: clamp(38px, 9vw, 56px);
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .brand-text {
    font-size: 13px;
  }

  .brand-text strong {
    font-size: 15px;
  }

  .hero:not(.hero--video) {
    min-height: 880px;
  }

  .hero:not(.hero--video) .hero-copy {
    top: 67%;
  }

  .hero:not(.hero--video) .truck-stage {
    height: 230px;
    bottom: 39%;
    left: -18%;
    right: -35%;
  }

  .hero:not(.hero--video) .hero-title .hero-script-banner span {
    font-size: clamp(20px, 6.8vw, 30px);
  }

  .hero:not(.hero--video) .hero-scroll-hint {
    bottom: 10%;
    left: 20px;
  }

  .hero-scroll-hint-stack {
    gap: 12px;
  }

  .hero-scroll-hint-label {
    font-size: clamp(22px, 7vw, 34px);
  }

  .hero-scroll-hint-arrow {
    width: clamp(34px, 10vw, 48px);
    height: clamp(34px, 10vw, 48px);
  }

  .hotspot-dot {
    width: 18px;
    height: 18px;
  }

  .content-section,
  .contact-section {
    padding: 82px 22px;
  }

  .contact-card {
    border-radius: 26px;
  }
}


/* Hotspot refinements v2 */
.hotspot-flota .tooltip {
  left: auto;
  right: -8px;
}

.hotspot-biomasa .tooltip,
.hotspot-versatil .tooltip {
  left: -110px;
}

.hotspot-cercania .tooltip,
.hotspot-nacional .tooltip {
  left: -96px;
}

.hotspot.active .hotspot-dot {
  animation-play-state: paused;
  box-shadow: 0 0 0 12px rgba(35,137,255,0.18), 0 0 36px rgba(35,137,255,0.8);
}

.truck-stage::before {
  content: "";
  position: absolute;
  inset: -10% -4%;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(100deg, transparent 5%, rgba(35,137,255,0.18) 21%, transparent 42%),
    linear-gradient(100deg, transparent 35%, rgba(255,255,255,0.07) 55%, transparent 78%);
  opacity: 0.28;
  filter: blur(8px);
  transition: opacity .25s ease;
}

.truck-stage:hover::before,
.truck-stage.is-running::before {
  opacity: 0.58;
}

/* Keeps the huge typography behind the usable interactive layers */
.hero-title {
  pointer-events: none;
}

@media (max-width: 900px) {
  .hotspot.active .tooltip {
    display: flex;
    position: fixed;
    left: 18px;
    right: 18px;
    top: auto;
    bottom: 22px;
    min-width: auto;
    width: auto;
    z-index: 999;
  }
}


/* v3 exact visual refinements */
.truck-stage {
  left: 22.8%;
  right: 3.4%;
  bottom: 23.6%;
  height: clamp(285px, 36.6vw, 468px);
}

.truck-stage .tooltip {
  opacity: 0;
}

.truck-stage:hover .tooltip {
  opacity: 0.92;
  transform: translateY(0) scale(1);
}

.hotspot:hover .tooltip,
.hotspot:focus .tooltip,
.hotspot:focus-within .tooltip,
.hotspot.active .tooltip {
  opacity: 1 !important;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.hotspot-dot {
  background: rgba(12, 85, 200, 0.74);
}

.hotspot-flota .tooltip {
  left: auto;
  right: -6px;
  bottom: calc(100% + 46px);
}

.hotspot-biomasa .tooltip,
.hotspot-versatil .tooltip {
  left: -92px;
  bottom: calc(100% + 46px);
}

.hotspot-cercania .tooltip {
  left: -120px;
}

.hotspot-nacional .tooltip {
  left: -112px;
}

.truck-stage:hover::before,
.truck-stage.is-running::before {
  opacity: 0.48;
}

@media (max-width: 1180px) {
  .truck-stage {
    left: 18%;
    right: -4%;
    bottom: 25%;
    height: 350px;
  }

  .hotspot-biomasa,
  .hotspot-versatil { left: 54%; top: 34%; }
  .hotspot-flota { right: 12%; top: 43%; }
  .hotspot-cercania { left: 20%; bottom: 21%; }
  .hotspot-nacional { left: 45%; bottom: 27%; }
}

@media (max-width: 900px) {
  .truck-stage {
    left: -7%;
    right: -15%;
    bottom: 34%;
    height: 320px;
  }

  .truck-stage:hover .tooltip {
    opacity: 0;
  }

  .hotspot.active .tooltip {
    opacity: 1;
  }
}

@media (max-width: 560px) {
  .truck-stage {
    height: 230px;
    bottom: 39%;
    left: -18%;
    right: -35%;
  }
}

/* —— v3 full upgrade —— */
:root {
  --sand: #e8d4b8;
  --sand-dark: #a66d38;
  --warm-bg: #f7f2ea;
}

.hero-tagline {
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.55;
}

.hero-tagline strong {
  font-weight: 750;
  font-size: clamp(15px, 1.15vw, 19px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn--shine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(35, 137, 255, 0.22) 50%, transparent 62%);
  transform: translateX(-130%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.btn--shine:hover::after {
  transform: translateX(130%);
}

.btn-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(2px);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(35, 137, 255, 0.14);
}

.btn-primary {
  background: var(--white);
  color: #06101e;
}

.btn-secondary {
  background: rgba(35, 137, 255, 0.22);
  border-color: rgba(35, 137, 255, 0.5);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.section-lead {
  max-width: 720px;
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.65;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.about-list {
  list-style: none;
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
  color: rgba(7, 18, 34, 0.85);
}

.about-list svg {
  width: 22px;
  height: 22px;
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.about-media .media-placeholder {
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(145deg, #fff, var(--warm-bg));
  border: 1px solid rgba(7, 18, 34, 0.08);
  box-shadow: 0 24px 70px rgba(4, 18, 36, 0.1);
  padding: 18px;
}

.about-media img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
}

.about-media p {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(7, 18, 34, 0.55);
}

.services-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 36px;
}

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

.fleet-section {
  background: var(--warm-bg);
}

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.fleet-card {
  padding: 22px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(7, 18, 34, 0.08);
  box-shadow: 0 16px 50px rgba(4, 18, 36, 0.06);
}

.fleet-card-media {
  border-radius: 18px;
  background: linear-gradient(180deg, #f0f5fc, #e8eef8);
  min-height: 160px;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 18px;
}

.fleet-card-media--truck {
  background: linear-gradient(180deg, #f0f5fc 0%, #dce8f8 52%, #e8eef8 100%);
}

.fleet-card-media--truck img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  max-height: 200px;
  object-fit: contain;
  object-position: center bottom;
  padding: 14px 12px 10px;
  display: block;
}

/* Integra fondos claros de las fotos con el azul del recuadro */
.fleet-card-media--photo img {
  mix-blend-mode: multiply;
}

.fleet-card-media--placeholder {
  color: var(--blue);
}

.fleet-card-media--placeholder svg {
  width: 48px;
  height: 48px;
}

.fleet-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.fleet-card p {
  margin-top: 0;
  font-size: 15px;
  color: rgba(7, 18, 34, 0.68);
}

.driver-section {
  background:
    radial-gradient(circle at 82% 14%, rgba(166, 109, 56, 0.14), transparent 42%),
    radial-gradient(circle at 12% 88%, rgba(35, 137, 255, 0.06), transparent 36%),
    linear-gradient(180deg, #f8f4ee 0%, #f5f8fc 55%, #eef3f9 100%);
  color: #071222;
}

.driver-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.driver-section .eyebrow {
  color: var(--blue);
}

.driver-section h2 {
  color: #071222;
}

.driver-section p {
  color: rgba(7, 18, 34, 0.72);
  margin-top: 20px;
}

.driver-highlights {
  display: grid;
  gap: 14px;
}

.driver-highlights article {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(7, 18, 34, 0.08);
  box-shadow: 0 14px 36px rgba(4, 18, 36, 0.06);
  color: rgba(7, 18, 34, 0.9);
  font-weight: 700;
}

.driver-highlights svg {
  width: 24px;
  height: 24px;
  color: var(--blue-bright);
}

.contact-layout {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: start;
}

.contact-card--driver {
  background: rgba(255, 255, 255, 0.92);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-section-header {
  max-width: 1100px;
  margin: 0 auto 36px;
  text-align: center;
}

.contact-section-header h2 {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: #06101e;
}

.contact-section-header .section-lead {
  margin: 18px auto 0;
  color: rgba(7, 18, 34, 0.72);
}

.contact-channels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.contact-channel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(7, 18, 34, 0.1);
  box-shadow: 0 14px 44px rgba(4, 18, 36, 0.08);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.contact-channel-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}

.contact-channel-card svg {
  width: 26px;
  height: 26px;
  color: var(--blue);
}

.contact-channel-card--whatsapp svg {
  color: #25d366;
}

.contact-channel-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(7, 18, 34, 0.55);
}

.contact-channel-card strong {
  font-size: 14px;
  line-height: 1.35;
  color: #06101e;
  word-break: break-word;
}

.contact-channel-card--location {
  cursor: default;
}

.contact-channel-card--location svg {
  color: #2563eb;
}

.contact-location-note {
  max-width: 680px;
  margin: 20px auto 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(7, 18, 34, 0.62);
}

.select-wrapper {
  position: relative;
  width: 100%;
}

.select-wrapper::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 10px;
  height: 10px;
  pointer-events: none;
  border-right: 2px solid rgba(7, 18, 34, 0.55);
  border-bottom: 2px solid rgba(7, 18, 34, 0.55);
  transform: translateY(-65%) rotate(45deg);
}

.select-wrapper select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid rgba(7, 18, 34, 0.12);
  border-radius: 18px;
  padding: 18px 48px 18px 20px;
  outline: none;
  background: rgba(255, 255, 255, 0.85);
  color: #06101e;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.select-wrapper select:focus {
  border-color: rgba(37, 99, 235, 0.72);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.select-wrapper select:invalid {
  color: rgba(7, 18, 34, 0.5);
}

.form-feedback {
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

.form-feedback--success {
  background: rgba(34, 160, 85, 0.12);
  border: 1px solid rgba(34, 160, 85, 0.35);
  color: #166534;
}

.form-feedback--error {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #9b1c1c;
}

.form-alt-contact {
  margin-top: 4px;
  font-size: 14px;
  text-align: center;
  color: rgba(7, 18, 34, 0.65);
}

.form-alt-contact a {
  color: var(--blue);
  font-weight: 800;
}

.contact-form button.is-loading {
  opacity: 0.85;
  cursor: wait;
}

.footer-contact a {
  word-break: break-word;
}

.faq-section {
  background: #fff;
}

.faq-list {
  margin-top: 32px;
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid rgba(7, 18, 34, 0.1);
  border-radius: 18px;
  padding: 4px 20px;
  background: #fafbfe;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  padding: 16px 0;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0 0 18px;
  font-size: 16px;
  color: rgba(7, 18, 34, 0.72);
}

.site-footer {
  background: #020914;
  color: rgba(255, 255, 255, 0.86);
  padding: 56px clamp(22px, 5vw, 64px) 28px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 28px;
  align-items: start;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer-brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}

.footer-brand strong {
  display: block;
  font-size: 18px;
}

.footer-brand span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
}

.footer-location {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.42);
}

.footer-nav,
.footer-contact {
  display: grid;
  gap: 10px;
}

.footer-nav a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--white);
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.footer-legal {
  max-width: 1100px;
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
}

.whatsapp-float {
  position: fixed;
  right: var(--float-edge);
  bottom: calc(var(--float-edge) + env(safe-area-inset-bottom, 0px));
  z-index: 100;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 14px 40px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

.whatsapp-float:hover {
  transform: scale(1.02);
}

.chatbot {
  position: fixed;
  right: var(--float-edge);
  bottom: calc(var(--float-edge) + var(--float-wa-size) + var(--float-gap) + env(safe-area-inset-bottom, 0px));
  z-index: 105;
}

.chatbot-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #061528;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.chatbot-toggle svg {
  width: 20px;
  height: 20px;
}

.chatbot-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  z-index: 110;
  width: min(360px, calc(100vw - 40px));
  max-height: min(480px, 70vh);
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  color: #06101e;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(7, 18, 34, 0.1);
}

.chatbot-panel[hidden] {
  display: none !important;
}

.chatbot-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background: #f5f8fc;
  border-bottom: 1px solid rgba(7, 18, 34, 0.08);
}

.chatbot-header strong {
  display: block;
  font-size: 15px;
}

.chatbot-header span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(7, 18, 34, 0.55);
}

.chatbot-close {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 4px;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.chatbot-bubble {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
  max-width: 92%;
}

.chatbot-bubble.bot {
  background: #f0f4fa;
  color: #06101e;
}

.chatbot-bubble.user {
  justify-self: end;
  background: var(--blue);
  color: #fff;
}

.chatbot-quick {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(7, 18, 34, 0.08);
}

.chatbot-quick button {
  min-height: 44px;
  border: 1px solid rgba(7, 18, 34, 0.12);
  border-radius: 12px;
  background: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  padding: 10px 12px;
}

.chatbot-quick button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

body.chatbot-open .back-to-top.is-visible,
body.assistant-open .back-to-top.is-visible {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(8px) scale(0.92);
}

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

  .about-grid,
  .driver-inner,
  .contact-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

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

@media (max-width: 900px) {
  :root {
    --float-edge: 14px;
  }

  .contact-channels {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    width: min(420px, calc(100% - 48px));
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .services-grid,
  .fleet-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .chatbot {
    right: var(--float-edge);
    bottom: calc(var(--float-edge) + var(--float-wa-size) + var(--float-gap) + env(safe-area-inset-bottom, 0px));
  }

  .whatsapp-float {
    right: var(--float-edge);
    bottom: calc(var(--float-edge) + env(safe-area-inset-bottom, 0px));
  }

  .footer-social {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .hero.hero--video .hero-copy {
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    width: auto;
  }

  .hero.hero--video {
    min-height: 100svh;
    padding-bottom: 0;
  }
}

/* Redes sociales y empleo */
.social-section {
  background:
    radial-gradient(circle at 12% 18%, rgba(35, 137, 255, 0.1), transparent 38%),
    linear-gradient(180deg, #f7f2ea 0%, #f5f8fc 100%);
}

.social-platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.social-platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 28px 22px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(7, 18, 34, 0.1);
  box-shadow: 0 18px 56px rgba(4, 18, 36, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.social-platform-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  border-color: rgba(37, 99, 235, 0.28);
}

.social-platform-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
}

.social-platform-icon svg {
  width: 30px;
  height: 30px;
}

.social-platform-icon--infojobs svg {
  width: 56px;
  height: 56px;
}

.social-platform-card--instagram .social-platform-icon {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}

.social-platform-card--tiktok .social-platform-icon {
  background: #010101;
}

.social-platform-card--infojobs .social-platform-icon {
  background: transparent;
  padding: 0;
}

.social-platform-name {
  font-size: 18px;
  font-weight: 850;
  color: #06101e;
}

.social-platform-handle {
  font-size: 14px;
  font-weight: 650;
  color: var(--blue);
  word-break: break-word;
}

.footer-social--platforms {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 200px;
}

.social-link--labeled {
  width: auto;
  height: auto;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
}

.social-link--labeled svg,
.social-link-icon svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.social-link-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.social-link--instagram .social-link-icon {
  color: #e4405f;
}

.social-link--labeled span {
  line-height: 1.2;
}

.infojobs-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #007ad9;
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  text-transform: lowercase;
}

@media (max-width: 900px) {
  .social-platforms {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-social--platforms {
    grid-column: 1 / -1;
  }
}

/* Nosotros — titular con foto dentro del texto */
#nosotros.content-section {
  --about-fleet-image: url("assets/fondo-flota-real.jpg");
  text-align: center;
  background:
    radial-gradient(circle at 50% 24%, rgba(35, 137, 255, 0.06), transparent 38%),
    linear-gradient(180deg, #f8fbff 0%, #f3f7fc 100%);
}

#nosotros .about-centered {
  max-width: 900px;
  margin-inline: auto;
}

#nosotros .eyebrow {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

#nosotros .about-title-image {
  margin: 0 auto;
  max-width: 920px;
  font-size: clamp(44px, 7.2vw, 98px);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: -0.065em;
  text-align: center;
  color: transparent;
  background-image: var(--about-fleet-image);
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.45px rgba(248, 250, 252, 0.92);
  paint-order: stroke fill;
  filter:
    drop-shadow(0 0 0.6px rgba(255, 255, 255, 0.85))
    drop-shadow(0 1px 0 rgba(220, 228, 238, 0.45))
    drop-shadow(0 0 1px rgba(180, 190, 205, 0.28));
}

#nosotros .section-lead {
  max-width: 670px;
  margin: 28px auto 0;
  text-align: center;
}

#nosotros .about-list--centered {
  width: fit-content;
  max-width: min(100%, 560px);
  margin: 34px auto 0;
  text-align: left;
}

#nosotros .about-list--centered li {
  justify-content: flex-start;
  color: rgba(7, 18, 34, 0.88);
  font-weight: 780;
}

#nosotros .about-list svg {
  color: var(--blue-bright);
  stroke-width: 2.4;
}

@media (max-width: 560px) {
  #nosotros .about-title-image {
    font-size: clamp(36px, 12vw, 56px);
    line-height: 0.92;
    -webkit-text-stroke: 0.35px rgba(248, 250, 252, 0.9);
  }
}

/* Servicios — diseño referencia */
#servicios.services-section {
  position: relative;
  overflow: hidden;
  padding-top: clamp(88px, 9vw, 120px);
  padding-bottom: clamp(88px, 9vw, 120px);
  background:
    radial-gradient(ellipse 120% 70% at 50% -8%, rgba(35, 137, 255, 0.07), transparent 55%),
    radial-gradient(circle at 18% 12%, rgba(35, 137, 255, 0.08), transparent 34%),
    linear-gradient(180deg, #061528 0%, #071a32 100%);
}

.services-ambient {
  position: absolute;
  inset: 0 0 auto;
  height: min(58vh, 460px);
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.services-ambient::before {
  content: "";
  position: absolute;
  top: -25%;
  left: -20%;
  width: 140%;
  height: 75%;
  background:
    radial-gradient(circle at 28% 42%, rgba(37, 99, 235, 0.11), transparent 44%),
    radial-gradient(circle at 68% 38%, rgba(14, 165, 233, 0.07), transparent 40%),
    radial-gradient(circle at 48% 18%, rgba(59, 130, 246, 0.05), transparent 50%);
  filter: blur(52px);
  opacity: 0.8;
  animation: servicesAmbientFlow 22s ease-in-out infinite alternate;
}

.services-ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 50% at 50% 0%, rgba(96, 165, 250, 0.06) 0%, transparent 72%),
    linear-gradient(180deg, rgba(35, 137, 255, 0.04) 0%, transparent 42%);
  animation: servicesAmbientDepth 16s ease-in-out infinite alternate;
}

@keyframes servicesAmbientFlow {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.62;
  }
  100% {
    transform: translate3d(1.5%, 2%, 0) scale(1.03);
    opacity: 0.88;
  }
}

@keyframes servicesAmbientDepth {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 0.78;
  }
}

@media (max-width: 768px) {
  .services-ambient {
    height: min(42vh, 320px);
  }

  .services-ambient::before {
    filter: blur(36px);
    opacity: 0.65;
  }

  .services-ambient::after {
    opacity: 0.55;
  }
}

#servicios .services-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
}

#servicios .services-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
  margin-bottom: clamp(36px, 5vw, 52px);
  position: relative;
  z-index: 2;
}

#servicios .services-intro-left .eyebrow {
  margin-bottom: 16px;
}

#servicios .services-title {
  max-width: 640px;
  margin: 0;
  font-family: var(--font-main);
  font-size: clamp(34px, 5vw, 66px);
  font-weight: 950;
  line-height: 0.96;
  letter-spacing: -0.055em;
  color: var(--white);
}

#servicios .services-intro-right {
  border-left: 2px solid var(--blue-bright);
  padding-left: clamp(20px, 2.5vw, 32px);
  align-self: center;
}

#servicios .services-intro-right p {
  margin: 0;
  max-width: none;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

#servicios .services-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 22px);
}

#servicios .service-card-v2 {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

#servicios .service-card-v2:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.22);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

#servicios .service-card-v2-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

#servicios .service-card-v2:hover .service-card-v2-media img {
  transform: scale(1.015);
}

#servicios .service-card-v2-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0b2342;
}

#servicios .service-card-v2-body {
  padding: clamp(18px, 2vw, 24px) clamp(18px, 2vw, 22px) clamp(22px, 2.4vw, 28px);
  background: rgba(8, 24, 46, 0.72);
}

#servicios .service-card-v2-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

#servicios .service-card-v2-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1.5px solid var(--blue-bright);
  background: rgba(35, 137, 255, 0.12);
}

#servicios .service-card-v2-icon svg {
  width: 22px;
  height: 22px;
  color: var(--blue-bright);
  stroke-width: 2.2;
}

#servicios .service-card-v2-head h3 {
  margin: 0;
  font-family: var(--font-main);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--white);
}

#servicios .service-card-v2-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

#servicios .service-card-v2-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: clamp(13px, 0.95vw, 15px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 520;
}

#servicios .service-card-v2-list svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--blue-bright);
  stroke-width: 2.6;
}

#servicios .services-commitment {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
  margin: clamp(40px, 5vw, 56px) 0 clamp(34px, 4vw, 48px);
}

#servicios .services-commitment-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

#servicios .services-commitment-text {
  flex-shrink: 0;
  font-family: var(--font-main);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

#servicios .services-commitment-text strong {
  color: var(--blue-bright);
  font-weight: 850;
}

#servicios .services-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 22px);
}

#servicios .services-value {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px clamp(18px, 2vw, 24px);
  border-radius: 999px;
  background: rgba(8, 24, 45, 0.62);
  border: 1px solid rgba(59, 130, 246, 0.22);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

#servicios .services-value:hover {
  transform: translateY(-2px);
  background: rgba(10, 35, 65, 0.78);
  border-color: rgba(59, 130, 246, 0.36);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

#servicios .services-value-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.32);
  background: rgba(35, 137, 255, 0.1);
  transition: border-color 220ms ease, background 220ms ease;
}

#servicios .services-value:hover .services-value-icon {
  border-color: rgba(59, 130, 246, 0.42);
  background: rgba(35, 137, 255, 0.14);
}

#servicios .services-value-icon svg {
  width: 20px;
  height: 20px;
  color: var(--blue-bright);
}

#servicios .services-value div {
  display: grid;
  gap: 2px;
}

#servicios .services-value strong {
  font-size: clamp(15px, 1.05vw, 17px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
}

#servicios .services-value span {
  font-size: clamp(13px, 0.9vw, 14px);
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.3;
}

@media (max-width: 1024px) {
  #servicios .services-intro {
    grid-template-columns: 1fr;
  }

  #servicios .services-intro-right {
    border-left: 0;
    border-top: 2px solid var(--blue-bright);
    padding-left: 0;
    padding-top: 22px;
  }

  #servicios .services-cards {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }

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

  #servicios .services-commitment-text {
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 560px) {
  #servicios .services-values {
    grid-template-columns: 1fr;
  }

  #servicios .services-value {
    padding: 13px 18px;
  }

  #servicios .services-commitment {
    flex-direction: column;
    text-align: center;
  }

  #servicios .services-commitment-line {
    width: 100%;
  }
}

/* =========================================================
   HERO — Fondo sólido (base limpia) / capas legacy ocultas
   ========================================================= */

.hero-layer--legacy,
.truck-stage--legacy,
.hero-scene--pending {
  display: none !important;
}

/* =========================================================
   HERO — Video intro → fade → imagen final + pop-ups
   ========================================================= */

.hero.hero--video {
  background: #071426;
}

.hero.hero--video::before {
  display: none;
}

.hero.hero--video .hero-new-bg {
  display: none !important;
}

.hero-media-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-final-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1.6s ease, transform 2.4s ease;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
  pointer-events: none;
  border: 0;
  background: #071426;
  opacity: 1;
  transition: opacity 1.6s ease;
}

.hero-media-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  transition: background 1.2s ease;
  background:
    linear-gradient(
      90deg,
      rgba(10, 10, 10, 0.55) 0%,
      rgba(10, 10, 10, 0.28) 45%,
      rgba(10, 10, 10, 0.12) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.15) 0%,
      rgba(0, 0, 0, 0.38) 100%
    );
}

.hero.hero--video.show-final-image .hero-final-image {
  opacity: 1;
  transform: scale(1);
}

.hero.hero--video.show-final-image .hero-bg-video {
  opacity: 0;
}

.hero.hero--video.show-final-image .hero-media-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(7, 20, 38, 0.72) 0%,
      rgba(7, 20, 38, 0.38) 36%,
      rgba(7, 20, 38, 0.12) 62%,
      rgba(7, 20, 38, 0.22) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.12) 0%,
      rgba(0, 0, 0, 0.42) 100%
    );
}

/* Contenido oculto durante el video; aparece con la imagen final */
.hero.hero--video .hero-copy {
  opacity: 1;
  animation: none;
  transform: none;
  filter: none;
}

.hero.hero--video .title-line {
  animation: none;
}

.hero.hero--video .hero-title .hero-script-banner {
  animation: none;
}

.hero.hero--video .small-line,
.hero.hero--video .hero-tagline,
.hero.hero--video .hero-actions,
.hero.hero--video .family-message,
.hero.hero--video .hero-script-banner,
.hero.hero--video .hero-scroll-hint,
.hero.hero--video .title-line {
  opacity: 0;
  filter: blur(6px);
  transition:
    opacity 1.1s cubic-bezier(0.22, 0.84, 0.36, 1),
    transform 1.1s cubic-bezier(0.22, 0.84, 0.36, 1),
    filter 1.1s ease;
}

.hero.hero--video .small-line,
.hero.hero--video .hero-tagline,
.hero.hero--video .hero-actions,
.hero.hero--video .family-message,
.hero.hero--video .hero-scroll-hint,
.hero.hero--video .title-transports,
.hero.hero--video .title-amalia,
.hero.hero--video .title-gonzalez {
  transform: translateY(28px);
}

.hero.hero--video .hero-script-banner {
  transform: translateX(-10%) rotate(-2deg) translateY(28px);
}

.hero.hero--video.show-final-image .title-transports {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.12s;
}

.hero.hero--video.show-final-image .title-amalia {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.28s;
}

.hero.hero--video.show-final-image .title-gonzalez {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.44s;
}

.hero.hero--video.show-final-image .small-line {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.52s;
}

.hero.hero--video.show-final-image .hero-tagline {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.62s;
}

.hero.hero--video.show-final-image .hero-actions {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.78s;
}

.hero.hero--video.show-final-image .family-message {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 0.92s;
}

.hero.hero--video.show-final-image .hero-script-banner {
  opacity: 1;
  transform: translateX(-10%) rotate(-2deg);
  filter: blur(0);
  transition-delay: 0.86s;
}

.hero.hero--video.show-final-image .hero-scroll-hint {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition-delay: 1.05s;
}

/* Pop-ups: puntos visibles tras la imagen; tarjetas al pasar el cursor */
.hero.hero--video .hero-service-hotspots {
  z-index: 22;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.hero.hero--video.show-final-image .hero-service-hotspots {
  opacity: 1;
  pointer-events: none;
}

.hero.hero--video .hero-service-hotspot {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.hero.hero--video.show-final-image .hero-service-hotspot {
  opacity: 1;
  pointer-events: auto;
  align-items: center;
  transform: translate(-100%, -50%);
  min-width: calc(var(--line-w) + min(280px, 32vw) + 12px);
  min-height: clamp(72px, 10vh, 96px);
  padding-right: 4px;
}

.hero.hero--video.show-final-image .hero-service-hotspot::before {
  content: "";
  position: absolute;
  inset: -8px -12px -8px 0;
  border-radius: 20px;
  pointer-events: auto;
}

.hero.hero--video .hero-service-popup {
  opacity: 0;
  visibility: hidden;
  pointer-events: none !important;
  min-width: min(260px, 34vw);
  max-width: 340px;
  padding: 18px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  transform: translateX(18px) translateY(14px) scale(0.92);
  transform-origin: right center;
  filter: blur(8px);
  transition:
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.42s ease,
    box-shadow 0.35s ease,
    background 0.35s ease,
    visibility 0s linear 0.42s;
}

.hero.hero--video .hero-service-hotspot.is-hovered .hero-service-popup {
  transform: translateX(0) translateY(-3px) scale(1.01);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.hero.hero--video .hero-service-hotspot:hover .hero-service-popup-icon,
.hero.hero--video .hero-service-hotspot:focus-visible .hero-service-popup-icon,
.hero.hero--video .hero-service-hotspot.is-hovered .hero-service-popup-icon {
  transform: scale(1.02);
}

.hero.hero--video .hero-service-hotspot:hover .hero-service-popup strong,
.hero.hero--video .hero-service-hotspot.is-hovered .hero-service-popup strong {
  color: #04101f;
}

.hero.hero--video .hero-service-hotspot:hover .hero-service-popup p,
.hero.hero--video .hero-service-hotspot.is-hovered .hero-service-popup p {
  color: rgba(7, 18, 34, 0.82);
}

.hero.hero--video .hero-service-hotspot:hover .hero-service-node,
.hero.hero--video .hero-service-hotspot:focus-visible .hero-service-node,
.hero.hero--video .hero-service-hotspot.is-hovered .hero-service-node {
  transform: scale(1.14);
  border-color: #3b82f6;
  box-shadow:
    0 0 18px rgba(59, 130, 246, 0.55),
    0 0 0 10px rgba(59, 130, 246, 0.22);
}

.hero.hero--video .hero-service-node {
  opacity: 0;
  transform: scale(0.5);
  animation: none;
  transition:
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.hero.hero--video .hero-service-line {
  opacity: 0;
  transform: scaleX(0);
  transform-origin: right center;
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.35s ease;
}

/* Visible 6s tras movimiento del cursor o hover interactivo */
.hero.hero--video.hero-popups-visible .hero-service-node,
.hero.hero--video .hero-service-hotspot.is-hovered .hero-service-node {
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.hero.hero--video.hero-popups-visible .hero-service-line,
.hero.hero--video .hero-service-hotspot.is-hovered .hero-service-line {
  opacity: 0.85;
  transform: scaleX(1);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.82));
  transition:
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.35s ease;
}

.hero.hero--video.hero-popups-visible .hotspot-biomasa .hero-service-node,
.hero.hero--video.hero-popups-visible .hotspot-biomasa .hero-service-line {
  transition-delay: 0.05s;
}

.hero.hero--video.hero-popups-visible .hotspot-paletizadas .hero-service-node,
.hero.hero--video.hero-popups-visible .hotspot-paletizadas .hero-service-line {
  transition-delay: 0.14s;
}

.hero.hero--video.hero-popups-visible .hotspot-granel .hero-service-node,
.hero.hero--video.hero-popups-visible .hotspot-granel .hero-service-line {
  transition-delay: 0.23s;
}

.hero.hero--video.hero-popups-visible .hero-service-popup,
.hero.hero--video .hero-service-hotspot.is-hovered .hero-service-popup {
  opacity: 1;
  visibility: visible;
  pointer-events: none !important;
  transform: translateX(0) translateY(-3px) scale(1.01);
  filter: blur(0);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
  transition:
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.42s ease,
    box-shadow 0.35s ease,
    background 0.35s ease,
    visibility 0s;
}

.hero.hero--video.hero-popups-visible .hotspot-biomasa .hero-service-popup {
  transition-delay: 0.1s;
}

.hero.hero--video.hero-popups-visible .hotspot-paletizadas .hero-service-popup {
  transition-delay: 0.22s;
}

.hero.hero--video.hero-popups-visible .hotspot-granel .hero-service-popup {
  transition-delay: 0.34s;
}

.hero.hero--video:not(.hero-popups-visible):not(.hero-popups-hiding) .hero-service-popup,
.hero.hero--video:not(.hero-popups-visible):not(.hero-popups-hiding) .hero-service-node,
.hero.hero--video:not(.hero-popups-visible):not(.hero-popups-hiding) .hero-service-line {
  transition-delay: 0s !important;
}

.hero.hero--video.hero-popups-visible .hero-service-node {
  animation: hotspotPulse 2.4s ease-in-out infinite;
}

/* Salida: tarjetas se pliegan hacia el punto del camión */
.hero.hero--video.hero-popups-hiding:not(.hero-popups-visible) .hero-service-popup {
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none !important;
  transform: translateX(36px) translateY(14px) scale(0.84) !important;
  filter: blur(12px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
  background: rgba(255, 255, 255, 0.55) !important;
  transition:
    opacity 0.52s cubic-bezier(0.55, 0.06, 0.92, 0.38),
    transform 0.58s cubic-bezier(0.55, 0.06, 0.92, 0.38),
    filter 0.48s ease,
    box-shadow 0.48s ease,
    background 0.42s ease,
    visibility 0s linear 0.52s;
}

.hero.hero--video.hero-popups-hiding:not(.hero-popups-visible) .hotspot-granel .hero-service-popup {
  transition-delay: 0s;
}

.hero.hero--video.hero-popups-hiding:not(.hero-popups-visible) .hotspot-paletizadas .hero-service-popup {
  transition-delay: 0.1s;
}

.hero.hero--video.hero-popups-hiding:not(.hero-popups-visible) .hotspot-biomasa .hero-service-popup {
  transition-delay: 0.2s;
}

.hero.hero--video.hero-popups-hiding:not(.hero-popups-visible) .hero-service-line {
  opacity: 0 !important;
  transform: scaleX(0) !important;
  transition:
    opacity 0.4s cubic-bezier(0.55, 0.06, 0.92, 0.38),
    transform 0.46s cubic-bezier(0.55, 0.06, 0.92, 0.38),
    background 0.35s ease;
}

.hero.hero--video.hero-popups-hiding:not(.hero-popups-visible) .hotspot-granel .hero-service-line {
  transition-delay: 0.22s;
}

.hero.hero--video.hero-popups-hiding:not(.hero-popups-visible) .hotspot-paletizadas .hero-service-line {
  transition-delay: 0.32s;
}

.hero.hero--video.hero-popups-hiding:not(.hero-popups-visible) .hotspot-biomasa .hero-service-line {
  transition-delay: 0.42s;
}

.hero.hero--video.hero-popups-hiding:not(.hero-popups-visible) .hero-service-node {
  opacity: 0 !important;
  transform: scale(0.35) !important;
  animation: none !important;
  box-shadow: 0 0 0 transparent !important;
  transition:
    opacity 0.38s cubic-bezier(0.55, 0.06, 0.92, 0.38),
    transform 0.44s cubic-bezier(0.55, 0.06, 0.92, 0.38),
    box-shadow 0.35s ease;
}

.hero.hero--video.hero-popups-hiding:not(.hero-popups-visible) .hotspot-granel .hero-service-node {
  transition-delay: 0.38s;
}

.hero.hero--video.hero-popups-hiding:not(.hero-popups-visible) .hotspot-paletizadas .hero-service-node {
  transition-delay: 0.48s;
}

.hero.hero--video.hero-popups-hiding:not(.hero-popups-visible) .hotspot-biomasa .hero-service-node {
  transition-delay: 0.58s;
}

.hero.hero--video.hero-popups-hiding:not(.hero-popups-visible) .hero-service-popup-icon {
  transform: scale(0.88) !important;
  transition: transform 0.4s cubic-bezier(0.55, 0.06, 0.92, 0.38);
}

.hero.hero--video .hero-service-hotspot:hover .hero-service-line,
.hero.hero--video .hero-service-hotspot:focus-visible .hero-service-line,
.hero.hero--video .hero-service-hotspot.is-hovered .hero-service-line {
  opacity: 1;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.35), rgba(255, 255, 255, 0.95));
}

.hero.hero--video .hero-service-popup-icon {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero.hero--video .hero-service-cards-mobile {
  display: none;
}

.hero.hero--video .hero-service-cards-mobile .hero-service-popup--static {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.85s ease,
    transform 0.85s cubic-bezier(0.22, 0.84, 0.36, 1);
}

.hero.hero--video.show-final-image .hero-service-cards-mobile .hero-service-popup--static:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

.hero.hero--video.show-final-image .hero-service-cards-mobile .hero-service-popup--static:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.72s;
}

.hero.hero--video.show-final-image .hero-service-cards-mobile .hero-service-popup--static:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.94s;
}

/* ── Hero móvil: oculto en escritorio ── */
.hero-mobile-content {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-final-image,
  .hero-bg-video,
  .hero.hero--video .small-line,
  .hero.hero--video .hero-tagline,
  .hero.hero--video .hero-actions,
  .hero.hero--video .family-message,
  .hero.hero--video .hero-script-banner,
  .hero.hero--video .hero-scroll-hint,
  .hero.hero--video .title-line,
  .hero.hero--video .hero-service-hotspot,
  .hero.hero--video .hero-service-popup {
    transition: none;
  }

  .hero.hero--video .hero-mobile-content {
    transition: none;
  }

  .hero.hero--video.show-final-image .hero-mobile-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .hero.hero--video .hero-final-image,
  .hero.hero--video .hero-bg-video {
    opacity: 1;
    transform: none;
  }

  .hero.hero--video .hero-bg-video {
    display: none;
  }

  .hero.hero--video.show-final-image .small-line,
  .hero.hero--video.show-final-image .hero-tagline,
  .hero.hero--video.show-final-image .hero-actions,
  .hero.hero--video.show-final-image .family-message,
  .hero.hero--video.show-final-image .hero-script-banner,
  .hero.hero--video.show-final-image .hero-scroll-hint,
  .hero.hero--video.show-final-image .title-line,
  .hero.hero--video.show-final-image .hero-service-hotspot {
    opacity: 1;
    transform: translate(-100%, -50%);
    filter: none;
  }

  .hero.hero--video.hero-popups-visible .hero-service-popup,
  .hero.hero--video.hero-popups-visible .hero-service-node,
  .hero.hero--video.hero-popups-visible .hero-service-line,
  .hero.hero--video .hero-service-hotspot.is-hovered .hero-service-popup,
  .hero.hero--video .hero-service-hotspot.is-hovered .hero-service-node,
  .hero.hero--video .hero-service-hotspot.is-hovered .hero-service-line {
    opacity: 1;
    transform: none;
    filter: none;
    visibility: visible;
  }

  .hero.hero--video.hero-popups-hiding .hero-service-popup,
  .hero.hero--video.hero-popups-hiding .hero-service-node,
  .hero.hero--video.hero-popups-hiding .hero-service-line {
    transition: none;
    opacity: 0;
    visibility: hidden;
    transform: none;
    filter: none;
  }
}

/* Base limpia: azul marino profesional (#071426) */
.hero.hero--solid-bg {
  background: #071426;
}

.hero.hero--solid-bg::before {
  display: none;
}

.hero.hero--solid-bg .hero-new-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: transparent;
}

.hero.hero--solid-bg .hero-foreground-layer,
.hero.hero--solid-bg .hero-bg-clouds,
.hero.hero--solid-bg .hero-bg-road,
.hero.hero--solid-bg .hero-bg-particles,
.hero.hero--solid-bg .hero-bg-gradient,
.hero.hero--solid-bg .hero-bg-foreground {
  display: none !important;
}

/* —— Capas de fondo (desactivadas; reutilizar al añadir fondo animado) —— */
.hero:not(.hero--solid-bg).hero--bg-only,
.hero:not(.hero--solid-bg):has(.hero-new-bg) {
  background: #061018;
}

.hero:not(.hero--solid-bg).hero--bg-only::before,
.hero:not(.hero--solid-bg):has(.hero-new-bg)::before {
  z-index: 5;
  background:
    linear-gradient(90deg, rgba(2, 8, 16, 0.52) 0%, rgba(2, 8, 16, 0.16) 30%, transparent 52%),
    linear-gradient(180deg, transparent 0%, transparent 68%, rgba(2, 8, 16, 0.22) 100%);
}

.hero:not(.hero--solid-bg) .hero-new-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #2d7cb0;
}

.hero-bg-road,
.hero-bg-clouds,
.hero-foreground-layer .hero-bg-foreground {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}

/* Capa 1 — cielo y nubes */
.hero-bg-clouds {
  object-fit: cover;
  object-position: center 22%;
  opacity: 1;
  z-index: 0;
  width: 108%;
  left: -4%;
  mix-blend-mode: normal;
  filter: contrast(1.05) saturate(1.06);
  animation: cloudsMove 56s ease-in-out infinite alternate;
}

/* Capa 2 — carretera, bosque y biomasa (PNG con alpha en zonas de cielo) */
.hero-bg-road {
  object-fit: cover;
  object-position: 56% 50%;
  z-index: 1;
  opacity: 1;
  mix-blend-mode: normal;
  filter: contrast(1.1) saturate(1.12) brightness(1.02);
}

/* Partículas sutiles */
.hero-bg-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(218, 162, 88, 0.34), rgba(148, 88, 42, 0.08) 55%, transparent 72%);
  filter: blur(5px);
  opacity: 0.28;
  animation: heroParticleFloat 9s ease-in-out infinite alternate;
}

.hero-particle--one {
  width: min(48vw, 520px);
  height: min(16vh, 140px);
  left: 18%;
  bottom: 20%;
}

.hero-particle--two {
  width: min(32vw, 360px);
  height: min(12vh, 110px);
  right: 8%;
  bottom: 24%;
  animation-delay: -3.5s;
}

/* Degradado solo para legibilidad del texto (sin velo blanco) */
.hero-bg-gradient {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 8, 16, 0.38) 0%, rgba(2, 8, 16, 0.08) 28%, transparent 50%),
    linear-gradient(180deg, transparent 0%, transparent 64%, rgba(2, 8, 16, 0.18) 100%);
}

/* —— Foreground: ramas y profundidad —— */
.hero-foreground-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}

.hero-foreground-layer .hero-bg-foreground {
  object-fit: cover;
  object-position: center center;
  opacity: 0.82;
  mix-blend-mode: normal;
  filter: contrast(1.06) saturate(1.05);
  animation: foregroundSway 18s ease-in-out infinite alternate;
}

/* —— Camión / hotspots (reservado fase 2) —— */
.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 8;
  overflow: hidden;
  pointer-events: none;
}

.hero-copy {
  z-index: 18;
}

.hero-title {
  z-index: 16;
}

.hero-scroll-hint {
  z-index: 24;
}

/* —— Hotspots: tarjetas a la izquierda del remolque (encima del foreground) —— */
.hero-service-hotspots {
  position: absolute;
  inset: 0;
  z-index: 17;
  pointer-events: none;
}

.hero-service-hotspot {
  --line-w: clamp(52px, 7vw, 96px);
  position: absolute;
  left: var(--spot-x);
  top: var(--spot-y);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  width: auto;
  height: auto;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  outline: none;
}

.hotspot-biomasa {
  --line-w: clamp(72px, 9vw, 128px);
}

.hotspot-paletizadas {
  --line-w: clamp(64px, 8vw, 112px);
}

.hotspot-granel {
  --line-w: clamp(68px, 8.5vw, 118px);
}

.hero.hero--video .hotspot-biomasa {
  --line-w: clamp(88px, 10vw, 148px);
}

.hero.hero--video .hotspot-paletizadas {
  --line-w: clamp(80px, 9vw, 132px);
}

.hero.hero--video .hotspot-granel {
  --line-w: clamp(84px, 9.5vw, 138px);
}

.hero-service-node {
  flex-shrink: 0;
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid rgba(255, 255, 255, 1);
  box-shadow:
    0 0 14px rgba(255, 255, 255, 0.55),
    0 0 0 7px rgba(255, 255, 255, 0.12);
  animation: hotspotPulse 2.4s ease-in-out infinite;
}

.hero-service-line {
  flex-shrink: 0;
  position: static;
  width: var(--line-w);
  height: 1px;
  margin: 0 2px;
  transform: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.88));
  pointer-events: none;
}

.hero-service-popup {
  position: relative;
  left: auto;
  bottom: auto;
  top: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: min(280px, 36vw);
  max-width: 300px;
  padding: 14px 16px;
  margin-right: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 40px rgba(4, 18, 36, 0.2);
  color: #071222;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(14px) translateY(8px) scale(0.94);
  filter: blur(6px);
  transition:
    opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.38s ease,
    visibility 0s linear 0.38s;
  z-index: 22;
}

.hero-service-popup-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(35, 137, 255, 0.08);
  border: 1.5px solid rgba(35, 137, 255, 0.32);
}

.hero-service-popup-icon svg {
  width: 22px;
  height: 22px;
  color: var(--blue);
  stroke-width: 2.2;
}

.hero-service-popup strong {
  display: block;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #071222;
}

.hero-service-popup p {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(7, 18, 34, 0.72);
}

.hero-service-hotspot:hover .hero-service-popup,
.hero-service-hotspot:focus-visible .hero-service-popup,
.hero-service-hotspot:focus-within .hero-service-popup,
.hero-service-hotspot.is-hovered .hero-service-popup {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  transform: translateX(0) translateY(-3px) scale(1.01);
  filter: blur(0);
}

.hero-service-hotspot:hover .hero-service-node,
.hero-service-hotspot:focus-visible .hero-service-node,
.hero-service-hotspot.active .hero-service-node {
  transform: scale(1.04);
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.45),
    0 0 0 6px rgba(255, 255, 255, 0.12);
}

/* Tarjetas móvil */
.hero-service-cards-mobile {
  display: none;
}

@keyframes cloudsMove {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-2.5%);
  }
}

@keyframes foregroundSway {
  0% {
    transform: translateX(0) rotate(0deg);
  }
  100% {
    transform: translateX(5px) rotate(0.28deg);
  }
}

@keyframes heroParticleFloat {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.32;
  }
  50% {
    transform: translate(6px, -5px) scale(1.03);
    opacity: 0.42;
  }
  100% {
    transform: translate(3px, -2px) scale(1.01);
    opacity: 0.36;
  }
}

@keyframes truckFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes hotspotPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.92;
  }
}

@media (max-width: 900px) {
  .hero-bg-clouds {
    width: 116%;
    left: -8%;
  }

  .hero-bg-road {
    object-position: 52% 52%;
  }

  .hero-foreground-layer .hero-bg-foreground {
    opacity: 0.76;
  }

  .hero-particle {
    opacity: 0.28;
  }
}

@media (max-width: 560px) {
  .hero-bg-clouds {
    object-position: center 18%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-clouds,
  .hero-foreground-layer .hero-bg-foreground,
  .hero-particle {
    animation: none;
  }
}

/* ═══════════════════════════════════════════
   Fase 2 — Formularios, modales y efectos premium
   ═══════════════════════════════════════════ */

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(7, 18, 34, 0.72);
}

.form-field input,
.form-field textarea,
.form-field .select-wrapper select {
  width: 100%;
}

.form-field--checkbox {
  margin-top: 4px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(7, 18, 34, 0.75);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--blue);
  cursor: pointer;
}

.checkbox-label a {
  color: var(--blue);
  font-weight: 700;
}

.form-char-count {
  font-size: 12px;
  color: rgba(7, 18, 34, 0.45);
  text-align: right;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.turnstile-wrap {
  min-height: 0;
  display: flex;
  justify-content: center;
}

.turnstile-wrap:empty {
  display: none;
}

.contact-form input.field-error,
.contact-form textarea.field-error,
.contact-form select.field-error {
  border-color: rgba(220, 53, 69, 0.65);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}

/* Modales */
body.modal-open {
  overflow: hidden;
}

.form-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 32px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.form-modal:not([hidden]) {
  visibility: visible;
}

.form-modal.is-open {
  opacity: 1;
}

.form-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 18, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.form-modal-panel {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: min(90vh, 920px);
  overflow-y: auto;
  padding: clamp(28px, 4vw, 40px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  color: #06101e;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(35, 137, 255, 0.08);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.form-modal.is-open .form-modal-panel {
  transform: translateY(0) scale(1);
}

.form-modal-panel .eyebrow {
  color: var(--blue);
}

.form-modal-panel h2 {
  margin-top: 8px;
  font-size: clamp(24px, 3vw, 32px);
  color: #06101e;
}

.form-modal-lead {
  margin-top: 10px;
  color: rgba(7, 18, 34, 0.68);
  line-height: 1.55;
}

.form-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(7, 18, 34, 0.06);
  color: #06101e;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.form-modal-close:hover {
  background: rgba(7, 18, 34, 0.12);
  transform: scale(1.02);
}

.form-modal-close svg {
  width: 20px;
  height: 20px;
}

/* Scroll reveal — premium */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(3px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity, filter;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Contact channel cards premium hover */
.contact-channel-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact-channel-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}

/* Driver highlights */
.driver-highlights article {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.driver-highlights article:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

/* Services values — hover definido en #servicios .services-value */

/* Hotspot premium microinteractions */
.hero.hero--video .hero-service-hotspot.is-hovered .hero-service-popup,
.hero.hero--video .hero-service-hotspot:hover .hero-service-popup {
  transform: translateY(-2px);
}

.hero.hero--video .hero-service-hotspot.is-hovered .hero-service-line,
.hero.hero--video .hero-service-hotspot:hover .hero-service-line {
  box-shadow: 0 0 8px rgba(35, 137, 255, 0.28);
}

/* Social cards */
.social-platform-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-platform-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

/* FAQ items */
.faq-item {
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item:hover,
.faq-item[open] {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

/* ═══════════════════════════════════════════
   Premium polish — Fase visual
   ═══════════════════════════════════════════ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 100%;
  height: 2px;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, #0c55c8, #2389ff);
  box-shadow: 0 0 6px rgba(35, 137, 255, 0.25);
  pointer-events: none;
}

.cursor-ambient {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    480px circle at var(--cursor-x, 50%) var(--cursor-y, 50%),
    rgba(35, 137, 255, 0.045),
    transparent 65%
  );
  transition: opacity 0.35s ease;
}

body.has-cursor-ambient .cursor-ambient {
  opacity: 1;
}

.back-to-top {
  position: fixed;
  right: var(--float-edge);
  bottom: calc(
    var(--float-edge) + var(--float-wa-size) + var(--float-gap) +
    var(--float-chat-size) + var(--float-gap) + env(safe-area-inset-bottom, 0px)
  );
  z-index: 103;
  width: var(--float-top-size);
  height: var(--float-top-size);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(6, 16, 30, 0.82);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.92);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.25s ease, border-color 0.25s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background: rgba(12, 85, 200, 0.92);
  border-color: rgba(35, 137, 255, 0.5);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

.desktop-nav a.active::after {
  box-shadow: 0 0 8px rgba(35, 137, 255, 0.32);
}

.btn-premium,
.header-cta,
.btn.btn-primary,
.btn.btn-secondary,
[data-open-form] {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, background 0.25s ease, border-color 0.25s ease;
}

.magnetic-btn {
  will-change: transform;
}

.spotlight-card {
  position: relative;
  overflow: hidden;
  --spotlight-x: 50%;
  --spotlight-y: 50%;
  --spotlight-opacity: 0;
}

.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: var(--spotlight-opacity);
  background: radial-gradient(
    320px circle at var(--spotlight-x) var(--spotlight-y),
    rgba(35, 137, 255, 0.08),
    transparent 55%
  );
  transition: opacity 0.35s ease;
}

.spotlight-card > * {
  position: relative;
  z-index: 2;
}

#servicios .service-card-v2 {
  position: relative;
}

#servicios .service-card-v2::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(35, 137, 255, 0.55), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 3;
}

#servicios .service-card-v2:hover::after {
  transform: scaleX(1);
}

#servicios .service-card-v2-icon {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

#servicios .service-card-v2:hover .service-card-v2-icon {
  transform: scale(1.02);
  box-shadow: none;
}

.about-section {
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  background:
    repeating-linear-gradient(
      -12deg,
      transparent 0 18px,
      rgba(12, 85, 200, 0.35) 18px 19px
    ),
    repeating-linear-gradient(
      78deg,
      transparent 0 42px,
      rgba(6, 16, 30, 0.2) 42px 43px
    );
}

.about-list li {
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.contact-card {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}

.hero-ambient-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero.hero--video.show-final-image .hero-ambient-layer {
  opacity: 1;
}

.hero-ambient-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 68% 42%, rgba(35, 137, 255, 0.12), transparent 38%),
    radial-gradient(circle at 82% 58%, rgba(35, 137, 255, 0.08), transparent 32%);
}

.hero-ambient-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(180, 220, 255, 0.55);
  box-shadow: 0 0 10px rgba(35, 137, 255, 0.45);
  animation: heroParticleDrift 8s ease-in-out infinite;
}

.hero-ambient-particle--1 { top: 38%; left: 62%; animation-delay: 0s; }
.hero-ambient-particle--2 { top: 52%; left: 74%; animation-delay: 2.2s; }
.hero-ambient-particle--3 { top: 66%; left: 58%; animation-delay: 4.1s; }

@keyframes heroParticleDrift {
  0%, 100% { transform: translate(0, 0); opacity: 0.35; }
  50% { transform: translate(8px, -12px); opacity: 0.85; }
}

.hero.hero--video.show-final-image .title-line {
  animation: heroTitleReveal 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--hero-title-delay, 0s);
}

.hero.hero--video.show-final-image .title-transports { --hero-title-delay: 0.1s; }
.hero.hero--video.show-final-image .title-amalia { --hero-title-delay: 0.22s; }
.hero.hero--video.show-final-image .title-gonzalez { --hero-title-delay: 0.34s; }

@keyframes heroTitleReveal {
  from {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero.hero--video .hero-service-node {
  animation: hotspotNodePulse 3s ease-in-out infinite;
}

@keyframes hotspotNodePulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(35, 137, 255, 0.08), 0 0 12px rgba(35, 137, 255, 0.22); }
  50% { box-shadow: 0 0 0 7px rgba(35, 137, 255, 0.04), 0 0 16px rgba(35, 137, 255, 0.32); }
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus,
.select-wrapper select:focus {
  border-color: rgba(37, 99, 235, 0.72);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.contact-form button[type="submit"] {
  position: relative;
  overflow: hidden;
}

.contact-form button[type="submit"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.18) 50%, transparent 60%);
  transform: translateX(-130%);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.contact-form button[type="submit"]:hover:not(:disabled)::after {
  transform: translateX(130%);
}

.contact-form button[type="submit"]:hover:not(:disabled) {
  transform: translateY(-1px);
}

.form-feedback:not([hidden]) {
  animation: feedbackIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes feedbackIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.faq-item summary {
  position: relative;
  padding-right: 34px;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--blue-bright);
  border-bottom: 2px solid var(--blue-bright);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item[open] summary::after {
  transform: translateY(-35%) rotate(225deg);
}

.faq-item > p {
  animation: faqReveal 0.35s ease;
}

@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.social-platform-card--instagram:hover {
  box-shadow: 0 16px 40px rgba(225, 48, 108, 0.08);
}

.social-platform-card--tiktok:hover {
  box-shadow: 0 16px 40px rgba(35, 137, 255, 0.08);
}

.social-platform-card--infojobs:hover {
  box-shadow: 0 16px 40px rgba(0, 122, 217, 0.08);
}

.site-footer {
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(35, 137, 255, 0.45), transparent);
}

.footer-nav a,
.footer-contact a,
.footer-social a {
  transition: color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--blue-bright);
  transform: translateX(2px);
}

@media (max-width: 640px) {
  .form-modal-panel {
    max-height: 92vh;
    border-radius: 22px;
    padding: 24px 20px;
  }

  .form-row {
    grid-template-columns: 1fr !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .scroll-progress,
  .cursor-ambient,
  .hero-ambient-layer,
  .hero-ambient-particle,
  .services-ambient::before,
  .services-ambient::after {
    animation: none !important;
  }

  .services-ambient::before {
    opacity: 0.55;
  }

  .services-ambient::after {
    opacity: 0.45;
  }

  .back-to-top {
    transition: none;
  }

  .hero.hero--video.show-final-image .title-line {
    animation: none;
  }

  .hero.hero--video .hero-service-node {
    animation: none;
  }

  .magnetic-btn {
    transform: none !important;
  }

  .form-modal,
  .form-modal-panel,
  .btn,
  .header-cta,
  #servicios .service-card-v2,
  .contact-channel-card,
  .driver-highlights article,
  .social-platform-card {
    transition: none !important;
    animation: none !important;
  }

  .form-modal-panel {
    transform: none;
  }

  #servicios .service-card-v2:hover {
    transform: none;
  }

  .hero.hero--video .hero-service-hotspot.is-hovered .hero-service-popup-icon svg {
    animation: none;
  }
}

/* ═══════════════════════════════════════════════════════
   MÓVIL DEFINITIVO (≤768px) — reglas finales, máxima prioridad
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* 1. Aniquilar UI desktop del hero */
  .hero-desktop-content,
  .hero-desktop-only,
  .hero-desktop-content *,
  .hero-service-hotspots,
  .hero-service-hotspot,
  .hero-service-cards-mobile,
  .hero-scroll-hint,
  .hero-scene,
  .truck-stage,
  .scroll-indicator,
  .hero-layer--legacy,
  .hero-ambient-layer,
  .hero-new-bg,
  .hero-bg-glow {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
  }

  /* 2. Contenedor hero = solo fondo + capa móvil */
  .hero.hero--video {
    position: relative !important;
    min-height: 100svh !important;
    min-height: 100dvh !important;
    height: 100svh;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0;
    isolation: isolate;
  }

  .hero.hero--video::before {
    display: none !important;
  }

  .hero-media-stage {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
  }

  .hero.hero--video .hero-bg-video,
  .hero.hero--video .hero-final-image {
    object-position: 55% center;
    background-position: 55% center;
  }

  .hero-media-overlay {
    z-index: 2 !important;
    pointer-events: none !important;
  }

  /* Degradado legibilidad — solo móvil */
  .hero.hero--video::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 5 !important;
    pointer-events: none !important;
    opacity: 0;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.12) 0%,
      rgba(0, 0, 0, 0.42) 50%,
      rgba(0, 0, 0, 0.94) 100%
    ) !important;
    transition: opacity 0.85s ease;
  }

  .hero.hero--video.show-final-image::after {
    opacity: 1 !important;
  }

  .hero.hero--video.show-final-image .hero-media-overlay {
    background: linear-gradient(
      180deg,
      rgba(7, 20, 38, 0.35) 0%,
      rgba(7, 20, 38, 0.15) 45%,
      rgba(7, 20, 38, 0.95) 100%
    ) !important;
  }

  /* 3. Capa móvil aislada */
  .hero-mobile-content.hero-mobile-only {
    display: flex !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: var(--header-h) !important;
    z-index: 40 !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom)) !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none !important;
    transition: opacity 0.85s ease, visibility 0.85s ease;
  }

  .hero.hero--video.show-final-image .hero-mobile-content.hero-mobile-only {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  /* Anular reglas desktop hero--video sobre hijos móviles */
  .hero-mobile-content.hero-mobile-only,
  .hero-mobile-content.hero-mobile-only * {
    transform: none !important;
    filter: none !important;
  }

  .hero.hero--video.show-final-image .hero-mobile-content.hero-mobile-only,
  .hero.hero--video.show-final-image .hero-mobile-content.hero-mobile-only * {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .hero-mobile-panel {
    position: relative !important;
    z-index: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: min(430px, calc(100vw - 32px)) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding: 16px 14px 14px !important;
    border-radius: 20px !important;
    background: rgba(4, 12, 24, 0.88) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
    pointer-events: auto !important;
  }

  .hero-mobile-kicker {
    margin: 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(147, 197, 253, 0.96);
    overflow-wrap: anywhere;
  }

  .hero-mobile-title {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    font-weight: 950;
    letter-spacing: -0.04em;
    line-height: 0.92;
    color: #fff;
    font-size: clamp(1.9rem, 9.2vw, 2.85rem);
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
    overflow: hidden;
  }

  .hero-mobile-title span {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    transform-origin: left center;
  }

  .hero-mobile-subtitle {
    margin: 0;
    max-width: 32ch;
    font-size: clamp(14px, 3.8vw, 16px);
    font-weight: 600;
    line-height: 1.45;
    color: #fff;
  }

  .hero-mobile-services {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.82);
  }

  .hero-mobile-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 4px !important;
    position: relative !important;
    z-index: 5 !important;
    pointer-events: auto !important;
  }

  .hero-mobile-actions .btn {
    width: 100% !important;
    min-height: 48px !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 6 !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2) !important;
    cursor: pointer !important;
    pointer-events: auto !important;
  }

  .hero-mobile-location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
  }

  .hero-mobile-location svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: rgba(147, 197, 253, 0.95);
  }

  /* 4. Dock flotante móvil */
  body.hero-in-view .whatsapp-float {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .whatsapp-float {
    right: 16px !important;
    left: auto !important;
    bottom: calc(16px + env(safe-area-inset-bottom)) !important;
    width: 52px !important;
    height: 52px !important;
    z-index: 880 !important;
  }

  .chatbot {
    right: 16px !important;
    left: auto !important;
    bottom: calc(16px + 52px + 12px + env(safe-area-inset-bottom)) !important;
    z-index: 890 !important;
  }

  .chatbot-panel {
    z-index: 895 !important;
  }

  .back-to-top {
    position: fixed !important;
    right: 16px !important;
    left: auto !important;
    bottom: calc(16px + 52px + 12px + 48px + 12px + env(safe-area-inset-bottom)) !important;
    width: 42px !important;
    height: 42px !important;
    z-index: 885 !important;
  }

  body.chatbot-open .back-to-top,
  body.assistant-open .back-to-top,
  body.chatbot-open .back-to-top.is-visible,
  body.assistant-open .back-to-top.is-visible {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
  }

  body.modal-open .whatsapp-float,
  body.modal-open .chatbot,
  body.modal-open .back-to-top {
    z-index: 40 !important;
  }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .hero.hero--video::after {
    transition: none !important;
  }

  .hero.hero--video.show-final-image::after,
  .hero.hero--video.show-final-image .hero-mobile-content.hero-mobile-only {
    opacity: 1 !important;
    visibility: visible !important;
    transition: none !important;
  }
}

/* ═══════════════════════════════════════════
   Páginas legales
   ═══════════════════════════════════════════ */

.legal-page {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
  color: #06101e;
  font-family: var(--font-main, Inter, system-ui, sans-serif);
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(20px, 4vw, 48px);
  background: rgba(6, 16, 30, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}

.legal-header-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 4px;
}

.legal-header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 14px;
}

.legal-header-nav a {
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s ease;
}

.legal-header-nav a:hover {
  color: #fff;
}

.legal-main {
  padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 48px) clamp(48px, 6vw, 72px);
}

.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 40px);
  background: #fff;
  border: 1px solid rgba(7, 18, 34, 0.08);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(4, 18, 36, 0.06);
  line-height: 1.65;
}

.legal-content h1 {
  margin: 0 0 20px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.legal-content h2 {
  margin: 32px 0 12px;
  font-size: clamp(20px, 2.5vw, 24px);
  line-height: 1.25;
}

.legal-content h3 {
  margin: 20px 0 10px;
  font-size: 17px;
}

.legal-content p,
.legal-content li {
  font-size: 15px;
  color: rgba(7, 18, 34, 0.86);
}

.legal-content ul {
  margin: 10px 0 16px;
  padding-left: 22px;
}

.legal-content a {
  color: var(--blue, #0c55c8);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-updated {
  margin: 0 0 12px;
  font-size: 13px;
  color: rgba(7, 18, 34, 0.55);
}

.legal-note-muted {
  margin-top: 40px;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.5;
}

.legal-pending {
  color: #64748b;
  background: rgba(148, 163, 184, 0.12);
  border-radius: 6px;
  padding: 1px 6px;
  font-weight: 600;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 16px 0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.legal-table th,
.legal-table td {
  padding: 12px 14px;
  border: 1px solid rgba(7, 18, 34, 0.1);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: rgba(7, 18, 34, 0.04);
  font-weight: 700;
}

.legal-footer {
  padding: 24px clamp(20px, 4vw, 48px) 32px;
  background: #06101e;
  color: rgba(255, 255, 255, 0.62);
}

.legal-footer-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}

.legal-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.legal-footer-nav a {
  color: rgba(255, 255, 255, 0.72);
}

.legal-footer-nav a[aria-current="page"] {
  color: #fff;
}

@media (max-width: 640px) {
  .legal-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-header-brand span {
    font-size: 14px;
  }

  .legal-content {
    padding: 22px 18px;
    border-radius: 18px;
  }
}

/* ═══════════════════════════════════════════════════════
   OVERRIDE MÓVIL FINAL (≤768px) — última palabra en cascada
   Gana sobre bloque “MÓVIL DEFINITIVO” y reglas globales
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero-mobile-content,
  .hero-mobile-panel {
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }

  .hero-mobile-content {
    overflow: hidden !important;
  }

  .hero-mobile-panel {
    width: calc(100vw - 32px) !important;
    max-width: 420px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    overflow: hidden !important;
    align-items: stretch !important;
    isolation: isolate !important;
  }

  .hero-mobile-title {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    font-size: clamp(1.65rem, 8.4vw, 2.75rem) !important;
    line-height: 0.94 !important;
    letter-spacing: -0.035em !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .hero-mobile-title span {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: clip !important;
  }

  #backToTop.back-to-top,
  button.back-to-top {
    position: fixed !important;
    right: 16px !important;
    left: auto !important;
    inset-inline-end: 16px !important;
    inset-inline-start: auto !important;
    bottom: calc(16px + 52px + 12px + 48px + 12px + env(safe-area-inset-bottom, 0px)) !important;
    top: auto !important;
    width: 42px !important;
    height: 42px !important;
    z-index: 885 !important;
    margin: 0 !important;
    transform: translate3d(0, 0, 0) !important;
  }

  #backToTop.back-to-top.is-visible,
  button.back-to-top.is-visible {
    right: 16px !important;
    left: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate3d(0, 0, 0) !important;
  }

  body.chatbot-open #backToTop.back-to-top,
  body.assistant-open #backToTop.back-to-top,
  body.chatbot-open #backToTop.back-to-top.is-visible,
  body.assistant-open #backToTop.back-to-top.is-visible {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
  }
}

/* ═══════════════════════════════════════════════════════
   COLOR GRADING + ESCALADO GLOBAL (final)
   Sustituye el bloque anterior de “pulido visual”
   ═══════════════════════════════════════════════════════ */
:root {
  --site-color-filter: saturate(1.28) brightness(1.08) contrast(1.01);
  --site-color-filter-soft: saturate(1.18) brightness(1.04) contrast(1.01);
  --section-pad-x: clamp(16px, 4.5vw, 92px);
  --container-max: 1100px;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  width: 100%;
}

main {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

/* ── Color grading: solo capas visuales / fotos, nunca UI ni textos ── */
.hero-bg-video,
.hero-final-image,
.about-media img,
.fleet-card-media img,
.fleet-card-media--photo img,
.fleet-card-media--truck img,
#servicios .service-card-v2-media img {
  filter: var(--site-color-filter);
}

.hero-new-bg,
.biomass-field,
.hero-bg-glow,
.services-ambient::before,
.services-ambient::after {
  filter: var(--site-color-filter-soft);
}

.brand-logo,
.footer-brand-logo,
.legal-header-brand img,
img[src*="logo"],
.contact-form,
.form-modal,
.form-modal-panel,
.contact-card,
svg,
.lucide,
[data-lucide] {
  filter: none !important;
}

/* Camión: combinar grading con sombras existentes */
.truck-img {
  filter:
    var(--site-color-filter)
    drop-shadow(0 28px 36px rgba(0, 0, 0, 0.48))
    drop-shadow(0 0 16px rgba(35, 137, 255, 0.08));
}

.truck-stage:hover .truck-img,
.truck-stage.is-running .truck-img {
  filter:
    var(--site-color-filter)
    drop-shadow(0 32px 42px rgba(0, 0, 0, 0.52))
    drop-shadow(0 0 30px rgba(35, 137, 255, 0.28))
    brightness(1.04)
    contrast(1.02);
}

/* ── Contenedores fluidos sin desbordar ── */
.content-section,
.contact-section,
.site-footer {
  padding-left: var(--section-pad-x);
  padding-right: var(--section-pad-x);
}

.section-inner,
.footer-inner,
.contact-layout,
#servicios .services-inner {
  width: min(100%, var(--container-max));
  max-width: var(--container-max);
  margin-inline: auto;
}

.cards-grid,
.services-grid,
.fleet-grid,
.about-grid,
.contact-channels,
.social-platforms,
#servicios .services-cards {
  width: 100%;
  min-width: 0;
}

.service-card,
.fleet-card,
#servicios .service-card-v2,
.driver-highlights article,
.contact-channel-card {
  min-width: 0;
}

.contact-card {
  width: min(100%, 780px);
}

/* ── Escalado proporcional: header ── */
.site-header {
  padding-left: clamp(14px, 3.2vw, 58px);
  padding-right: clamp(14px, 3.2vw, 58px);
}

.brand {
  min-width: 0;
  max-width: min(100%, 280px);
}

.brand-logo {
  width: clamp(48px, 3.6vw, 58px);
  height: clamp(48px, 3.6vw, 58px);
  flex-shrink: 0;
}

.brand-text {
  font-size: clamp(13px, 0.55vw + 12px, 20px);
  min-width: 0;
}

.brand-text strong {
  font-size: clamp(15px, 0.65vw + 13px, 22px);
}

.desktop-nav {
  min-width: 0;
  max-width: min(620px, 48vw);
  gap: clamp(12px, 1.6vw, 48px);
  padding: clamp(12px, 1.2vw, 18px) clamp(16px, 2vw, 40px);
}

.desktop-nav a {
  font-size: clamp(13px, 0.45vw + 12px, 15px);
  white-space: nowrap;
}

.header-cta {
  padding: clamp(12px, 1vw, 17px) clamp(16px, 1.6vw, 28px);
  font-size: clamp(13px, 0.4vw + 12px, 14px);
  flex-shrink: 0;
}

/* ── Escalado proporcional: títulos de sección ── */
.content-section h2,
.contact-section-header h2,
.contact-card h2,
.driver-section h2,
#servicios .services-title {
  font-size: clamp(28px, calc(0.9vw + 1.65rem), 56px);
  max-width: min(820px, 100%);
  overflow-wrap: anywhere;
}

.content-section p,
.contact-card p,
.section-lead,
#servicios .services-intro-right p {
  font-size: clamp(15px, calc(0.25vw + 14px), 17px);
  max-width: min(690px, 100%);
}

/* ── Escalado proporcional: hero desktop (≥769px) ── */
@media (min-width: 769px) {
  .hero.hero--video .title-transports,
  .title-transports {
    font-size: clamp(68px, calc(2.8vw + 2.5rem), 148px);
  }

  .hero.hero--video .title-amalia,
  .title-amalia {
    font-size: clamp(52px, calc(2vw + 2rem), 112px);
  }

  .hero.hero--video .title-gonzalez,
  .title-gonzalez {
    font-size: clamp(54px, calc(2.2vw + 2rem), 116px);
  }

  .hero-title .hero-script-banner span {
    font-size: clamp(22px, calc(0.55vw + 1rem), 38px);
  }

  .hero-tagline strong {
    font-size: clamp(14px, calc(0.35vw + 13px), 17px);
  }

  .hero-tagline {
    font-size: clamp(13px, calc(0.3vw + 12px), 16px);
  }
}

/* Pantallas grandes: techo fijo para que al 100% zoom no explote */
@media (min-width: 1440px) {
  .hero.hero--video .title-transports,
  .title-transports {
    font-size: clamp(96px, 7vw, 148px);
  }

  .hero.hero--video .title-amalia,
  .title-amalia {
    font-size: clamp(72px, 5.2vw, 112px);
  }

  .hero.hero--video .title-gonzalez,
  .title-gonzalez {
    font-size: clamp(74px, 5.5vw, 116px);
  }

  .brand-text strong {
    font-size: 20px;
  }

  .desktop-nav a {
    font-size: 15px;
  }
}

@media (min-width: 1920px) {
  .hero.hero--video .title-transports,
  .title-transports {
    font-size: 148px;
  }

  .hero.hero--video .title-amalia,
  .title-amalia {
    font-size: 112px;
  }

  .hero.hero--video .title-gonzalez,
  .title-gonzalez {
    font-size: 116px;
  }
}

@media (max-width: 1280px) {
  .desktop-nav {
    max-width: min(500px, 46vw);
    gap: clamp(10px, 1.2vw, 20px);
  }
}

@media (max-width: 900px) {
  .site-header.scrolled {
    height: clamp(68px, 10vw, 78px);
  }

  .mobile-menu-button {
    width: clamp(46px, 12vw, 52px);
    height: clamp(46px, 12vw, 52px);
    flex-shrink: 0;
  }

  .content-section,
  .contact-section {
    padding-top: clamp(72px, 14vw, 120px);
    padding-bottom: clamp(72px, 14vw, 120px);
  }

  .content-section h2,
  .contact-section-header h2,
  .contact-card h2,
  .driver-section h2,
  #servicios .services-title {
    font-size: clamp(26px, 6.4vw, 42px);
    letter-spacing: -0.045em;
  }
}

@media (max-width: 480px) {
  :root {
    --section-pad-x: clamp(14px, 4vw, 20px);
  }

  .brand {
    max-width: calc(100% - 60px);
  }

  .hero-actions .btn,
  .hero-mobile-actions .btn,
  .contact-form .btn,
  .form-modal .btn,
  .mobile-cta {
    width: 100%;
    justify-content: center;
  }
}
