/* Home redesign 2026-07: premium industrial direction */
.hero-premium {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  padding-top: 92px;
  isolation: isolate;
}
.hero-premium .hero-media {
  inset: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(13,27,62,.98) 0%, rgba(13,27,62,.9) 45%, rgba(13,27,62,.25) 100%),
    linear-gradient(180deg, rgba(13,27,62,.22) 0%, rgba(13,27,62,.9) 100%),
    url('../img/proyectos/hero-equipo-humano.png') center right / cover no-repeat;
  box-shadow: none;
}
/* Capa de líneas decorativas eliminada a pedido del cliente: la foto va limpia. */
.hero-premium .hero-sheen { display: none; }
.hero-premium .hero-content {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(260px, 360px);
  align-items: center;
  gap: 52px;
  padding: 48px 32px 72px;
}
.hero-copy { max-width: 760px; }
.hero-copy h1 {
  max-width: 840px;
  margin-bottom: 24px;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.hero-copy .lead {
  max-width: 660px;
  color: rgba(255,255,255,.74);
  border-left: 4px solid var(--royal);
  padding-left: 22px;
}
.hero-proof {
  align-self: end;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  padding: 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 80px rgba(0,0,0,.22);
}
.hero-proof span {
  display: block;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.52);
  margin-bottom: 10px;
}
.hero-proof strong {
  display: block;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 26px;
  line-height: 1.12;
  margin-bottom: 12px;
}
.hero-proof p {
  color: rgba(255,255,255,.68);
  font-size: 14.5px;
}

/* ── Carrusel feat ── */
.feat-carousel-section { overflow: hidden; background: var(--navy); }

.feat-carousel-viewport {
  position: relative;
  overflow: hidden;
  cursor: grab;
}
.feat-carousel-viewport:active { cursor: grabbing; }

.feat-carousel-track {
  display: flex;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
  will-change: transform;
  gap: 2px;
}

.feat-carousel-track .feat-card {
  flex: 0 0 calc(100% / 3.2);
  min-width: 0;
  user-select: none;
}

.feat-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 18px 0 22px;
  background: var(--navy);
}
.feat-carousel-dots button {
  width: 28px;
  height: 3px;
  border: none;
  border-radius: 2px;
  background: rgba(255,255,255,.22);
  cursor: pointer;
  padding: 0;
  transition: background .3s, width .3s;
}
.feat-carousel-dots button.active {
  background: var(--sky, #4fa8d5);
  width: 44px;
}

/* legacy grid (not used with carousel but kept for other pages) */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 0;
  background: rgba(30,77,183,.1);
}
.feat-card {
  position: relative;
  min-height: 310px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  text-decoration: none;
  background: var(--navy);
}
.feat-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .7;
  transition: transform .5s ease, opacity .5s ease;
}
.feat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,27,62,.12) 0%, rgba(13,27,62,.92) 100%);
}
.feat-card > div {
  position: relative;
  z-index: 1;
  padding: 34px;
}
.feat-card span,
.service-card span,
.project-card span {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 12px;
}
.feat-card h3 {
  color: var(--white);
  font-size: 22px;
  margin-bottom: 10px;
}
.feat-card p {
  color: rgba(255,255,255,.72);
  font-size: 15px;
}
.feat-card:hover img {
  transform: scale(1.08);
  opacity: .9;
}

.continuity-section {
  background:
    linear-gradient(180deg, var(--white) 0%, #F8FAFF 100%);
}
.continuity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, .88fr);
  gap: 72px;
  align-items: center;
}
.continuity-copy h2 {
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -.035em;
  margin-bottom: 22px;
  text-wrap: balance;
}
.continuity-copy .section-lead {
  max-width: 680px;
  margin-bottom: 24px;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.65;
}
.continuity-copy p:not(.section-lead) {
  max-width: 660px;
  margin-bottom: 17px;
  font-size: 17px;
  line-height: 1.78;
}
.continuity-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
}
.continuity-link {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--royal);
  text-decoration: none;
  transition: color .18s ease;
}
.continuity-link:hover { color: var(--orange); }
.continuity-photo {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--navy);
  box-shadow: 0 30px 80px rgba(13,27,62,.18);
}
.continuity-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,27,62,.04) 0%, rgba(13,27,62,.64) 100%);
}
.continuity-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: center top;
}
.coverage-panel {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  background: rgba(13,27,62,.76);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.coverage-panel span,
.continuity-strip span {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--sky);
}
.coverage-panel strong {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 26px;
  line-height: 1.12;
}
.coverage-panel p {
  color: rgba(255,255,255,.76);
  font-size: 15px;
}
.continuity-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 48px;
  border: 1px solid rgba(30,77,183,.1);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 16px 44px rgba(13,27,62,.07);
}
.continuity-strip div {
  min-height: 130px;
  padding: 24px;
  border-right: 1px solid rgba(30,77,183,.1);
}
.continuity-strip div:last-child { border-right: none; }
.continuity-strip strong {
  display: block;
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 18px;
  line-height: 1.35;
}

.promise-section { overflow: hidden; }
.promise-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}
.promise-media {
  border-radius: 8px;
  overflow: hidden;
  min-height: 520px;
  box-shadow: 0 32px 90px rgba(0,0,0,.32);
}
.promise-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 520px;
}
.promise-copy h2 {
  color: var(--white);
  font-size: clamp(34px, 4.2vw, 52px);
  max-width: 620px;
  margin-bottom: 34px;
  text-wrap: balance;
}
.promise-list {
  display: grid;
  gap: 18px;
}
.promise-list div {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 18px;
}
.promise-list strong {
  display: block;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 19px;
  margin-bottom: 7px;
}
.promise-list p {
  color: rgba(255,255,255,.64);
  font-size: 16px;
  line-height: 1.72;
}

.services-section { background: var(--white); }
.services-section .section-head { max-width: 520px; margin-bottom: 58px; }
.services-section .section-head h2 { line-height: 1.14; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: var(--gray-bg);
  border: 1px solid rgba(30,77,183,.08);
  border-radius: 8px;
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.service-card > span {
  min-height: 36px;
  display: flex;
  align-items: flex-start;
}
.service-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}
.service-card p { font-size: 15.5px; }
.service-card:hover {
  transform: translateY(-4px);
  background: var(--light);
  box-shadow: 0 18px 38px rgba(13,27,62,.1);
}

.process-section .section-head { max-width: 720px; }
.process-section .step-card {
  border-radius: 8px;
  text-align: left;
}
.process-section .step-num { margin: 0 0 18px; }

.projects-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}
.projects-head h2 {
  font-size: clamp(34px, 4vw, 48px);
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.project-card {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 8px;
  text-decoration: none;
  background: var(--navy);
}
.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .84;
  transition: transform .5s ease, opacity .5s ease;
}
.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 24%, rgba(13,27,62,.95) 100%);
}
.project-card > div {
  position: relative;
  z-index: 1;
  padding: 28px;
}
.project-card h3 {
  color: var(--white);
  font-size: 22px;
}
.project-card:hover img {
  transform: scale(1.07);
  opacity: 1;
}
.projects-section .btn-outline-light { flex-shrink: 0; }

.clients-section {
  background: var(--white);
}
.client-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 288px));
  justify-content: center;
  gap: 18px 24px;
}
.client-card {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(30,77,183,.09);
  border-radius: 8px;
  background: #F8FAFD;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.client-card span {
  color: rgba(13,27,62,.56);
  font-family: var(--font-head);
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 800;
  letter-spacing: -.02em;
  filter: grayscale(1);
}
.client-card img {
  display: block;
  width: auto;
  max-width: 68%;
  max-height: 78px;
  object-fit: contain;
  filter: grayscale(1) saturate(.25);
  opacity: .72;
  transition: filter .2s ease, opacity .2s ease, transform .2s ease;
}
.client-card img[alt="PASCOM"] {
  max-width: 82%;
  max-height: 96px;
}
.client-card:hover {
  transform: translateY(-4px);
  border-color: rgba(30,77,183,.22);
  background: var(--white);
  box-shadow: 0 18px 42px rgba(13,27,62,.08);
}
.client-card:hover span {
  color: var(--royal);
}
.client-card:hover img {
  filter: none;
  opacity: 1;
  transform: scale(1.03);
}
.cta-band .eyebrow { margin-bottom: 18px; }
.cta-band h2 { text-wrap: balance; }

@media (max-width: 980px) {
  .hero-premium { min-height: auto; }
  .hero-premium .hero-content {
    grid-template-columns: 1fr;
    padding-top: 56px;
  }
  .hero-proof { max-width: 420px; }
  .feat-grid, .service-grid, .project-grid, .client-grid,
  .continuity-grid, .promise-grid {
    grid-template-columns: 1fr;
  }
  .continuity-strip { grid-template-columns: 1fr 1fr; }
  .feat-card { min-height: 280px; }
  .promise-media, .promise-media img { min-height: 360px; }
  .continuity-photo, .continuity-photo img { min-height: 420px; }
  .projects-head {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .hero-premium { padding-top: 78px; }
  .hero-premium .hero-content {
    padding: 48px 20px 54px;
  }
  .hero-copy .lead {
    font-size: 17px;
    padding-left: 16px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-proof { padding: 20px; }
  .continuity-copy .section-lead { font-size: 18px; }
  .continuity-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .continuity-strip { grid-template-columns: 1fr; }
  .continuity-strip div {
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(30,77,183,.1);
  }
  .continuity-strip div:last-child { border-bottom: none; }
  .coverage-panel {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }
  .feat-card > div,
  .project-card > div {
    padding: 24px;
  }
  .service-card { min-height: 240px; }
  .project-card { min-height: 320px; }
  .client-card { min-height: 118px; }
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ── Móvil estricto (≤480px) ── */
@media (max-width: 480px) {

  /* Carousel: mostrar 1.4 tarjetas para dar pista de swipe */
  .feat-carousel-track .feat-card {
    flex: 0 0 calc(100% / 1.35);
  }

  /* Client grid: 2 columnas fluidas en lugar de 4 fijas de 220px */
  .client-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .client-card { min-height: 100px; }
  .client-card img { max-height: 56px; max-width: 72%; }

  /* Footer: 1 columna */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-brand img { height: 80px; }

  /* Promise media: altura reducida */
  .promise-media,
  .promise-media img { min-height: 260px; }

  /* Continuity photo: altura reducida */
  .continuity-photo,
  .continuity-photo img { min-height: 300px; }

  /* Hero proof: full width sin overflow */
  .hero-proof {
    max-width: 100%;
    margin-top: 24px;
  }
  .hero-proof strong { font-size: 20px; }

  /* Hero copy: heading más compacto */
  .hero-copy h1 { font-size: clamp(34px, 11vw, 44px); }

  /* Continuity copy heading */
  .continuity-copy h2 { font-size: clamp(32px, 9vw, 42px); }

  /* Service cards: más compactas */
  .service-card { min-height: 200px; padding: 22px; }
  .service-card h3 { font-size: 18px; }

  /* Project cards */
  .project-card { min-height: 260px; }
  .project-card h3 { font-size: 18px; }

  /* Promise copy */
  .promise-copy h2 { font-size: clamp(28px, 8vw, 38px); }
  .promise-list strong { font-size: 16px; }

  /* CTA band: texto que envuelva */
  .cta-band h2 .cta-line { white-space: normal; }
  .cta-band h2 { font-size: clamp(24px, 7.5vw, 34px); }
  .cta-band p { font-size: 15px; }
  .cta-band { padding: 64px 0; }

  /* Continuity strip en 1 sola columna */
  .continuity-strip { grid-template-columns: 1fr; margin-top: 32px; }
  .continuity-strip div {
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(30,77,183,.1);
    padding: 18px 20px;
  }
  .continuity-strip div:last-child { border-bottom: none; }
  .continuity-strip strong { font-size: 15px; }

  /* Feat cards: texto más ajustado */
  .feat-card > div { padding: 20px; }
  .feat-card h3 { font-size: 18px; }

  /* Formulario: padding menor */
  .form-card { padding: 24px 20px; }

  /* Stat card números: menos grandes */
  .stat-num { font-size: 36px; }

  /* Page head interior */
  .page-head { padding: 100px 0 44px; }
  .page-head h1 { font-size: clamp(28px, 8.5vw, 40px); }

  /* Botones hero: stack completo */
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; justify-content: center; text-align: center; }
}
