@charset "UTF-8";
@import url(https://fonts.googleapis.com/css?family=Montserrat:200,300,400,500,600,700|Work+Sans:400,700&display=swap);

/* * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
} */

input {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  font-family: "Work Sans", sans-serif, sans-serif;
  margin: 0px;
  padding: 0px;
  width: 100%;
  font-size: 1em;
  color: #525252
}

.header {
  padding: 12px 12px;
  text-align: center;
}

.container-barra-progreso {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 !important;
}

.container-barra-progreso .container {
  display: block;
  width: 100%;
  height: 8px;
  background-color: rgb(218, 218, 218);
  border-radius: 18px;
  overflow: hidden;
}

.barra-progreso {
  height: 100%;
  background-color: #435ebe;
}
/* 
.form-rh1 {
  border: 1px solid rgb(204, 204, 204);
  border-radius: 8px;
  padding: 1%;
  width: 98% !important */
/* } */

.form-rh1 .step fieldset {
  /* padding: 12px 6px; */
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  border: none;
  border-radius: 4px;

}

.form-rh1 .step fieldset legend {
  font-size: 20px;
  font-weight: 600;
}

/* .step fieldset>label {
  display: flex;
  flex-direction: column;
  gap: 8px;
} */

input[type="text"] {
  float: left;
  width: 100% !important;
  padding: 3%;
  border: 1px solid #ccc;
  border-radius: 5px;
  outline: none;
}

input[type="number"] {
  float: left;
  width: 100%;
  padding: 3%;
  border: 1px solid #ccc;
  border-radius: 5px;
  outline: none;
}

/* input[type="datetime-local"] {
  float: left;
  width: 100%;
  padding: 3%;
  border: 1px solid #ccc;
  border-radius: 5px;
  outline: none;
} */

input[type="datatime-local"] {
  background-image: url(../img/icons/date_blue.png) !important;
  background-position: calc(100% - 20px) calc(1em + 2px), calc(100% - 15px) calc(1em + 2px), 100% 0 !important;
  background-size: 17px 17px, 5px 5px, 2.5em 2.5em !important;
  background-repeat: no-repeat !important;
}

select,
datalist {
  float: left;
  padding: 3%;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 5px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #82b440 50%), linear-gradient(135deg, #82b440 50%, transparent 50%), linear-gradient(to right, transparent, transparent);
  background-position: calc(100% - 20px) calc(1em + 2px), calc(100% - 15px) calc(1em + 2px), 100% 0;
  background-size: 5px 5px, 5px 5px, 2.5em 2.5em;
  background-repeat: no-repeat;
  font-family: "Work Sans", sans-serif, sans-serif !important;
  outline: none;
}

footer {
  margin: 12px;
  display: flex;
  justify-content: flex-end;
  padding-top: 14px;
  gap: 8px;
}

footer .btn {
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}

footer .btn-anterior {
  border: none;
  background-color: white;
  border: 1px solid rgb(216, 216, 216);
}

footer .btn-siguiente {
  border: none;
  background-color: #435ebe;
  color: white;
}

@media screen and (max-width:1000px) {
  .form-rh1 .step>fieldset {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width:700px) {
  .form-rh1 .step>fieldset {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width:368px) {
  .form-rh1 .step>fieldset {
    grid-template-columns: repeat(1, 1fr);
  }
}


.input-error {
  outline: 2px solid red;
}

.mensaje_success {
  background-color: rgba(0, 128, 0, 0.5);
  color: white;
  width: fit-content;
  padding: 12px;
  margin: 4px;
  border-radius: 4px;
  position: absolute;
  top: 28px;
  right: 8px;
}

.error-rango {
  background-color: rgba(255, 0, 0, 0.753);
  margin: 2px;
  color: white;
  border-radius: 6px;
  padding: 12px;
}

.btn_noAplica {
  background-color: #005DCA;
  color: white;
  position: relative;
  z-index: 100;
  cursor: pointer;
  display: inline-flex;
  justify-content: end;
  align-items: flex-end;
  text-decoration: underline;
  padding: 12px 22px;
  border: none;
  margin: 18px 8px;
  width: fit-content;
}

.tabla-rh1 {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
}

.tabla-rh1 th, 
.tabla-rh1 td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

.tabla-rh1 th {
  background-color: #0073e6;
  color: white;
  font-weight: bold;
}

.tabla-rh1 tr:nth-child(even) {
  background-color: #f9f9f9;
}

.btn-pdf {
  text-decoration: none;
  color: #0073e6;
  font-weight: bold;
}

.btn-pdf:hover {
  text-decoration: underline;
}

.info {
  background: #f0f4f8;
  border: 1px solid #d0d7de;
  padding: 12px;
  border-radius: 6px;
  color: #555;
  margin-top: 10px;
}
.error {
  background: #ffe6e6;
  border: 1px solid #ff9999;
  padding: 12px;
  border-radius: 6px;
  color: #c00;
  margin-top: 10px;
}

/* ==============================
   🎯 MODAL - Selección y Registro de comercios - mi cuenta
   ============================== */

.modal {
  display: none;
  position: fixed;
  inset: 0; /* top: 0; left: 0; right: 0; bottom: 0 simplificado */
  z-index: 999;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(2px);
}

/* --- Contenedor del contenido --- */
.modal-content {
  background: #ffffff;
  padding: 25px 30px;
  width: 90%;
  max-width: 680px;
  height: fit-content;
  overflow-y: scroll;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  animation: fadeIn 0.25s ease-out;
}

/* --- Animación de entrada --- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-5px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* --- Encabezado del modal --- */
.modal-header {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1c1c1c;
  text-align: center;
  letter-spacing: 0.3px;
}

/* --- Lista de opciones --- */
.modal-list {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 18px;
  padding-right: 4px;
}

/* --- Item de la lista (comercios) --- */
.modal-item {
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1px solid #ddd;
  border-radius: 2px;
  cursor: pointer;
  background: #fafafa;
  transition: all 0.2s ease;
}

.modal-item:hover {
  background: #f0f7ff;
  border-color: #0073e6;
}

/* --- Botón cerrar --- */
.modal-close {
  display: inline-block;
  background: #e0e0e0;
  color: #000;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: #d6d6d6;
}


.btn-elegir {
  background: #0073e6;
  color: #fff;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  margin-right: 18px;
  transition: background 0.25s ease, transform 0.15s ease;
}

.btn-elegir:hover {
  background: #0056b3;
  transform: translateY(-1px);
}

.btn-guardar {
  background: #0073e6;
  color: #fff;
  padding: 9px 18px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.25s ease;
}

.btn-guardar:hover {
  background: #0073e6b7;
}

.modal-list::-webkit-scrollbar {
  width: 8px;
}

.modal-list::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.modal-list::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.35);
}


/* ============================= */
/* LISTA DE ESTABLECIMIENTOS     */
/* ============================= */

.lista-establecimientos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 16px 0 24px;
}

.item-establecimiento {
  background: #ffffff;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.item-establecimiento:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.item-establecimiento strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 2px;
}

.item-establecimiento small {
  font-size: 13px;
  color: #6b7280;
}

/* ============================= */
/* BOTONES                       */
/* ============================= */

.btn-elegir {
  margin-top: 8px;
  background-color: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-elegir:hover {
  background-color: #1e40af;
}

.btn-guardar {
  background-color: #16a34a;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-guardar:hover {
  background-color: #15803d;
}

/* ============================= */
/* MODAL JURÍDICA                */
/* ============================= */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 30;
}

.modal.active {
  display: flex;
}

/* ============================= */
/* CONTENIDO DEL MODAL           */
/* ============================= */

.modal-content {
  background: #ffffff;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;              /* ✅ CLAVE */
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;                 /* ✅ CLAVE */
  flex-direction: column;        /* ✅ CLAVE */
  overflow-y: auto;              /* ✅ CLAVE */
  animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #111827;
}

/* ============================= */
/* FORMULARIO                    */
/* ============================= */

.label_input {
  display: block;
  margin-bottom: 14px;
}

.title_input {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}

.input_new {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  transition: border 0.15s ease, box-shadow 0.15s ease;
}

.input_new:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.column-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

/* ============================= */
/* BOTONERA (SIEMPRE VISIBLE)    */
/* ============================= */


.modal-close {
  background: #f3f4f6;
  color: #374151;
  border: none;
  border-radius: 6px;
  padding: 9px 14px;
  font-size: 14px;
  cursor: pointer;
}

.modal-close:hover {
  background: #e5e7eb;
}

/* ============================= */
/* RESPONSIVE                    */
/* ============================= */

@media (max-width: 640px) {
  .column-2 {
    grid-template-columns: 1fr;
  }

  .modal-content {
    margin: 12px;
    padding: 18px;
  }
}
