@import url("/src/pages/cliente/cliente.css");
@import url("/src/pages/intro/intro.css");
@import url("/src/pages/grupo-familiar/grupoFamiliar.css");
@import url("/src/pages/cotizacion/cotizacion.css");
@import url("/src/pages/consentimiento/consentimiento.css");



:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: #d8e0ff; /* fondo azul */
}

/* CONTENEDOR GENERAL */
.app {
  min-height: 100vh;
  display: flex;
  align-items: center;      /* centra vertical */
  justify-content: center;  /* centra horizontal */
  padding: 24px;
}

/* TARJETA DEL FORM */
.card {
  width: 100%;
  max-width: 960px;
  background: #eef4ff;
  border-radius: 16px;
  padding: 24px 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  font-size: 22px;
}

/* BARRA DE PROGRESO */
.progress {
  height: 10px;
  background: #dbe7ff;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
}

.bar {
  height: 100%;
  width: 0%;
  background: #2e69ff;
  transition: width 0.25s ease;
}

/* CAMPOS GENERALES */
.field {
  display: grid;
  gap: 6px;
  margin: 14px 0;
}

label {
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #c7d7ff;
  border-radius: 10px;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #2e69ff;
  box-shadow: 0 0 0 2px rgba(46, 105, 255, 0.2);
}

small {
  opacity: 0.75;
}

/* BOTONES */
.actions {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 20px;
}

button {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid #c7d7ff;
  background: white;
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
}

button.primary {
  background: #2e69ff;
  color: white;
  border-color: #2e69ff;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ERRORES */
.error {
  margin: 10px 0 0;
  color: #b91c1c;
  min-height: 1.2em;
}

/* UTILIDADES */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .row {
    grid-template-columns: 1fr;
  }
}

.mp-modal::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.mp-modal {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(820px, 90vw);
}

.mp-modal__card {
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  overflow: hidden;
  padding: 0;
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.mp-modal__header {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  gap: 12px;
  align-items: start;
  padding: 24px 24px 18px;
  border-bottom: 1px solid #e8edf5;
}

.mp-modal__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff3cd;
  color: #8a6d3b;
  font-size: 18px;
}

.mp-modal__title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
}

.mp-modal__subtitle {
  margin: 4px 0 0;
  font-size: 20px;
  color: #475569;
  line-height: 1.35;
}

.mp-modal__close {
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  border-radius: 10px;
  color: #334155;
}
.mp-modal__close:hover { background: #f1f5f9; }

.mp-modal__body {
  padding: 20px 24px 12px;
}

.mp-modal__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.mp-modal__list li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e8edf5;
  border-radius: 12px;
  background: #f8fafc;
}

.mp-modal__badge {
  font-size: 18px;
  font-weight: 700;
  background: #e0f2fe;
  color: #075985;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.mp-modal__itemText {
  display: grid;
  gap: 2px;
}

.mp-modal__date {
  font-weight: 700;
  color: #0f172a;
  font-size: 16px;
}

.mp-modal__name {
  font-size: 16px;
  color: #475569;
}

.mp-modal__note {
  margin: 10px 0 0;
  font-size: 12px;
  color: #64748b;
}

.mp-modal__footer {
  display: flex;
  justify-content: flex-end;
  padding: 20px 24px 24px;
  border-top: 1px solid #e8edf5;
}

.mp-btn {
  border: none;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
}

.mp-btn--ghost {
  background: #0ea5e9;
  color: white;
}
.mp-btn--ghost:hover { filter: brightness(0.95); }
