/* ==========================================================================
   GALICOVE - RESPONSIVE & MOBILE-FIRST OPTIMIZATIONS
   Designed strictly with Mobile-First ergonomics (one-handed thumb navigation)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Mobile Navigation Drawer (Fullscreen / Ergonomic)
   -------------------------------------------------------------------------- */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height for modern mobile browsers */
  background: rgba(7, 19, 36, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5.5rem 1.75rem 2.5rem;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  overflow-y: auto;
}

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

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  padding: 0.65rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 48px;
}

.mobile-nav-link span.arrow {
  color: var(--color-brand-sky);
  font-size: 1rem;
}

.mobile-nav-link:active {
  color: var(--color-brand-sky);
}

.mobile-drawer-footer {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-drawer-contact {
  font-size: 0.85rem;
  color: #94A3B8;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mobile-drawer-contact a {
  color: #FFFFFF;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Media Queries: Navigation Breakpoint (<= 1024px)
   Tablets and mobile screens use the comfortable, ergonomic drawer
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav-menu,
  .nav-actions .btn {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }
}

/* --------------------------------------------------------------------------
   Media Queries: Mobile (<= 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Hero */
  .hero {
    min-height: calc(100vh - 60px);
    padding-top: calc(var(--header-height) + 1.5rem);
    padding-bottom: 2.5rem;
  }

  .hero-brand-combo {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hero-symbol-img {
    height: 76px;
    max-width: 95px;
  }

  .hero-tagline {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.65rem;
    font-size: 1.05rem;
  }

  .tagline-dot {
    color: var(--color-brand-sky);
    font-weight: 700;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

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

  /* Grids Stack */
  .intro-grid,
  .products-grid,
  .about-grid,
  .nosotros-concept-grid,
  .construction-service-photos-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .lifecycle-steps {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .services-pill-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

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

  .values-strip-text {
    flex-direction: column;
    gap: 0.5rem;
  }

  .values-strip-text span.val-dot {
    display: none;
  }

  /* Hospitality Flow Stack */
  .hospitality-flow {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .flow-arrow {
    transform: rotate(90deg);
    margin: 0.2rem 0;
  }

  /* Before / After Slider */
  .ba-slider {
    height: 320px;
  }

  .ba-image {
    padding: 1.25rem 1rem;
  }

  .ba-label {
    bottom: 0.85rem;
    font-size: 0.68rem;
    padding: 0.25rem 0.6rem;
  }

  .ba-handle-button {
    width: 38px;
    height: 38px;
    font-size: 0.85rem;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

/* --------------------------------------------------------------------------
   Media Queries: Tablet (769px to 1024px)
   -------------------------------------------------------------------------- */
@media (min-width: 769px) and (max-width: 1024px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

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

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

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

/* --------------------------------------------------------------------------
   Microinteractions & Accessibility
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Mobile footer: compact layout, hides the numbered navigation column */
@media (max-width: 768px) {
  .site-footer .container {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
  .footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1rem;
    margin-bottom: 1rem;
  }
  .footer-top > div:nth-child(1) {
    grid-column: 1 / -1;
  }
  .footer-desc {
    margin-bottom: 0;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding-bottom: 4.5rem;
  }
  .footer-bottom > div:last-child {
    flex-wrap: wrap;
    gap: 0.4rem 1rem !important;
  }
}

/* Mobile footer: "Encuéntranos" icons in one centered row */
@media (max-width: 768px) {
  .footer-find {
    grid-column: 1 / -1;
    justify-self: center;
    text-align: center;
  }
  .footer-find-grid {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
  }
}
