/* ─── RESET & ROOT ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #ffffff;
  --navy-light: #94a3b8;
  --accent: #5b6ef5;
  --accent2: #7c3aed;
  --grad: linear-gradient(135deg, #5b6ef5, #7c3aed);
  --bg: #000000;
  --bg2: #0f0f0f;
  --text: rgba(255,255,255,0.85);
  --muted: rgba(255,255,255,0.5);
  --border: rgba(255,255,255,0.1);
  --radius: 16px;
  --fs-hero: clamp(2.7rem, 5.5vw, 4.6rem);
  --fs-section: clamp(1.8rem, 3.5vw, 2.8rem);
}

html { scroll-behavior: auto; }

body {
  font-family: 'Inter Tight', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ─── NAVBAR ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12%;
  height: 90px;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 29px;
  letter-spacing: -0.02em;
  color: var(--navy); text-decoration: none;
}

.nav-logo img { width: 36px; height: 36px; object-fit: contain; }

.nav-logo svg { width: 36px; height: 36px; }

.nav-links {
  display: flex; align-items: center; gap: 2rem; list-style: none;
}

.nav-links a {
  text-decoration: none; color: var(--text); font-size: 1rem;
  font-weight: 500; transition: color .2s;
}

.nav-links a:hover { color: var(--accent); }

.btn-cta {
  background: var(--grad); color: #fff; border: none; border-radius: 50px;
  padding: 0.75rem 1.7rem; font-size: 1rem; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  text-decoration: none; transition: transform .2s, box-shadow .2s;
  font-family: 'Inter Tight', sans-serif;
}

.btn-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(91,110,245,.35); }

.btn-cta-lg { padding: 1rem 2.2rem; font-size: 1.15rem; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 3rem;
  padding: 180px 5% 0;
  position: relative;
  overflow: hidden;
  background: #000;
  text-align: center;
}

#colorBendsHero {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  max-width: 800px;
  width: 100%;
}

.hero-badge {
  display: inline-flex; align-items: center;
  border: 1.5px solid rgba(255,255,255,0.25); border-radius: 50px;
  padding: 0.4rem 1rem; font-size: 0.8rem; color: rgba(255,255,255,0.8);
  margin-bottom: 1.6rem; background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
}

.hero h1 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 80px;            /* igual que la primera */
  font-weight: 600;           /* clave ↓ */
  line-height: 1.1;
  letter-spacing: -0.02em;    /* ajuste fino */
  margin-bottom: 1.2rem;
  color: #F7F9FC;             /* mismo tono que la otra */
}

.hero p {
  color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 560px;
  line-height: 1.7; margin-bottom: 2rem;
}

/* ─── HERO → SOLUCIONES TRANSITION ─── */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 380px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%,
      rgba(27, 139, 238, 0.123) 0%,
      rgba(2, 36, 88, 0.274) 40%,
      transparent 70%),
    linear-gradient(to bottom, transparent 0%, #0f0f0f 88%);
  pointer-events: none;
  z-index: 3;
}

/* ─── HERO CAROUSEL ─── */
.hero-carousel-wrap {
  width: 100%;
  max-width: 1200px;
  position: relative;
  padding: 0;
  z-index: 1;
}

.hero-carousel-track {
  position: relative; height: 1000px;
}

.hero-slide {
  position: absolute; top: 0; left: 0; right: 0;
  transition: transform 0.7s cubic-bezier(.4,0,.2,1), opacity 0.7s ease;
  transform-origin: center bottom;
  height: 100%;
}

.hero-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
#slide1 img { transform: scale(0.82); transform-origin: center center; }

.hero-slide.active { opacity: 1; transform: scale(1); z-index: 2; }
.hero-slide.exit { opacity: 0; transform: scale(0.78); z-index: 1; }
.hero-slide.next { opacity: 0; transform: scale(1.04); z-index: 0; }

.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 1px solid var(--border);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  z-index: 5; transition: box-shadow .2s;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}

.carousel-btn:hover { box-shadow: 0 8px 24px rgba(0,0,0,.16); }
.carousel-btn.prev { left: 0; }
.carousel-btn.next-btn { right: 0; }

/* ─── HERO FEATURE BADGES ─── */
.hero-feature-badge {
  position: absolute;
  background: rgba(0,0,0,0.9);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  padding: 0.85rem 1.1rem;
  display: flex; align-items: center; gap: 0.85rem;
  z-index: 10; pointer-events: none;
  border: 1px solid var(--border);
  width: 215px;
}

.badge-left { left: -230px; top: 44%; transform: translateY(-50%); }
.badge-right { right: -230px; top: 60%; transform: translateY(-50%); }

.badge-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--bg2); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}

.badge-icon svg {
  width: 22px; height: 22px;
  stroke: var(--accent); fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

.badge-text-title {
  font-family: 'Inter Tight', sans-serif; font-weight: 700;
  font-size: 0.8rem; color: var(--navy); line-height: 1.3;
}

.badge-text-sub { font-size: 0.72rem; color: var(--muted); margin-top: 0.15rem; }

/* ─── LOGOS MARQUEE ─── */
.logos-section {
  padding: 4rem 5%;
  background: var(--bg2);
  overflow: hidden;
  position: relative;
}

/* ─── LOGOS TOP TRANSITION ─── */


.logos-title {
  text-align: center; color: var(--muted); font-size: 1rem;
  margin-bottom: 2.5rem;
}

.marquee-wrap {
  overflow: hidden;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 18%, black 82%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 18%, black 82%, transparent 100%);
}

.marquee-track {
  display: flex; align-items: center; gap: 4rem;
  width: max-content;
  animation: marquee 26s linear infinite;
}

.logo-item {
  height: 80px; display: flex; align-items: center;
  flex-shrink: 0;
}

.logo-item img { height: 100%; max-width: 180px; object-fit: contain; opacity: 0.75; filter: grayscale(30%); transition: opacity .3s, filter .3s; }
.logo-item img:hover { opacity: 0.85; filter: grayscale(0%); }

.logo-text {
  font-family: 'Inter Tight', sans-serif; font-weight: 700;
  font-size: 1.1rem; color: var(--navy-light); white-space: nowrap;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── SOLUCIONES ─── */
.soluciones {
  background: var(--bg2); padding: 6rem 5%;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.section-title {
  font-family: 'Inter Tight', sans-serif; font-weight: 800;
  font-size: var(--fs-section); color: var(--navy);
  max-width: 700px; margin: 0 auto 1rem;
  line-height: 1.2;
}

.section-sub {
  color: var(--muted); font-size: 0.95rem; max-width: 520px;
  margin: 0 auto 3.5rem; line-height: 1.7;
}

.sol-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.2rem;
  max-width: 1100px; margin: 0 auto;
  text-align: left;
}


.sol-card {
  background: #111111; border-radius: var(--radius);
  padding: 1.4rem 2rem; border: 1px solid var(--border);
  transition: box-shadow .25s, transform .25s;
}

.sol-card:hover {
  box-shadow: 0 16px 48px rgba(91,110,245,.25);
  transform: translateY(-3px);
}

.sol-icon {
  font-size: 1.6rem; margin-bottom: 1rem;
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: var(--bg2); border-radius: 12px;
}

.sol-icon svg {
  width: 24px; height: 24px;
  stroke: var(--accent); fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

.sol-card h3 {
  font-family: 'Inter Tight', sans-serif; font-weight: 700;
  font-size: 1.1rem; color: var(--navy); margin-bottom: 0.5rem;
}

.sol-card p { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }

/* Center image card */
.sol-image {
  grid-column: 2; grid-row: 1 / span 2;
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; min-height: 340px;
  background: #111111; border: 1px solid var(--border);
}

.sol-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: var(--radius);
}

/* ─── PROYECTOS ─── */
.proyectos {
  padding: 5rem 5% 6rem;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  overflow: clip;
}

.proj-layout {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  align-items: center;
  gap: 3rem;
  width: 100%;
  min-height: 480px;
}

.proj-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
  text-align: center;
}

.proj-section-title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--navy);
  text-align: center;
  width: 100%;
  line-height: 1.2;
  margin-bottom: 0;
}

.proj-detail {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  opacity: 1;
  transition: opacity 0.3s ease;
  align-self: flex-end;
  margin-left: auto;
  margin-right: -2rem;
  text-align: left;
  width: 384px;
  min-height: 192px;
  flex-shrink: 0;
}

.proj-detail.fading { opacity: 0; }

.proj-detail-tag {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--accent);
  text-transform: uppercase;
}

.proj-detail-title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--navy);
  line-height: 1.25;
  text-align: left;
}

.proj-detail-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 384px;
  text-align: left;
}

.proj-detail-dots {
  display: flex;
  gap: 7px;
  margin-top: 0.5rem;
  justify-content: flex-start;
}

.proj-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.35s, transform 0.35s;
}

.proj-dot.active {
  background: var(--accent);
  transform: scale(1.5);
}

/* Stack column */
.proj-stack-wrap {
  position: relative;
  height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.cardswap-container {
  position: relative;
  width: 100%;
  max-width: 780px;
  height: 440px;
  perspective: 900px;
  overflow: visible;
}

.cardswap-container .project-card {
  position: absolute;
  top: 50%; left: 50%;
  width: 780px; height: 440px;
  border-radius: 16px;
  overflow: hidden;
  background: #111111;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.project-card-img {
  width: 100%; height: 100%; object-fit: contain;
  display: block;
}

@media (max-width: 960px) {
  .proj-layout { grid-template-columns: 1fr; gap: 2.5rem; min-height: auto; }
  .proj-section-title { white-space: normal; }
  .proj-stack-wrap { height: 290px; justify-content: center; align-items: center; margin-top: 2rem; }
  .cardswap-container,
  .cardswap-container .project-card { width: 384px; height: 216px; }
  .proj-detail {
    margin-left: 0;
    margin-right: 0;
    width: auto;
    max-width: 100%;
    min-height: auto;
    text-align: center;
    align-self: center;
  }
  .proj-detail-title,
  .proj-detail-desc { text-align: center; }
  .proj-detail-dots { justify-content: center; }
}

/* ─── CÓMO TRABAJAMOS ─── */
.como {
  background: var(--bg2); padding: 6rem 5%;
  text-align: center;
}

/* Stepper layout */
.steps-timeline {
  display: flex; flex-direction: column; align-items: center;
  max-width: 680px; margin: 3.5rem auto 0;
  position: relative;
}

/* The background track line */
.steps-timeline::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 3px;
  background: var(--border);
  transform: translateX(-50%);
  border-radius: 2px;
  z-index: 0;
}

/* The animated progress line (clipped via JS custom property) */
.steps-timeline::after {
  content: '';
  position: absolute;
  left: 50%; top: 0;
  width: 3px;
  height: var(--progress, 0%);
  background: var(--grad);
  transform: translateX(-50%);
  border-radius: 2px;
  z-index: 1;
  transition: height 0.1s linear;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  width: 100%;
  padding: 0 0 3.5rem;
  position: relative;
  z-index: 2;
}

/* Alternate sides */
.step-item:nth-child(odd) { flex-direction: row; }
.step-item:nth-child(even) { flex-direction: row-reverse; }

.step-item:last-child { padding-bottom: 0; }

.step-connector {
  display: flex; flex-direction: column; align-items: center;
  flex-shrink: 0;
  padding-top: 0.5rem;
  min-width: 0;
  width: 48px;
  position: relative;
  z-index: 3;
}

.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: #111111; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
  border: 3px solid var(--bg);
  transition: background .45s ease, color .45s ease, box-shadow .45s ease, transform .45s ease;
}

.step-item.active .step-num {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(91,110,245,.18);
  transform: scale(1.12);
}

.step-card {
  flex: 1; background: #111111;
  border-radius: var(--radius); padding: 1.8rem;
  border: 2px solid var(--border); text-align: left;
  transition: border-color .45s ease, box-shadow .45s ease, transform .45s ease;
  opacity: 0.45;
}

.step-item.active .step-card {
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(91,110,245,.14);
  transform: translateY(-3px);
  opacity: 1;
}

.step-card h3 {
  font-family: 'Inter Tight', sans-serif; font-weight: 700;
  font-size: 1.05rem; color: var(--navy); margin-bottom: 0.4rem;
}

.step-card p { color: var(--muted); font-size: 0.88rem; line-height: 1.65; }

/* ─── CLIENTES ─── */
.clientes { padding: 6rem 5%; text-align: center; }

.metrics {
  display: flex; gap: 4rem; justify-content: center;
  margin: 3rem 0; flex-wrap: wrap;
}

.metric h2 {
  font-family: 'Inter Tight', sans-serif; font-weight: 800;
  font-size: 3rem; color: var(--navy);
}

.metric p { color: var(--muted); font-size: 0.9rem; }

.testimonials-wrap { margin-top: 2rem; }

.proj-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: #111111; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text); cursor: pointer;
  transition: background .2s, border-color .2s;
}
.proj-btn:hover { background: #1a1a1a; border-color: var(--accent); }

.swiper-testimonials { padding: 1rem 0; }

.testimonial-card {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem; background: #111111;
  border: 1px solid var(--border); border-radius: 20px;
  padding: 3rem; min-height: 420px; align-items: center;
  max-width: 1100px; margin: 0 auto;
}

.testimonial-left { text-align: left; }

.quote-mark {
  font-size: 3rem; color: #f59e0b; line-height: 1;
  margin-bottom: 1rem; font-family: Georgia, serif;
}

.testimonial-text {
  color: var(--text); font-size: 0.95rem; line-height: 1.7;
  margin-bottom: 1.5rem;
}

.stars { color: #f59e0b; font-size: 1.2rem; margin-bottom: 1rem; }

.reviewer {
  display: flex; align-items: center; gap: 0.8rem;
  margin-top: 1rem;
}

.reviewer-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1rem;
}

.reviewer-name { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.reviewer-role { font-size: 0.8rem; color: var(--muted); }

.testimonial-video {
  border-radius: 14px; overflow: hidden; background: #000;
  aspect-ratio: 16/9;
  position: relative;
}

.testimonial-video iframe {
  width: 100%; height: 100%; border: none; display: block;
}

.video-placeholder {
  width: 100%; height: 100%;
  background: #111111;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 2rem; color: #fff; text-align: center;
}

/* ─── CONTACTO ─── */
.contacto {
  background: #000;
  padding: 6rem 5%;
  position: relative;
  overflow: hidden;
}

#floatingLinesCTA {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  mix-blend-mode: screen;
}

.contacto-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; max-width: 1000px; margin: 0 auto;
  align-items: center;
  position: relative; z-index: 1;
}

.contacto-left h2 {
  font-family: 'Inter Tight', sans-serif; font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem); color: #fff;
  line-height: 1.15; margin-bottom: 1rem;
}

.contacto-left p { color: rgba(255,255,255,.5); font-size: 0.95rem; line-height: 1.7; }

.contact-form {
  background: #111111; border-radius: 20px;
  padding: 2rem; display: flex; flex-direction: column; gap: 1rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-size: 0.8rem; color: rgba(255,255,255,.6); font-weight: 500;
}

.form-group input, .form-group textarea {
  background: #1a1a1a; border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; padding: 0.8rem 1rem;
  color: rgba(255,255,255,.85); font-size: 0.9rem;
  font-family: 'Inter Tight', sans-serif;
  outline: none; transition: border-color .2s;
  resize: none;
}

.form-group input::placeholder, .form-group textarea::placeholder {
  color: rgba(255,255,255,.25);
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent);
}

.form-group textarea { min-height: 110px; }

.btn-submit {
  background: #1a1a1a; color: rgba(255,255,255,.7);
  border: none; border-radius: 10px;
  padding: 0.9rem; font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: background .2s, color .2s;
  font-family: 'Inter Tight', sans-serif;
}

.btn-submit:hover { background: var(--grad); color: #fff; }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-message {
  margin-top: 0.6rem; font-size: 0.85rem; font-weight: 500;
  min-height: 1.2em;
}
.form-message.success { color: #25D366; }
.form-message.error { color: #ff4d4d; }

/* ─── Floating WhatsApp ─── */
.floating-whatsapp {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(37,211,102,.45);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37,211,102,.6);
}

/* ─── FOOTER ─── */
footer {
  padding: 2rem 5% 1.5rem;
  background: #000;
}

.footer-row {
  display: flex; justify-content: space-between;
  align-items: flex-end; flex-wrap: wrap; gap: 2rem;
}

.footer-left { max-width: 380px; display: flex; flex-direction: column; gap: 0.6rem; }

.footer-logo { display: flex; align-items: center; gap: 0.6rem; }
.footer-logo img { width: auto; height: 45px; }
.footer-logo span { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1.1rem; color: #fff; }

.footer-desc { color: var(--muted); font-size: 0.8rem; line-height: 1.5; margin: 0; }

.social-row { display: flex; gap: 0.6rem; align-items: center; }

.social-icon {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text); cursor: pointer;
  transition: border-color .2s, color .2s;
}
.social-icon:hover { border-color: var(--accent); color: var(--accent); }
a.social-icon { text-decoration: none; color: inherit; }

.footer-copy { color: var(--muted); font-size: 0.7rem; margin: 0; }

.footer-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 1rem;
}

.footer-brand { text-align: right; }

.footer-brand-img { width: auto; height: 220px; object-fit: contain; }

.glorify-tagline {
  font-size: 0.6rem; color: var(--muted); letter-spacing: .12em;
  text-transform: uppercase; text-align: right; margin-top: 0.2rem;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1150px) {
  .hero-feature-badge { display: none; }
}

@media (max-width: 900px) {
  .hero { padding: 100px 5% 40px; }
  .hero-content { max-width: 100%; }
  .sol-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }
  /* Reorder: card1 (admin) → 1, card2 (dashboards) → 2, image → 3, card3 (web) → 4, card4 (auto) → 5 */
  .sol-grid > .sol-card:nth-child(1) { order: 1; }
  .sol-grid > .sol-card:nth-child(3) { order: 2; }
  .sol-grid > .sol-image { order: 3; grid-column: 1; grid-row: auto; min-height: 280px; }
  .sol-grid > .sol-card:nth-child(4) { order: 4; }
  .sol-grid > .sol-card:nth-child(5) { order: 5; }
  .sol-card { align-self: start; }
  .contacto-inner { grid-template-columns: 1fr; }
  .testimonial-card { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .steps-timeline::before,
  .steps-timeline::after { left: 24px; }
  .step-item:nth-child(even) { flex-direction: row; }
  .step-connector { width: 44px; }
}

@media (max-width: 1024px) {
  /* Tablet — hide nav links, logo left / CTA right like mobile */
  .nav-links { display: none; }
  nav { justify-content: space-between; }
}

@media (max-width: 768px) {
  /* Navbar — smaller CTA button */
  nav { padding: 0 5%; }
  .nav-logo { font-size: 22px; }
  .nav-logo img { width: 28px; height: 28px; }
  .btn-cta {
    padding: 0.55rem 1rem;
    font-size: 0.82rem;
  }
  /* Hero CTA — bigger than navbar btn */
  .btn-cta-lg {
    padding: 0.85rem 1.8rem;
    font-size: 1rem;
  }

  /* Hero — push content lower, smaller text */
  .hero { padding: 200px 5% 3rem; gap: 2rem; }
  .hero h1 { font-size: clamp(2.2rem, 9vw, 3.1rem); }
  .hero p { font-size: 0.88rem; }
  /* Carousel 40% bigger than 260 baseline */
  .hero-carousel-track { height: 364px; }

  /* Clientes — metrics stacked */
  .metrics {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  /* Footer — remove big brand logo, taller, copyright clearly visible */
  .footer-right { display: none; }
  footer { padding: 2.5rem 5% 2rem; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 1.4rem; }
  .footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.65); }
}

@media (max-width: 640px) {
  /* Carousel 40% bigger than 220 baseline */
  .hero-carousel-track { height: 308px; }
  .metrics { gap: 1.2rem; }
  .steps-timeline { padding: 0 1rem; }
}
