/* Homepage-only presentation.
   Global primitives belong in style.css; keep this file limited to the home. */

/* Floating WhatsApp */
#whatsapp-float {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 0.28s ease,
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.28s ease;
}

#whatsapp-float.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

#whatsapp-float .whatsapp-tooltip {
  max-width: 230px;
  padding: 9px 12px;
  border: 1px solid rgba(15, 45, 36, 0.12);
  border-radius: 8px;
  background: rgba(245, 240, 230, 0.97);
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  opacity: 0;
  transform: translateX(5px);
  transition: opacity 0.2s ease, transform 0.24s ease;
  pointer-events: none;
}

#whatsapp-float:hover .whatsapp-tooltip,
#whatsapp-float:focus-within .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

#whatsapp-float .whatsapp-btn {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 54px;
  border: 1px solid rgba(245, 240, 230, 0.3);
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 45, 36, 0.16);
  transition: background-color 0.2s ease, transform 0.22s ease;
}

#whatsapp-float .whatsapp-btn:hover,
#whatsapp-float .whatsapp-btn:focus-visible {
  background: var(--color-secondary);
  color: #fff;
  transform: translateY(-1px);
}

#whatsapp-float .whatsapp-btn svg {
  width: 25px;
  height: 25px;
  display: block;
}

/* Mobile hero hierarchy
   1. What EJE Z does
   2. Direct conversation
   3. Two commercial routes
   4. Proof */
@media (max-width: 600px) {
  #billboard .main-banner {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 68px;
  }

  #billboard .pattern-overlay::before {
    background:
      repeating-linear-gradient(0deg, transparent 0 49px, rgba(15, 45, 36, 0.03) 49px 50px),
      repeating-linear-gradient(90deg, transparent 0 49px, rgba(15, 45, 36, 0.03) 49px 50px);
  }

  #billboard .banner-content {
    --hero-mobile-section-gap: 72px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  #billboard .banner-title {
    order: 1;
    max-width: 340px;
    margin: 18px auto 30px;
    text-align: center;
    font-size: clamp(2rem, 9vw, 2.55rem);
    line-height: 1.12;
  }

  #billboard .banner-title + p {
    order: 2;
    max-width: 338px;
    margin: 0 auto 50px;
    text-align: center;
    font-size: 0.98rem;
    line-height: 1.76;
  }

  #billboard .hero-route-assist {
    order: 3;
    position: relative;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 18px;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 3px;
    align-items: center;
    margin: 0;
    padding: 18px;
    min-height: 88px;
    border: 1px solid rgba(245, 240, 230, 0.12);
    border-radius: 12px;
    background: var(--color-primary);
    color: var(--color-ivory);
    box-shadow: 0 6px 16px rgba(15, 45, 36, 0.08);
    text-align: left;
  }

  #billboard .hero-route-assist::before {
    content: "";
    grid-column: 1;
    grid-row: 1 / 3;
    width: 25px;
    height: 25px;
    align-self: center;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F5F0E6'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E");
  }

  #billboard .hero-route-assist::after {
    content: "→";
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
    justify-self: end;
    color: var(--color-ivory);
    font-size: 1rem;
    line-height: 1;
  }

  #billboard .hero-route-assist > span {
    grid-column: 2;
    grid-row: 1;
    color: rgba(245, 240, 230, 0.68);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.015em;
  }

  #billboard .hero-route-assist a {
    grid-column: 2;
    grid-row: 2;
    width: auto;
    min-height: 0;
    display: inline;
    color: #fff;
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.3;
    text-decoration: none;
  }

  #billboard .hero-route-assist a > span[aria-hidden="true"] {
    display: none;
  }

  #billboard .hero-route-assist a:hover,
  #billboard .hero-route-assist a:focus-visible {
    color: var(--color-ivory-deep);
  }

  #billboard .hero-routes {
    order: 4;
    display: block;
    margin-top: var(--hero-mobile-section-gap);
    border-top: 0;
  }

  #billboard .hero-routes::before {
    content: "O elegí por dónde querés empezar";
    display: block;
    margin-bottom: 34px;
    padding-bottom: 17px;
    border-bottom: 1px solid rgba(15, 45, 36, 0.14);
    color: var(--color-muted);
    font-size: 0.76rem;
    font-weight: 650;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  #billboard .hero-route-card {
    position: relative;
    display: block;
    margin: 0;
    padding: 0 0 42px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(15, 45, 36, 0.14);
    border-radius: 0;
    box-shadow: none;
  }

  #billboard .hero-route-card + .hero-route-card {
    padding-top: 42px;
  }

  #billboard .hero-route-card::before,
  #billboard .hero-route-card::after {
    display: none;
    content: none;
  }

  #billboard .hero-route-card:hover,
  #billboard .hero-route-card:focus-within {
    transform: none;
    border-color: rgba(15, 45, 36, 0.14);
    box-shadow: none;
  }

  #billboard .hero-route-badge {
    display: block;
    max-width: none;
    margin: 0 0 15px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-secondary);
    font-size: 0.66rem;
    font-weight: 650;
    letter-spacing: 0.13em;
  }

  #billboard .hero-route-title {
    max-width: none;
    margin: 0 0 18px;
    font-size: clamp(1.45rem, 6.4vw, 1.68rem);
    line-height: 1.18;
  }

  #billboard .hero-route-desc {
    margin: 0 0 28px;
    max-width: 34rem;
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.72;
  }

  #billboard .hero-route-card .btn-accent,
  #billboard .hero-route-card .btn-outline-accent,
  #billboard .hero-route-card .btn-outline-light {
    width: auto;
    min-height: 44px;
    justify-content: flex-start;
    padding: 8px 0 5px;
    border: 0;
    border-bottom: 1px solid rgba(15, 45, 36, 0.34);
    border-radius: 0;
    background: transparent;
    color: var(--color-primary);
    box-shadow: none;
    font-size: 0.92rem;
    font-weight: 650;
  }

  #billboard .hero-route-card .btn-accent:hover,
  #billboard .hero-route-card .btn-outline-accent:hover,
  #billboard .hero-route-card .btn-outline-light:hover,
  #billboard .hero-route-card .btn-accent:focus-visible,
  #billboard .hero-route-card .btn-outline-accent:focus-visible,
  #billboard .hero-route-card .btn-outline-light:focus-visible {
    background: transparent;
    color: var(--color-secondary);
    border-bottom-color: var(--color-secondary);
    transform: none;
  }

  #billboard .hero-proof {
    order: 5;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    margin: 52px 0 0;
    padding: 0 0 4px;
    gap: 6px 8px;
    border-top: 0;
    font-size: 0.79rem;
    line-height: 1.45;
  }

  #billboard .hero-proof::before {
    display: none;
    content: none;
  }

  #billboard .hero-proof-label {
    width: auto;
    font-size: 0;
  }

  #billboard .hero-proof-label::after {
    content: "Casos reales:";
    color: var(--color-muted);
    font-size: 0.79rem;
    font-weight: 600;
  }

  #billboard .hero-proof ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin: 0;
  }

  #billboard .hero-proof li {
    margin: 0;
  }

  #billboard .hero-proof li:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
    color: rgba(15, 45, 36, 0.36);
  }

  #billboard .hero-proof a {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    font-size: 0.79rem;
  }

  #whatsapp-float {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
  }

  #whatsapp-float .whatsapp-tooltip {
    display: none;
  }

  #whatsapp-float .whatsapp-btn {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  #procedure .timeline-item {
    padding-left: 50px;
    padding-bottom: 34px;
  }

  #procedure .timeline-line,
  #procedure .timeline-marker {
    left: 22px;
  }

  #procedure .timeline-content {
    padding: 25px 20px 23px;
    border-radius: 12px;
    box-shadow: 0 7px 18px rgba(15, 45, 36, 0.055);
  }

  #procedure .timeline-item.visible .timeline-content {
    box-shadow: 0 10px 24px rgba(15, 45, 36, 0.08);
  }

  #procedure .timeline-title {
    font-size: 1.26rem;
  }

  #procedure .timeline-summary {
    font-size: 0.95rem;
    line-height: 1.62;
  }
}

@media (prefers-reduced-motion: reduce) {
  #whatsapp-float,
  #whatsapp-float .whatsapp-btn,
  #whatsapp-float .whatsapp-tooltip {
    transition: none !important;
  }
}
