:root {
  --color-primary: #2B6CB0;
  --color-secondary: #215387;
  --color-dark: #1A202C;
  --color-bg: #EDF2F7;
  --color-bg-light: #F7FAFC;
  --color-white: #ffffff;
  --color-text: #000000;
}

body {
  background-color: var(--color-bg-light);
  font-family: 'Lato', sans-serif;
  color: var(--color-text);
  margin: 0;
  padding: 0;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.header {
  background-color: var(--color-bg);
  padding: 1rem;
}

.header-description {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--color-dark);
  text-align: left;
  max-width: 500px;
  padding-left: 1rem;
}

.header-flex {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  max-width: 160px;
  height: auto;
}

.intro {
  font-family: 'Lato', sans-serif;
  font-size: 1.1rem;
  color: var(--color-dark);
  font-weight: 400;
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.intro-text {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.hero {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(45deg, #9bbe54, #3d8ccc);
  color: var(--color-white);
  border-radius: 12px;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 40px;
  font-size: 1rem;
  text-decoration: none;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background-color: var(--color-white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.card h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.card ul {
  list-style-type: none;
  padding-left: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-dark);
}

.card ul li {
  margin-bottom: 0.5rem;
}

.card p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.cta {
  background: var(--color-bg);
  text-align: center;
  padding: 3rem 1rem;
  margin-top: 3rem;
  border-radius: 12px;
}

.cta h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.cta p {
  color: #4a5568;
}

.cta ul {
  list-style: none;
  padding-left: 0;
  text-align: center;
}

.cta ul li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
}

.btn-secondary {
  background: var(--color-secondary);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  border-radius: 40px;
  text-decoration: none;
}

footer.footer {
  background-color: rgba(217, 218, 218, 0.54);
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

footer a {
  color: var(--color-dark);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }
  .cards-servicios {
    grid-template-columns: repeat(3, 1fr);
  }
  .cta-buttons {
    flex-direction: row;
  }
}

.card li {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-dark);
}

.process-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
  font-size: 1rem;
}

.process-steps .step {
  background-color: var(--color-bg);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.timeline-steps {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.timeline-steps .step {
  flex: 1 1 150px;
  background: var(--color-white);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  font-weight: 600;
  color: var(--color-primary);
}

.color-principal {
  color: var(--color-primary);
}

.resaltado {
  color: var(--color-secondary);
  font-weight: 700;
}

.footer small a {
  font-weight: 500;
  color: var(--color-secondary);
}

.footer small a:hover {
  text-decoration: underline;
}

.bg-light {
  background-color: #f9f9f9;
}

.bg-accent {
  background-color: #eef4ff;
}

.bg-primary {
  background-color: #3e566e;
  color: #fff;
}

.subheadline {
  font-size: 1.1rem;
  font-weight: 500;
  color: #4a5568;
  margin: 1rem 0 1.5rem 0;
  text-align: center;
}

.timeline.container {
  background-color: var(--color-bg);
  border-radius: 12px;
  padding: 3rem 1rem;
  text-align: center;
  margin-top: 3rem;
}

.timeline.container h2 {
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.fullwidth {
  display: block;          /* fuerza el botón a ocupar toda la fila */
  width: 100%;
  text-align: center;
  padding: 14px 18px;
  box-sizing: border-box;
  white-space: normal;     /* permite salto de línea limpio */
}

/* --- Fix responsive header & text mobile --- */
@media (max-width: 480px) {

  .header-flex {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .header .logo {
    max-width: 140px;
    margin: 0 auto 8px auto;
  }

  .intro-text h1 {
    font-size: 22px;
    line-height: 1.25;
    padding: 0 10px;
  }

  .intro-text .subheadline {
    font-size: 14px;
    line-height: 1.35;
    padding: 0 12px;
  }

  #cta_top {
    display: block;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    font-size: 15px;
    padding: 12px 14px;
    white-space: normal;
  }

  /* Ajuste general: menos ruido visual en móvil */
  .cards .card p,
  .hero p,
  .cta ul li,
  .timeline .step {
    font-size: 15px;
    line-height: 1.35;
  }
}
