/* Start custom CSS *//* Importar una fuente moderna */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --bg-body: #f3f4f6;
  --border-color: #d1d5db;
  --focus-ring: rgba(37, 99, 235, 0.2);
}

html {
  font-size: 15px;
}

.img-logo {
  width: 100%;
  max-width: 316px!important;
  margin: 0 auto 1.5rem;
  display: block;
}

.form-section,
.form-section-up {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.form-wrapper {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-body);
  padding: 2.5rem 1.25rem;
  display: flex;
  justify-content: center;
}

.modern-form,
.modern-form-search {
  margin: 1.25rem auto;
  background: #ffffff;
  max-width: 650px;
  width: 100%;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Encabezados */
.form-header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 1rem;
}

.form-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.form-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.section-title {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
  margin-top: 0.75rem;
}

.section-title h4 {
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  margin: 0;
}

.section-title p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Layout Groups */
.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row > div {
  flex: 1;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
}
.grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

/* Labels e Inputs */
.form-wrapper label {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  display: flex;
  gap: 0.25rem;
  flex-direction: column;
}

.form-wrapper label .label-header {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
  color: var(--text-main);
}

.form-wrapper label .label-desc,
.file-select .label-desc {
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.7em;
  color: var(--text-muted);
  margin: 0;
}

.form-wrapper input[type="text"],
.form-wrapper input[type="email"],
.form-wrapper input[type="url"],
.form-wrapper select,
.form-wrapper textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-wrapper input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.form-wrapper textarea {
  resize: vertical;
  min-height: 5rem;
}

/* Helpers */
.divider {
  border: 0;
  border-top: 1px solid #f3f4f6;
  margin: 1.5rem 0;
}

.mb-10 {
  margin-bottom: 0.625rem;
}
.mt-15 {
  margin-top: 1rem;
}

/* Botón */
.btn-submit {
  width: 100%;
  /* background-color: var(--primary-color);
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 0.625rem; */
}

/* .btn-submit:hover {
  background-color: var(--primary-hover);
} */

.marc-obli {
  color: rgb(217, 48, 37);
  padding-left: 0.25em;
}

.form-wrapper label.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5em;
  flex-direction: row;
}

.form-wrapper label.radio-option input {
  margin: 0;
}

/* Checked */
.radio-option input:checked + .radio-custom {
  border-color: #111;
}

.radio-option input:checked + .radio-custom::after {
  transform: scale(1);
}

/* Hover */
.radio-option:hover .radio-custom {
  border-color: #111;
}

/* Focus accesible */
.radio-option input:focus-visible + .radio-custom {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.form-message {
  margin: 1.25rem auto 0;
  background: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid #c3e6cb;
  max-width: 650px;
  width: 100%;
}

.input-readonly {
  background-color: #f3f4f6;
  color: #6b7280;
  border: 1px solid #d1d5db;
  cursor: not-allowed;
}

.input-readonly:focus {
  outline: none;
  box-shadow: none;
  border-color: #d1d5db;
}

.input-readonly {
  background-image:
    linear-gradient(transparent, transparent),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%239ca3af' viewBox='0 0 24 24'%3E%3Cpath d='M12 1a5 5 0 00-5 5v3H6a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V11a2 2 0 00-2-2h-1V6a5 5 0 00-5-5zm-3 8V6a3 3 0 016 0v3H9z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

/* Ocultar secciones por defecto */
.form-section {
  display: none;
  animation: fadeIn 0.5s;
}
.form-section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Barra de Progreso */
.progress-container {
  margin: 1.5rem auto;
  max-width: 650px;
  width: 100%;
}
.progress-bar-bg {
  background-color: #e0e0e0;
  height: 0.5rem;
  border-radius: 0.25rem;
  overflow: hidden;
}
.progress-bar-fill {
  background-color: var(--primary-color);
  height: 100%;
  width: 0%;
  transition: width 0.4s ease;
}
.step-count {
  text-align: right;
  font-size: 0.9em;
  color: #666;
  margin-top: 0.5rem;
}

/* Botones de navegación */
.form-navigation {
  margin-top: 1.25rem;
  gap: 1.25rem;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #eee;
  padding-top: 20px;
}
/* .btn-nav {
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
}
.btn-prev {
  background-color: #6c757d;
  color: white;
}
.btn-next {
  background-color: #007cba;
  color: white;
}
.btn-submit {
  background-color: #28a745;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
} */

.modern-form-wrapper,
#buscador-empresas {
  font-family: inherit;
  scroll-margin-top: 4.5rem;
}

#search-email {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  flex-grow: 1;
}

.form-group-search {
  display: flex;
  gap: 1.25rem;
}

#resultado-busqueda {
  padding: 0.5rem 1.5rem;
  border-radius: 0.25rem;
  font-weight: 400;
  max-width: 650px;
  margin: 0 auto;
}
/* Clases para los mensajes */
.mensaje-error {
  color: #d63638;
  background-color: #fbeaea;
  border: 1px solid #d63638;
}
.mensaje-exito {
  color: #155724;
  background: #d4edda;
  border: 1px solid #c3e6cb;
}
.mensaje-info {
  color: #8c8f94;
  background-color: #f0f0f1;
  border: 1px solid #8c8f94;
}

.spinner {
  width: 1.75rem;
  height: 1.75rem;
  border: 0.25rem solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: block;
  /* vertical-align: middle; */
  margin: 0 auto 1rem;
}

.btn-submit .spinner {
  margin: 0;
  width: 0.9rem;
  height: 0.9rem;
  border-width: 3px;
  border-top-color: #fff;
}

.hidden {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.radio-group {
  display: flex;
  gap: 0.75rem;
}

.radio-btn {
  position: relative;
  cursor: pointer;
  text-align: center;
}

.radio-btn input {
  display: none;
}

.radio-btn span {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 1.5rem;
  border: 2px solid #d1d5db;
  background-color: #ffffff;
  font-weight: 500;
  color: #374151;
  transition: all 0.25s ease;
}

/* Hover */
.radio-btn span:hover {
  border-color: var(--primary-color);
}

/* Seleccionado */
.radio-btn input:checked + span {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
}

.modern-form button,
.modern-form-search button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 1.5rem;
  border: 2px solid var(--primary-color);
  background-color: var(--primary-color);
  font-weight: 500;
  color: #ffffff;
  transition: all 0.25s ease;
  font-size: 0.875rem;
  text-transform: none;
  line-height: 1.2em;
  letter-spacing: 0;
}

.modern-form-search button:hover,
.modern-form-search button:focus,
.modern-form button:hover,
.modern-form button:focus {
  border: 2px solid #1d58d8;
  background-color: #1d58d8;
  color: #ffffff;
}

.modern-form button.btn-submit .btn-wrapper,
.modern-form button.btn-submit {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.form-reg,
.form-search,
#form-update,
.meses_abierto {
  display: none;
  animation: fadeIn 0.5s;
}

.form-reg.active,
.form-search.active,
#form-update.active,
.meses_abierto.active {
  display: block;
}

#preview-logo-container img {
  max-width: 200px;
  min-height: 200px;
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid #ddd;
  display: block;
  object-fit: contain;
}

.btn-remove-image {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background: var(--e-a-bg-logo) !important;
  color: white;
  border: none !important;
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  cursor: pointer;
  font-weight: bold;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  padding: 0 !important;
}

/* Estilamos el label para que parezca un botón */
.btn-archivo {
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-family: sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: background 0.3s;
  width: max-content;
  margin-top: 1.25rem;
}

.btn-archivo {
  font-size: 0.875rem;
}

#mi-archivo,
#mi-archivo-2 {
  display: none;
}

#info-archivo,
#info-archivo-2 {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* Efecto Hover */
.btn-archivo:hover {
  background-color: var(--primary-hover);
}

/* Responsividad */
@media (max-width: 678px) {
  html {
    font-size: 16px !important;
  }

  .img-logo {
    max-width: 180px!important;
    margin: 0 auto 1rem;
  }

  .modern-form,
  .modern-form-search {
    padding: 1rem;
  }

  .form-row,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .radio-group,
  .form-group-search {
    gap: 0.5;
    flex-direction: column;
    margin-top: 0.75rem;
  }

  .radio-group label {
    margin-bottom: 0;
  }
}/* End custom CSS */