/* ---------- ESTILOS GENERALES ---------- */
:root {
  --color-primary: #2563eb;
  /* Azul principal */
  --color-primary-dark: #1d4ed8;
  --color-bg: #f3f4f6;
  /* Gris muy claro de fondo */
  --color-text: #111827;
  /* Gris muy oscuro para texto principal */
  --color-muted: #4b5563;
  /* Gris medio para párrafos */
  --color-border: #e5e7eb;
  /* Borde suave */
  --color-card-bg: #ffffff;
  /* Blanco para tarjetas */
  --color-footer-bg: #ffffff;
  /* Fondo del footer (Blanco) */

  --max-width: 1100px;
  --radius-card: 18px;
  --shadow-soft: 0 14px 40px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  background: var(--color-bg);
  color: var(--color-text);
}

img {
  max-width: 100%;
  display: block;
}

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

h1,
h2,
h3,
h4 {
  margin-top: 0;
  color: var(--color-text);
  text-align: center;
}

main {
  padding-top: 70px;
  /* espacio para el header fijo */
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- HEADER / NAV ---------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.06);
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-muted);
  position: relative;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.2s ease-out;
}

.menu a:hover::after {
  width: 100%;
}

/* ---------- BOTONES ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: all 0.16s ease-out;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.45);
}

.btn-secondary {
  background: #ffffff;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background: #eff6ff;
}

/* ---------- HERO ---------- */
.hero {
  padding: 4.5rem 1.5rem 3.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #eef2ff 40%, #ffffff 100%);
  border-bottom: 1px solid #e5e7eb;
}

.hero .container {
  text-align: center;
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  max-width: 820px;
  margin: 0 auto 1.9rem;
  color: var(--color-muted);
  font-size: 1.03rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 650px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero-highlights li {
  background: #ffffff;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

/* ---------- SECCIONES GENERALES ---------- */
section {
  padding: 3.5rem 1.5rem;
}

#beneficios,
#como-funciona,
.cta-final,
#contacto {
  background: var(--color-section);
}

#beneficios .container,
#como-funciona .container,
.cta-final .container,
#contacto .container {
  background: #ffffff;
  margin: 0 auto;
  padding: 2.7rem 2rem;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}




#beneficios h2,
#como-funciona h2,
.cta-final h2,
#contacto h2 {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}

#beneficios p,
#como-funciona p,
#contacto p,
.cta-final p {
  color: var(--color-muted);
  font-size: 0.98rem;
}

/* ---------- BENEFICIOS GRID ---------- */
.beneficios-grid {
  display: grid;
  gap: 1.8rem;
  margin-top: 2rem;
  margin: 3.25rem;
}

/* Tarjetas más “premium” */
.beneficios-grid article {
  position: relative;
  background: #ffffff;
  border-radius: 0px;
  padding: 1.6rem 1.6rem 1.4rem;
  border: 0px solid #e5e7eb;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: transform 0.16s ease-out, box-shadow 0.16s ease-out, border-color 0.16s ease-out;
}

/* Franja superior de color */
.beneficios-grid article::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #2563eb);
  top: 0;
}

/* Efecto hover */
.beneficios-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  border-color: rgba(37, 99, 235, 0.45);
}

/* Título dentro de cada tarjeta */
.beneficios-grid h4 {
  margin-top: 0.4rem;
  /* para separarlo de la franja */
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #111827;
}

/* Párrafo principal de la tarjeta */
.beneficios-grid p {
  margin: 0.3rem 0 0.6rem;
  font-size: 0.96rem;
  color: #4b5563;
}

/* Lista de bullets más limpia */
.beneficios-grid ul {
  list-style: none;
  padding-left: 0;
  margin: 0.4rem 0 0;
}

/* Cada bullet */
.beneficios-grid ul li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.25rem;
  font-size: 0.94rem;
  color: #4b5563;
}

/* “Bullet” personalizado */
.beneficios-grid ul li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #2563eb;
  opacity: 0.85;
}

/* ---------- SECCIÓN CÓMO FUNCIONA (PASOS) ---------- */
#como-funciona .container {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

#como-funciona h2 {
  font-size: 1.9rem;
  margin-bottom: 0.5rem;
}

#como-funciona p {
  color: var(--color-muted);
  font-size: 0.98rem;
  max-width: 780px;
}

#como-funciona .badge {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: #e0ecff;
  color: var(--color-primary-dark);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.7rem;
}

.como-grid {
  display: grid;
  gap: 1.4rem;
  margin-top: 1.8rem;
  position: relative;
}

/* Línea vertical tipo timeline en desktop */
@media (min-width: 768px) {
  .como-grid {
    padding-left: 1.8rem;
  }

  .como-grid::before {
    content: "";
    position: absolute;
    left: 1rem;
    top: 0.3rem;
    bottom: 0.3rem;
    width: 2px;
    background: linear-gradient(to bottom, #bfdbfe, #93c5fd);
    opacity: 0.7;
  }
}

.paso-card {
  position: relative;
  background: #f9fafb;
  border-radius: 16px;
  padding: 1.2rem 1.3rem 1.1rem;
  border: 1px solid #e5e7eb;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: flex-start;
  transition:
    transform 0.16s ease-out,
    box-shadow 0.16s ease-out,
    border-color 0.16s ease-out,
    background 0.16s ease-out;
}

.paso-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
  border-color: rgba(37, 99, 235, 0.45);
  --border-color: #1d4ed8;
  background: #fff;
}

.paso-numero {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  margin-top: 0.15rem;
}

/* Punto sobre la línea en desktop */
@media (min-width: 768px) {
  .paso-card::before {
    content: "";
    position: absolute;
    left: 0.95rem;
    top: 1.45rem;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #2563eb;
    border: 2px solid #eff6ff;
  }
}

.paso-contenido h3 {
  margin: 0 0 0.2rem;
  font-size: 1.02rem;
}

.paso-etiqueta {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
  margin-bottom: 0.15rem;
}

.paso-contenido p {
  margin: 0.15rem 0 0.5rem;
  color: var(--color-muted);
  font-size: 0.93rem;
}

.paso-contenido ul {
  margin: 0.2rem 0 0;
  padding-left: 1rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.paso-contenido ul li {
  margin-bottom: 0.12rem;
}

/* ---------- CTA FINAL ---------- */
.cta-final {
  text-align: center;
}

.cta-final .container {
  max-width: 800px;
}

.cta-final p {
  margin-bottom: 1.4rem;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--color-footer-bg);
  color: var(--color-text);
  font-size: 0.95rem;
  padding-top: 2rem;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.9rem 1.5rem 1rem;
  display: grid;
  gap: 1.7rem;
}

.footer-brand h3 {
  margin-bottom: 0.25rem;
  color: var(--color-primary);
  text-align: left;
}

.footer-links h3,
.footer-contacto h3 {
  margin-bottom: 0.45rem;
  color: var(--color-text);
  font-size: 0.95rem;
  text-align: left;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.25rem;
}

.footer-links a {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.footer-links a:hover,
.footer-contacto a:hover {
  color: var(--color-primary);
}

.footer-contacto a {
  color: var(--color-muted);
}

.footer-copy {
  border-top: 1px solid #e5e7eb;
  text-align: center;
  padding: 0.85rem 1.5rem 1rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* ---------- SECCIÓN SOLUCIONES (MÓDULOS) ---------- */
#soluciones {
  background: #f3f4f6;
}

.soluciones-container {
  background: #ffffff;
  padding: 2.8rem 2rem 3rem;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.soluciones-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.2rem;
}

.soluciones-header h2 {
  font-size: 1.9rem;
  margin-bottom: 0.5rem;
}

.soluciones-header p {
  color: var(--color-muted);
  font-size: 0.98rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: #e0ecff;
  color: var(--color-primary-dark);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.7rem;
}

.soluciones-grid {
  display: grid;
  gap: 1.6rem;
}

.sol-card {
  background: #f9fafb;
  border-radius: 7px;
  padding: 1.5rem 1.5rem 1.3rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, border-color 0.15s ease-out;
}

.sol-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.12);
  border-color: rgba(37, 99, 235, 0.35);
}

.sol-card-icon {
  width: 65px;
  height: 65px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e0ecff;
  color: var(--color-primary-dark);
  font-size: 1.4rem;
  margin: 0 auto 0.7rem auto;
}

.sol-card h3 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.sol-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* ---------- CONTACTO ---------- */
#contacto .container {
  padding: 2.7rem 2rem 2.3rem;
}

.contact-layout {
  display: grid;
  gap: 2rem;
  margin-top: 1.8rem;
}

.contacto-form {
  display: grid;
  gap: 1rem;
}

.contacto-form label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}

.beneficio-icon {
  width: 90px;
  height: 90px;
  border-radius: 999px;
  background: #e0ecff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-dark);
  font-size: 2rem;
  margin-bottom: 0.9rem;
  --box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  margin-left: auto;
  margin-right: auto;
  /* 👉 centra el círculo dentro de la tarjeta */
}

.contacto-form input,
.contacto-form textarea {
  padding: 0.6rem 0.75rem;
  border-radius: 9px;
  border: 1px solid var(--color-border);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out;
}

.contacto-form input:focus,
.contacto-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.contacto-form textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-extra {
  border-radius: 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 1.5rem 1.5rem 1.3rem;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.contact-extra h3 {
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
}

.contact-extra-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.contact-extra-item i {
  margin-top: 0.15rem;
  color: var(--color-primary);
}

.contact-privacy {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  color: #6b7280;
}

.g-recaptcha {
  margin-top: 0.5rem;
  margin-bottom: 0.6rem;
}

/* Validation Styles */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.error-message {
  color: #dc2626;
  font-size: 0.85rem;
  display: none;
}
.input-error {
  border-color: #dc2626 !important;
}

/* Success Message */
.success-message {
  display: none;
  background-color: #d1fae5;
  color: #065f46;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 1rem;
  border: 1px solid #a7f3d0;
}
.success-message i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

/* ---------- RESPONSIVE ---------- */
@media (min-width: 768px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  @media (min-width: 768px) {
    .beneficios-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 2rem;
    }
  }

  #beneficios .container,
  #como-funciona .container,
  .cta-final .container,
  #contacto .container {
    padding: 2.7rem 3rem;
  }

  .soluciones-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .soluciones-container {
    padding: 3rem 3rem 3.2rem;
  }

  .footer-content {
    grid-template-columns: 2fr 1fr 1.2fr;
    align-items: flex-start;
  }

  .contact-layout {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

@media (max-width: 640px) {
  nav {
    padding-inline: 1rem;
  }

  .menu {
    gap: 0.75rem;
    font-size: 0.85rem;
  }

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

input#nombre {
/* -text-transform: capitalize; */
  text-transform: uppercase;
}

input#correo {
  text-transform: lowercase;
}

input#municipalidad {
  text-transform: uppercase;
}