/* ============================================================
   INDAGO Labs — Responsive CSS
   Mobile-first breakpoints: 480 | 768 | 1024 | 1280
   ============================================================ */

/* ============================================================
   BASE MOBILE (< 480px) — Todo en columna única
   ============================================================ */

/* Layout */
.container {
  padding-inline: 1.25rem;
}

/* ──────────────────────────────────────────────────────────
   NAVBAR
   ────────────────────────────────────────────────────────── */

.navbar__links {
  display: none !important;
}

.navbar__cta {
  display: none !important;
}

.navbar__actions .lang-toggle {
  display: none !important;
}

.navbar__hamburger {
  display: flex !important;
}

.navbar__logo img {
  height: 32px;
}

/* Mobile menu — botón de idioma visible dentro del panel */
.mobile-menu .lang-toggle {
  display: flex;
}

/* ──────────────────────────────────────────────────────────
   HERO
   ────────────────────────────────────────────────────────── */

.hero {
  min-height: 100svh;
  padding-top: 80px;
  align-items: flex-start;
  padding-bottom: 3rem;
}

.hero__video {
  display: block;
}

.hero__content {
  text-align: center;
  padding-inline: 0;
}

.hero__overline {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
}

.hero__title {
  font-size: clamp(2rem, 9vw, 2.8rem);
}

.hero__subtitle {
  font-size: 0.95rem;
}

.hero__actions {
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
}

.hero__actions .btn {
  width: 100%;
  max-width: 320px;
  justify-content: center;
}

.hero__trust {
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero__scroll-indicator {
  display: none;
}

/* ──────────────────────────────────────────────────────────
   TRUST BAR
   ────────────────────────────────────────────────────────── */

.trust-bar__logos {
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-bar__logo {
  height: 28px;
  font-size: 0.75rem;
}

/* ──────────────────────────────────────────────────────────
   STATS
   ────────────────────────────────────────────────────────── */

.stats-grid {
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1rem;
}

.stat-item {
  padding: 1.5rem 1rem;
}

.stat-item__number {
  font-size: clamp(2rem, 8vw, 2.5rem);
}

/* ──────────────────────────────────────────────────────────
   SERVICIOS
   ────────────────────────────────────────────────────────── */

.services-tabs {
  display: none;
}

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

.card-service {
  padding: 1.5rem 1.25rem 1.25rem 1.75rem;
}

/* ──────────────────────────────────────────────────────────
   SOBRE NOSOTROS
   ────────────────────────────────────────────────────────── */

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

.about-split__visual {
  order: -1;
  border-radius: 8px;
  max-height: 280px;
  overflow: hidden;
}

.about-split__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.about-values {
  flex-wrap: wrap;
  gap: 0.5rem;
}

.team-grid {
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.team-card {
  padding: 1.25rem 1rem;
}

.team-card__photo {
  width: 70px;
  height: 70px;
}

.team-card__name {
  font-size: 0.875rem;
}

/* ──────────────────────────────────────────────────────────
   DIFERENCIADORES
   ────────────────────────────────────────────────────────── */

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

/* ──────────────────────────────────────────────────────────
   METODOLOGÍA
   ────────────────────────────────────────────────────────── */

.timeline-wrapper {
  overflow-x: visible;
  padding-bottom: 0;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: auto;
  width: 100%;
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  /* Línea vertical en mobile */
  content: '';
  position: absolute;
  left: 0.625rem;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 3px;
  background: var(--border-light);
}

.timeline__progress {
  /* Reemplazar línea horizontal por vertical */
  display: none;
}

.timeline__item {
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  padding: 0 0 2rem 0;
  min-width: auto;
  max-width: 100%;
  text-align: left;
  position: relative;
}

.timeline__item::before {
  /* Punto de conexión vertical */
  content: '';
  position: absolute;
  left: -1.875rem;
  top: 0.625rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-medium);
  transition: background 0.3s ease;
  z-index: 1;
}

.timeline__item.revealed::before {
  background: var(--blue-signature);
}

.timeline__number {
  font-size: 1.5rem;
  min-width: 2rem;
  flex-shrink: 0;
}

.timeline__content {
  flex: 1;
}

.timeline__name {
  font-size: 0.9rem;
}

.timeline__desc {
  font-size: 0.8rem;
}

/* ──────────────────────────────────────────────────────────
   TECNOLOGÍAS
   ────────────────────────────────────────────────────────── */

.tech-grid {
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.cert-logos {
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cert-badge {
  padding: 0.5rem 0.75rem;
  font-size: 0.7rem;
}

/* ──────────────────────────────────────────────────────────
   CASOS DE ÉXITO
   ────────────────────────────────────────────────────────── */

.cases-carousel {
  margin-inline: -1.25rem;
  padding-inline: 1.25rem;
}

.cases-track {
  gap: 1rem;
}

.card-case {
  min-width: 85vw;
  max-width: 85vw;
}

.carousel-controls {
  gap: 0.75rem;
}

/* ──────────────────────────────────────────────────────────
   INSIGHTS
   ────────────────────────────────────────────────────────── */

.insights-grid {
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.card-insight {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
}

.card-insight__image {
  height: 100%;
  min-height: 100px;
  border-radius: 6px 0 0 6px;
}

/* ──────────────────────────────────────────────────────────
   TESTIMONIOS
   ────────────────────────────────────────────────────────── */

.testimonials-grid {
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

/* ──────────────────────────────────────────────────────────
   CONTACTO
   ────────────────────────────────────────────────────────── */

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

.contact-info {
  order: -1;
}

.urgency-panel {
  padding: 1.25rem;
}

/* ──────────────────────────────────────────────────────────
   FOOTER
   ────────────────────────────────────────────────────────── */

.footer__grid {
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer__brand {
  max-width: 100%;
}

.footer__bottom {
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

.footer__bottom-links {
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ──────────────────────────────────────────────────────────
   SECCIÓN HEADERS — Centrado en mobile
   ────────────────────────────────────────────────────────── */

.section-header {
  text-align: center;
}

.section-header .section-title,
.section-header .section-intro {
  text-align: center;
}

.section-header .section-title::after {
  margin-inline: auto;
}

/* ──────────────────────────────────────────────────────────
   BOTONES — Ajuste mobile
   ────────────────────────────────────────────────────────── */

.btn--lg {
  padding: 0.875rem 1.75rem;
  font-size: 0.95rem;
}


/* ============================================================
   BREAKPOINT: 480px — Small phones / landscape
   ============================================================ */
@media (min-width: 480px) {

  .hero__title {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
  }

  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero__actions .btn {
    width: auto;
    max-width: none;
  }

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

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

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

  .card-insight {
    display: block;
  }

  .card-insight__image {
    border-radius: 6px 6px 0 0;
  }

  .cases-track {
    gap: 1.25rem;
  }

  .card-case {
    min-width: 78vw;
    max-width: 78vw;
  }

}


/* ============================================================
   BREAKPOINT: 768px — Tablets
   ============================================================ */
@media (min-width: 768px) {

  /* Navbar */
  .navbar__hamburger {
    display: none !important;
  }

  .navbar__links {
    display: flex !important;
  }

  .navbar__cta {
    display: flex !important;
  }

  .navbar__actions .lang-toggle {
    display: flex !important;
  }

  .navbar__logo img {
    height: 36px;
  }

  /* Hero */
  .hero {
    min-height: 100vh;
    padding-top: 100px;
    align-items: center;
    padding-bottom: 5rem;
  }

  .hero__video {
    display: block;
  }

  .hero__content {
    text-align: left;
    max-width: 680px;
  }

  .hero__actions {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .hero__actions .btn {
    width: auto;
  }

  .hero__trust {
    justify-content: flex-start;
  }

  .hero__scroll-indicator {
    display: flex;
  }

  /* Trust Bar */
  .trust-bar__logos {
    flex-wrap: nowrap;
    gap: 2.5rem;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Services */
  .services-tabs {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

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

  /* About */
  .about-split {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .about-split__visual {
    order: 0;
    max-height: none;
  }

  /* Diferenciadores */
  .diff-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Timeline — sigue vertical en tablet */
  .timeline {
    flex-direction: column;
  }

  /* Tech */
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Cases */
  .card-case {
    min-width: 52vw;
    max-width: 52vw;
  }

  /* Insights */
  .insights-grid {
    grid-template-columns: 1fr 1fr;
  }

  .card-insight {
    display: flex;
    flex-direction: column;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Contact */
  .contact-info {
    order: 0;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer__bottom {
    flex-direction: row;
    text-align: left;
  }

  .footer__bottom-links {
    justify-content: flex-end;
  }

  /* Section headers */
  .section-header {
    text-align: left;
  }

  .section-header .section-title,
  .section-header .section-intro {
    text-align: left;
  }

  .section-header .section-title::after {
    margin-inline: 0;
  }

}


/* ============================================================
   BREAKPOINT: 1024px — Laptops / Small desktops
   ============================================================ */
@media (min-width: 1024px) {

  .navbar__menu {
    gap: 2rem;
  }

  /* Hero */
  .hero__content {
    max-width: 780px;
  }

  /* Services */
  .services-tabs {
    overflow-x: visible;
  }

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

  /* About */
  .about-split {
    grid-template-columns: 55% 45%;
    gap: 4rem;
  }

  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Timeline — horizontal en desktop */
  .timeline-wrapper {
    overflow-x: auto;
    padding-bottom: 1rem;
  }

  .timeline {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    min-width: 900px;
    padding-left: 0;
  }

  .timeline::before {
    display: none;
  }

  .timeline__progress {
    display: block;
  }

  .timeline__item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0;
    flex: 1;
    gap: 0;
  }

  .timeline__item::before {
    display: none;
  }

  .timeline__number {
    font-size: 2rem;
    min-width: auto;
    margin-bottom: 0.75rem;
  }

  .timeline__content {
    text-align: center;
    padding-inline: 1rem;
  }

  .timeline__name {
    font-size: 1rem;
  }

  .timeline__desc {
    font-size: 0.875rem;
  }

  /* Tech */
  .tech-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Cases */
  .card-case {
    min-width: 380px;
    max-width: 380px;
  }

  /* Insights */
  .insights-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
  }

}


/* ============================================================
   BREAKPOINT: 1280px — Wide desktops
   ============================================================ */
@media (min-width: 1280px) {

  .navbar__menu {
    gap: 2.5rem;
  }

  .hero__content {
    max-width: 860px;
  }

  .about-split {
    gap: 6rem;
  }

  .contact-grid {
    gap: 7rem;
  }

  .footer__grid {
    gap: 4rem;
  }

  .services-grid {
    gap: 1.5rem;
  }

  .diff-grid {
    gap: 1.5rem;
  }

}


/* ============================================================
   BREAKPOINT: 1440px+ — Ultra-wide
   ============================================================ */
@media (min-width: 1440px) {
  :root {
    --section-padding: 8rem;
  }
}


/* ============================================================
   UTILS RESPONSIVOS
   ============================================================ */

/* Ocultar/mostrar por breakpoint */
.hide-mobile {
  display: none !important;
}

@media (min-width: 768px) {
  .hide-mobile {
    display: revert !important;
  }
  .hide-desktop {
    display: none !important;
  }
}

/* Centrar texto en mobile, alinear izquierda en desktop */
.text-center-mobile {
  text-align: center;
}

@media (min-width: 768px) {
  .text-center-mobile {
    text-align: left;
  }
}

/* Stack en mobile, fila en desktop */
.flex-col-mobile {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .flex-col-mobile {
    flex-direction: row;
  }
}


/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .navbar,
  .hero__video,
  .hero__overlay,
  .hero__scroll-indicator,
  #scroll-progress,
  .carousel-controls,
  .services-tabs,
  .footer__social,
  .mobile-menu {
    display: none !important;
  }

  body {
    font-size: 11pt;
    color: #000;
    background: #fff;
  }

  .hero {
    min-height: auto;
    background: #001233;
    page-break-after: always;
  }

  .card-service,
  .card-diff {
    break-inside: avoid;
  }
}
