/* === Reset básico === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff;
  color: #000;
}

a {
  color: #000000;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* === Header === */
.top-header {
  background-color: #000000; /* fondo blanco */
  padding: 16px 20px;
  color: #000000; /* color de texto si lo necesitas */
  border-bottom: 3px solid #000000; /* borde inferior */
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: auto;
}

.logo {
  height: 60px;
}

@media screen and (min-width: 768px) {
  .header-container {
    justify-content: flex-start;
  }
}

/* === Breadcrumb === */
.breadcrumb {
  font-size: 14px;
  padding: 16px 20px;
  background-color: #f8f8f8;
}

.breadcrumb a {
  color: #000000;
}

/* === Main container === */
.container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
}

/* === Título principal === */
h1 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #111;
}

/* === Pasos === */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.step {
  text-align: center;
  background-color: white;
  padding: 14px;
  border-radius: 8px;
  font-size: 14px;
  color: #000000;
  font-weight: 500;
  border: 2px solid #000000;
  transition: all 0.2s ease;
}

.step.active {
  background-color: #000000;
  color: white;
  font-weight: 600;
  border: 2px solid #000000;
}

/* === Formulario Chile === */
.form-section {
  background: #fafafa;
  padding: 20px 20px;
  border-radius: 8px;
  border: 1px solid #ddd;
  margin-top: 20px;
}

.form-section h2 {
  color: #000000;
  margin-bottom: 12px;
  font-size: 20px;
}

.form-section p {
  font-size: 15px;
  margin-bottom: 20px;
}

.form-section label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-section input {
  width: 100%;
  padding: 12px;
  border: 1px solid #bbb;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 16px;
}

.form-section button {
  background-color: #000000;
  color: white;
  padding: 14px 28px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.form-section button:hover {
  background-color: #000000;
}

/* === Info final === */
.info-box {
  background-color: #f1f1f1;
  padding: 30px 20px;
  border-radius: 8px;
  border: 1px solid #ddd;
  margin-top: 50px;
  text-align: center;
}

.info-box h2 {
  font-size: 20px;
  color: #000000;
  margin-bottom: 12px;
}

.info-box p {
  font-size: 16px;
  color: #333;
  line-height: 1.5;
}

/* === Quiénes somos === */
.quienes-somos {
  margin-top: 60px;
  padding: 30px 20px;
  border-top: 1px solid #eee;
}

.quienes-somos h2 {
  font-size: 20px;
  color: #000000;
  margin-bottom: 12px;
}

.quienes-somos p {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}

/* === Ventajas === */
.ventajas-servicio {
  margin-top: 50px;
}

.ventajas-servicio h2 {
  font-size: 20px;
  color: #000000;
  margin-bottom: 10px;
}

.ventajas-servicio ul {
  list-style: none;
  padding-left: 0;
}

.ventajas-servicio li {
  font-size: 15px;
  margin-bottom: 10px;
  color: #333;
}

/* === Preguntas frecuentes === */
.faq-box {
  margin-top: 60px;
}

.faq-box h2 {
  font-size: 20px;
  color: #000000;
  margin-bottom: 16px;
}

.faq-box details {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 12px;
  background: #fdfdfd;
}

.faq-box summary {
  font-weight: bold;
  cursor: pointer;
  font-size: 15px;
  color: #333;
}

.faq-box p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
}

/* === Footer === */
.footer {
  margin-top: 120px;
  padding: 20px;
  font-size: 13px;
  color: #555;
  text-align: center;
  background-color: #f7f7f7;
  border-top: 1px solid #ddd;
}

@media screen and (max-width: 1024px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === Formulario: DATOS.HTML Estilos base === */
.formulario {
  background-color: #fafafa;
  padding: 30px 20px;
  border-radius: 8px;
  border: 1px solid #ddd;
  margin-top: 30px;
}

.formulario fieldset {
  border: none;
  margin-bottom: 30px;
}

.formulario legend {
  font-size: 18px;
  font-weight: bold;
  color: #000000;
  margin-bottom: 16px;
  border-left: 4px solid #000000;
  padding-left: 10px;
}

/* === Agrupación en filas === */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.form-group {
  flex: 1;
  min-width: 220px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* === Campos de solo lectura === */
input[readonly] {
  background-color: #f1f1f1;
  color: #666;
  cursor: not-allowed;
}

/* === Términos y condiciones === */
.terminos {
  margin-top: 20px;
  font-size: 14px;
}

.terminos input[type="checkbox"] {
  margin-right: 6px;
}

.terminos a {
  color: #000000;
  text-decoration: none;
}

.terminos a:hover {
  text-decoration: underline;
}

/* === Botón === */
.formulario button[type="submit"] {
  margin-top: 20px;
  background-color: #000000;
  color: white;
  padding: 14px 28px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.formulario button:hover {
  background-color: #000000;
}

/* === Responsive para móviles === */
@media screen and (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }

  .form-group {
    min-width: 100%;
  }
}

/* === Campos capturados (readonly) === */
.form-group input[readonly] {
  background-color: #f1f1f1;
  color: #555;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 12px;
  width: 100%;
  font-size: 15px;
  cursor: not-allowed;
  box-sizing: border-box;
}

/* Paso completado (verde, texto blanco) */
.step.completado {
  background-color: #28a745;
  color: white;
  border: 2px solid #28a745;
  font-weight: bold;
}

.step-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: left;
}

.check-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: white;
  color: #28a745;
  border-radius: 50%;
  font-weight: bold;
  font-size: 14px;
}

.step-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}

/* === Página de Gracias === */

.encabezado-gracias {
  background-color: #000000;
  padding: 20px;
  border-bottom: 3px solid #000000;
}

.contenedor-header {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-gracias {
  height: 60px;
  max-width: 100%;
}

/* Breadcrumb personalizado */
.breadcrumb-gracias {
  background-color: #f9f9f9;
  font-size: 14px;
  padding: 16px 20px;
  color: #444;
}

.breadcrumb-gracias a {
  color: #000000;
  text-decoration: none;
}

.breadcrumb-gracias a:hover {
  text-decoration: underline;
}

/* Contenido principal de la página de gracias */
.contenido-gracias {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}

.linea-pasos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 30px;
  max-width: 600px; /* ajustado para que coincida con el contenedor del contenido */
  margin-left: auto;
  margin-right: auto;
}

.paso {
  text-align: center;
  background-color: white;
  padding: 16px;
  border-radius: 8px;
  font-size: 14px;
  color: #000000;
  font-weight: 500;
  border: 2px solid #000000;
  transition: all 0.2s ease;
  min-width: 120px;
}

.paso.activo {
  background-color: #000000;
  color: white;
  font-weight: bold;
}

.paso.completado {
  background-color: #28a745;
  color: white;
  font-weight: bold;
  border-color: #28a745;
}

/* Mensaje de confirmación ———— FIX: hacerlo fluido y centrado */
.mensaje-confirmacion {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  /* ❌ antes: width: 1200px; */
  width: 100%;
  max-width: 800px;      /* tope cómodo en desktop */
  margin: 0 auto;
  padding: 40px 20px;

  box-sizing: border-box;
}

.icono-check {
  font-size: 60px;
  color: #000000;
  margin-bottom: 20px;
}

.mensaje-principal {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #111;
}

.mensaje-secundario {
  font-size: 16px;
  margin-bottom: 20px;
  color: #333;
}

.mensaje-contacto {
  font-size: 15px;
  color: #444;
}

.mensaje-contacto a {
  color: #000000;
  font-weight: bold;
}

/* Footer */
.pie-pagina-gracias {
  margin-top: 60px;
  padding: 30px 20px;
  background-color: #f7f7f7;
  font-size: 13px;
  text-align: center;
  color: #444;
  border-top: 1px solid #ddd;
}

.pie-pagina-gracias a {
  color: #000000;
  margin: 0 6px;
}

/* Responsive: 2 columnas en móviles */
@media screen and (max-width: 768px) {
  .linea-pasos {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }
}

/* Radio options / hints (secciones auxiliares) */
.identity-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1em 0;
}

.identity-fieldset legend {
  font-weight: bold;
  margin-bottom: 10px;
}

.radio-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.radio-option input[type="radio"] {
  margin-top: 2px;
  flex-shrink: 0;
}
.radio-option label {
  flex: 1;
  cursor: pointer;
}

/* Aviso para la opción "None apply" */
.info-hint {
  font-size: 14px;
  line-height: 1.45;
  color: #344054;
  background: #F2F4F7;
  border: 1px solid #E4E7EC;
  border-radius: 8px;
  padding: 10px 12px;
}
.info-hint strong { color: #101828; }

/* Adaptación móvil */
@media (max-width: 768px) {
 .steps {
    grid-template-columns: repeat(2, 1fr); /* en lugar de columna única */
    gap: 10px;
  }

  .step {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-size: 14px;
  }

  .mensaje-confirmacion {
    padding: 20px;
    max-width: 100%;
    text-align: center;
  }

  .mensaje-confirmacion .icono-check {
    font-size: 40px;
    margin-bottom: 10px;
  }

  .mensaje-principal {
    font-size: 18px;
    font-weight: bold;
  }

  .mensaje-secundario,
  .mensaje-contacto {
    font-size: 14px;
    line-height: 1.5;
  }
}

