/* ==========================================================================
   --- Hero Section (Mobile-First) ---
   ========================================================================== */
.hero-section {
  background: linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
  padding: 4rem 1.5rem; /* Reducido en móvil para optimizar espacio */
  text-align: center;
}

.hero-content {
  max-width: 850px;
  margin: 0 auto;
}

.hero-tag {
  background-color: var(--brand-teal);
  color: var(--brand-teal-dark);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.hero-content h2 {
  font-size: 1.85rem; /* Tamaño controlado para que entren las palabras completas */
  color: var(--brand-navy);
  line-height: 1.2;
  margin: 0 0 1.5rem 0;
  font-weight: 700;
  word-wrap: break-word; /* Evita desbordamientos accidentales */
}

.hero-content p {
  font-size: 1.1rem; /* Ligeramente más compacto en móvil */
  color: var(--text-gray-links);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-direction: column; /* Apilados verticalmente en móvil */
  gap: 1rem;
  max-width: 320px; /* Evita que los botones se estiren infinitamente */
  margin: 0 auto;
}

.btn-cta-primary,
.btn-cta-secondary {
  display: block;
  text-align: center;
  padding: 0.9rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
}

.btn-cta-primary {
  background-color: var(--brand-blue-hover);
  color: #ffffff;
}

.btn-cta-secondary {
  border: 1px solid #ccd0d5;
  color: var(--text-gray-links);
  background-color: #ffffff;
}

.featured-section {
  padding: 4rem 1.5rem;
  text-align: center;
}

.featured-section-dark {
  background: #f8fafc;
}

.featured-section-content {
  max-width: 1400px;
  margin: 0 auto;
}

.featured-section-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.reverse-cols {
  flex-direction: column-reverse;
}

.featured-section-grid-description.description-left {
  text-align: left;
}

.featured-section-grid-description {
  max-width: 400px;
  margin: auto;
}

.featured-section h3 {
  font-size: 1.5rem; /* Tamaño controlado para que entren las palabras completas */
  color: var(--brand-blue-dark);
  line-height: 1.2;
  margin: 0 0 1.5rem 0;
  font-weight: 700;
  word-wrap: break-word;
}

.featured-image-round {
  border-radius: 8px;
  max-width: 360px;
}

/* --- Features & Services Intro (Base Móvil) --- */
.services-section,
.features-section {
  max-width: var(--max-width-grid);
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 1.75rem; /* Ajustado para móvil */
  color: var(--brand-navy);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr; /* Una columna por defecto en móvil */
  gap: 1.5rem;
}

.feature-card {
  background-color: var(--bg-light);
  border: 1px solid var(--border-light);
  padding: 2rem;
  border-radius: 6px;
}

.feature-icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

/* ==========================================================================
   VISTA DE ESCRITORIO: A partir de 768px
   ========================================================================== */
@media (min-width: 768px) {
  .hero-section,
  .featured-section {
    padding: 7rem 2rem;
  }

  .hero-content h2 {
    font-size: 3rem;
    line-height: 1.15;
  }

  .hero-content p {
    font-size: 1.25rem;
  }

  .hero-actions {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }

  .featured-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
  }

  .featured-section h3 {
    font-size: 2.5rem;
    line-height: 1.15;
  }

  .featured-section p {
    font-size: 1.2rem;
    line-height: 1.5;
  }

  .featured-image-round {
    max-width: 800px;
  }

  .services-section,
  .features-section {
    margin: 4rem auto;
    padding: 0 2rem;
  }

  .section-header {
    margin-bottom: 4rem;
  }

  .section-header h2 {
    font-size: 2.25rem;
  }

  .features-grid {
    grid-template-columns: repeat(
      auto-fit,
      minmax(300px, 1fr)
    ); /* Rejilla adaptativa */
    gap: 2.5rem;
  }
}
