/* ============================================================
   InnBridge V4 — pages/home.css — index.html
   ============================================================ */

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  background: var(--white);
  padding: var(--space-20) 0 0;
  position: relative;
  overflow: hidden;
}

.hero__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--space-16);
  align-items: center;
  padding-bottom: var(--space-16);
}

.hero__content {
  max-width: 600px;
}

.hero__headline {
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: var(--space-6);
}

.hero__headline em {
  font-style: italic;
  color: var(--teal);
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: var(--space-10);
  max-width: 52ch;
}

.hero__ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Hero card de estadísticas */
.hero__card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(26,127,114,0.1);
}

.hero__card-top {
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
}

.hero__card-body {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.hero__card-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(26,127,114,0.08);
}

.hero__card-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.hero__card-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--black);
  line-height: 1;
}

.hero__card-label {
  font-size: var(--text-xs);
  color: var(--gray-light);
  line-height: 1.4;
}

/* Franja teal base del hero */
.hero__bar {
  height: 80px;
  background: var(--teal-dark);
  display: flex;
  align-items: center;
}

.hero__bar-text {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.85);
}

@media (max-width: 1023px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__card {
    max-width: 480px;
  }
}

@media (max-width: 767px) {
  .hero {
    padding-top: var(--space-12);
  }
  .hero__headline {
    font-size: 2rem;
  }
  .hero__ctas {
    flex-direction: column;
  }
  .hero__ctas .btn {
    width: 100%;
  }
  .hero__bar {
    height: auto;
    padding: var(--space-5) 0;
  }
}

/* ── SECCIÓN EL PROBLEMA ────────────────────────────────────── */
.problema-section {
  background: var(--off-white);
  padding: var(--space-20) 0;
}

.problema-section__inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.problema-section__content h2 {
  margin-bottom: var(--space-6);
}

.problema-section__content p + p {
  margin-top: var(--space-5);
}

.problema-section__highlight {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border-left: 4px solid var(--teal);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.problema-section__stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(26,127,114,0.1);
}

.problema-section__stat:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.problema-section__stat-number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--teal);
  line-height: 1;
}

.problema-section__stat-label {
  font-size: var(--text-sm);
  color: var(--gray);
}

@media (max-width: 1023px) {
  .problema-section__inner {
    grid-template-columns: 1fr;
  }
}

/* ── SECCIÓN VALLES ─────────────────────────────────────────── */
.valles-section {
  background: var(--white);
  padding: var(--space-20) 0;
}

.valles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}

@media (max-width: 1023px) {
  .valles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .valles-grid > *:last-child {
    grid-column: 1 / -1;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .valles-grid {
    grid-template-columns: 1fr;
  }
  .valles-grid > *:last-child {
    grid-column: 1;
    max-width: none;
    margin: 0;
  }
}

/* ── SECCIÓN DIFERENCIADORES ────────────────────────────────── */
.diferenciadores-section {
  background: var(--off-white);
  padding: var(--space-20) 0;
}

.diferenciadores-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: var(--space-12);
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.diferenciadores-grid .diff-card {
  border-left: none;
  border-bottom: 1px solid rgba(26,127,114,0.08);
  position: relative;
}

.diferenciadores-grid .diff-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: var(--space-6);
  bottom: var(--space-6);
  width: 3px;
  background: var(--teal);
  border-radius: 2px;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.diferenciadores-grid .diff-card:hover::before {
  opacity: 1;
}

.diferenciadores-grid .diff-card:nth-child(1),
.diferenciadores-grid .diff-card:nth-child(2) {
  border-top: none;
}

.diferenciadores-grid .diff-card:nth-child(odd) {
  border-right: 1px solid rgba(26,127,114,0.08);
}

.diferenciadores-grid .diff-card:nth-child(3),
.diferenciadores-grid .diff-card:nth-child(4) {
  border-bottom: none;
}

@media (max-width: 767px) {
  .diferenciadores-grid {
    grid-template-columns: 1fr;
  }
  .diferenciadores-grid .diff-card:nth-child(odd) {
    border-right: none;
  }
  .diferenciadores-grid .diff-card:nth-child(3) {
    border-bottom: 1px solid rgba(26,127,114,0.08);
  }
}

/* ── SECCIÓN CASO ───────────────────────────────────────────── */
.caso-section {
  background: var(--white);
  padding: var(--space-20) 0;
}

.caso-section__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.caso-section__header {
  margin-bottom: var(--space-12);
}

.caso-section__content {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-16);
  align-items: start;
}

.caso-section__text p + p {
  margin-top: var(--space-5);
}

.caso-section__text blockquote {
  margin: var(--space-8) 0;
}

.caso-section__attribution {
  font-size: var(--text-sm);
  color: var(--gray-light);
  margin-top: var(--space-3);
  font-style: normal;
  display: block;
  max-width: none;
}

.caso-section__cta {
  margin-top: var(--space-6);
}

.caso-section__sidebar {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-8));
}

.caso-metrics {
  background: var(--teal-pale);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.caso-metrics__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--black);
  margin-bottom: var(--space-2);
}

.caso-metric {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(26,127,114,0.15);
}

.caso-metric:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.caso-metric__value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--teal-dark);
  line-height: 1;
}

.caso-metric__label {
  font-size: var(--text-xs);
  color: var(--gray);
  line-height: 1.4;
}

@media (max-width: 1023px) {
  .caso-section__content {
    grid-template-columns: 1fr;
  }
  .caso-section__sidebar {
    position: relative;
    top: auto;
  }
}

/* ── SECCIÓN EQUIPO PREVIEW ─────────────────────────────────── */
.equipo-preview {
  background: var(--charcoal);
  padding: var(--space-20) 0;
  text-align: center;
}

.equipo-preview__headline {
  color: var(--white);
  margin-bottom: var(--space-4);
}

.equipo-preview__desc {
  color: rgba(255,255,255,0.55);
  max-width: 56ch;
  margin: 0 auto var(--space-8);
}
