:root {
  --orange: #ff5c00;
  --white: #ffffff;
  --gray: #6c757d;
  --bg: #f8f9fa;
  --danger: #b71c1c;
  --border: #dee2e6;
}

/* E-FIRMA SECTION */
.efirma-section {
  background: #f8f9fa;
  border: none;
  padding: 0;
  margin: 24px 0;
}

.efirma-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.efirma-form {
  padding: 20px;
}

.efirma-form legend {
  font-size: 24px;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 20px;
  padding: 0;
}

.file-input-wrapper {
  margin-bottom: 20px;
}

.file-input-wrapper label {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-text);
  margin-bottom: 8px;
}

.custom-file-input {
  position: relative;
  display: flex;
  gap: 12px;
  padding-left: 64px;
  padding-right: 20px;
  height: 48px;
  background: var(--orange);
  color: white;
  border-radius: 15px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
  box-sizing: border-box;
}

.custom-file-input:hover {
  background: #e65300;
}

.custom-file-input input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.file-icon {
  position: absolute;
  left: 0px;
  width: 40px;
  height: 36px;
  background: white;
  border-radius: 14px 0 0 14px;
  object-fit: contain;
  padding: 6px;
}

.file-text {
  font-size: 14px;
  line-height: 1;
  align-self: center;
}

.password-input {
  margin-top: 8px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.field {
  display: block;
  font-family: system-ui, sans-serif;
}

.security-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 13px;
  color: var(--gray);
}

.shield-icon {
  width: 20px;
  height: 20px;
  opacity: 0.6;
}

.efirma-image {
  width: 80%;
  height: 320px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.efirma-image img {
  display: block;
  width: 80%;
  height: 80%;
  object-fit: contain;
  margin: 1.2rem auto auto auto;
}

/* Cuadro informativo para tipos de descarga */
#download-info-box {
  margin-top: 16px;
  padding: 14px 16px;
  background: #ff8e4d;
  border-left: 4px solid #ff5e00;
  border-radius: 8px;
  display: none;
  gap: 12px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#download-info-box.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

#download-info-box .info-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  fill: #ffffff;
}

#download-info-box .info-text {
  margin: 0;
  font-size: 14px;
  color: #ffffff;
  line-height: 1.5;
  font-weight: 500;
  flex: 1;
}

@media (max-width: 900px) {
  .efirma-content {
    grid-template-columns: 1fr;
  }

  .efirma-image {
    height: 300px;
  }
}

/* Parámetros CFDI*/
#cfdi-params {
  background: #f5f5f5;
  border: none;
  border-radius: 12px;
  padding: 24px;
}

#cfdi-params legend {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  padding: 0;
}

.cfdi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.cfdi-field {
  margin-bottom: 16px;
}

.cfdi-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.cfdi-field select,
.cfdi-field input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  color: #333;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.cfdi-field select:focus,
.cfdi-field input:focus {
  outline: none;
  border-color: #ff5c00;
}

.cfdi-field input::placeholder {
  color: #999;
}

.cfdi-notes {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  font-size: 12px;
  color: #666;
  line-height: 1.6;
}

.cfdi-notes li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
}

.cfdi-notes li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #ff5c00;
  font-weight: bold;
}

.cfdi-buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.btn-cfdi {
  flex: 1;
  min-width: 150px;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  color: white;
}

.btn-xml {
  background: #ff5c00;
}

.btn-xml:hover {
  background: #e65300;
}

.btn-pdf {
  background: #ff5c00;
}

.btn-pdf:hover {
  background: #e65300;
}

.btn-detail {
  background: #ff5c00;
}

.btn-detail:hover {
  background: #e65300;
}

.btn-excel {
  background: #ff5c00;
}

.btn-excel:hover {
  background: #e65300;
}

/* Responsive */
@media (max-width: 720px) {
  .cfdi-grid {
    grid-template-columns: 1fr;
  }

  .cfdi-buttons {
    flex-direction: column;
  }

  .btn-cfdi {
    width: 100%;
  }
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg);
  margin: 0;
  padding: 0;
}

.container {
  max-width: 900px;
  margin: 20px auto;
  background: white;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

header {
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: center;
  margin-bottom: 25px;
  gap: 16px;
}

header img {
  width: 220px;
}

.escudo {
  width: 20px;
  height: auto;
  opacity: 0.5;
  position: relative;
  top: 5px;
  margin-right: 7px;
}

.title {
  text-align: center;
}

.title h1 {
  margin: 0;
  font-size: 26px;
  color: var(--white);
  background-color: var(--orange);
  border-radius: 7px;
  padding: 6px 12px;
  /* ⬅️ reduce espacio lateral */
  display: inline-block;
  /* ⬅️ ancho solo del texto */
}

.client-info {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 600;
}

.client-name {
  color: var(--orange);
}

fieldset {
  border: 1px solid #dee2e6;
  background: var(--bg);
  padding: 18px;
  border-radius: 12px;
  margin: 24px 0;
}

legend {
  padding: 0 10px;
  color: var(--dark-text);
  font-weight: 600;
  opacity: 0.7;
}

label {
  display: block;
  margin: 12px 0 6px;
  font-size: 14px;
  font-weight: 500;
}

input,
select {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #dee2e6;
  font-size: 14px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.submit {
  margin: 24px auto 0;
  display: block;
  padding: 14px 24px;
  background: var(--orange);
  color: white;
  border-radius: 12px;
  border: 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.submit:hover {
  background: #e65300;
}

.help {
  font-size: 13px;
  color: var(--gray);
  margin-top: 6px;
}

.segmented {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.segmented button {
  flex: 1;
  min-width: 140px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid #dee2e6;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  font-weight: 700;
  color: var(--orange);
}

.segmented button.active {
  background: var(--orange);
  color: #ffffff;
  border-color: var(--white);
}

#errors {
  display: none;
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fdecea;
  color: var(--danger);
  font-size: 13px;
  border: 1px solid #f5e4c2;
}

#errors ul {
  margin: 0;
  padding-left: 18px;
}

#statusBox {
  margin-top: 20px;
  padding: 15px;
  border-radius: 12px;
  background: #e8f0fe;
  color: #0f4c97;
  font-weight: 600;
  display: none;
  font-size: 14px;
}

#statusBox pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  margin-top: 8px;
}

.actions-row {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.actions-row .submit {
  margin: 0;
}

@media (max-width: 720px) {
  header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  header img {
    margin: 0 auto;
  }

  .row {
    grid-template-columns: 1fr;
  }
}

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal {
  background: #fff;
  border-radius: 16px;
  padding: 20px 24px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.modal h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 20px;
  color: var(--dark-text);
}

.modal p {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: var(--gray);
}

.modal pre {
  text-align: left;
  background: #f8f9fa;
  padding: 10px;
  border-radius: 8px;
  max-height: 200px;
  overflow: auto;
  font-size: 12px;
}

.modal-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-secondary {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: #333;
  font-size: 14px;
  cursor: pointer;
}

.btn-primary {
  padding: 8px 16px;
  border-radius: 999px;
  border: 0;
  background: var(--orange);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: default;
}

.decl-card {
  border: none;
  background: #f7f7f7;
  border-radius: 20px;
  padding: 10px 32px;
  max-width: 900px;
  margin: 0 auto;
}

/* Título */
.decl-card legend {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--dark-text);
  opacity: 0.7;
}

/* Layout */
.decl-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Formulario */
.decl-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.form-group input,
.form-group select {
  width: 60%;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
  box-sizing: border-box;
}

/* Botón */
.btn-submit {
  margin-top: 12px;
  align-self: center;
  padding: 10px 24px;
  border: none;
  border-radius: 20px;
  background: var(--orange);
  color: white;
  font-weight: 600;
  cursor: pointer;
}

/* Imagen */
.decl-image {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.decl-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/** ===== Login ===== */

.bg-login-style {
  background-image: url('../src/images/bg_login.png');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  align-items: center;
  min-height: 100vh;
  display: flex !important;
  margin-left: 5%;
}

.first-background {
  position: relative !important;
  align-items: start !important;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  height: fit-content;
  box-shadow: 1px 1px 20px rgba(0, 0, 0, 0.3);
  width: fit-content;
  justify-content: center;
  padding: 35px 45px 35px 45px;
  border-radius: 30px;
}

.login-logo {
  width: 200px;
  justify-self: start !important;
  margin-bottom: 30px;
}

.second-background {
  align-items: center;
  background-color: #eaeaea;
  display: flex;
  flex-direction: column;
  height: fit-content;
  width: fit-content;
  justify-content: center;
  padding: 45px 40px 45px 40px;
  border-radius: 30px;
}

.login-title {
  margin-top: 0px;
  margin-bottom: 4px;
  font-weight: 600;
}

.login-subtitle {
  margin-top: 0px;
  margin-bottom: 20px;
}

.login-inputs {
  display: flex;
  width: 300px;
  margin-bottom: 1 0px;
}

.forgot-password {
  margin-bottom: 20px;
  text-align: center;
  color: #ff5c00;
  font-weight: bold;
}

.login-button {
  width: 200px;
  align-self: center;
  border-radius: 10px;
}

.signup-text {
  margin-top: 20px;
  text-align: center;
  text-decoration: none;
  color: #ff5c00;
}

/*? Tablets y pantallas medianas (768px - 1024px) */
@media (max-width: 1024px) {
  .bg-login-style {
    padding: 15px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .first-background {
    width: 100% !important;
    max-width: 340px !important;
    padding: 20px 20px !important;
    border-radius: 20px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .login-logo {
    width: 140px !important;
    margin-bottom: 15px !important;
    align-self: start !important;
  }

  .second-background {
    padding: 25px 20px !important;
    border-radius: 15px !important;
    width: 80% !important;
  }

  .login-title {
    font-size: 20px !important;
  }

  .login-subtitle {
    font-size: 13px !important;
    margin-bottom: 15px !important;
  }

  .login-inputs {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px !important;
    font-size: 14px !important;
    margin-bottom: 12px !important;
  }

  label {
    font-size: 14px !important;
  }

  .forgot-password {
    margin-bottom: 15px !important;
    font-size: 13px !important;
  }

  .login-button {
    width: 100% !important;
    max-width: 200px !important;
    padding: 10px !important;
    font-size: 14px !important;
  }

  .signup-text {
    font-size: 13px !important;
    margin-top: 15px !important;
  }
}

/*? Tablets pequeñas y móviles grandes (481px - 767px) */
@media (max-width: 767px) {
  .first-background {
    padding: 25px 30px !important;
    box-shadow: 1px 1px 20px rgba(0, 0, 0, 0.3);
    align-items: center !important;
    justify-content: center !important;
  }

  .login-logo {
    width: 160px !important;
    margin-bottom: 20px !important;
    align-self: start !important;
  }

  .second-background {
    padding: 30px 25px !important;
    border-radius: 20px !important;
    width: 80% !important;
  }

  .login-title {
    font-size: 22px !important;
  }

  .login-subtitle {
    font-size: 14px !important;
  }

  .login-inputs {
    width: 100% !important;
    max-width: 260px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
  }

  .login-button {
    width: 180px !important;
    padding: 10px !important;
    font-size: 15px !important;
  }

  .forgot-password,
  .signup-text {
    font-size: 14px !important;
  }
}

/*? Móviles pequeños (320px - 480px) */
@media (max-width: 480px) {
  .bg-login-style {
    padding: 15px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .first-background {
    width: 100% !important;
    max-width: 340px !important;
    padding: 20px 20px !important;
    border-radius: 20px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .login-logo {
    width: 140px !important;
    margin-bottom: 15px !important;
    align-self: start !important;
  }

  .second-background {
    padding: 25px 20px !important;
    border-radius: 15px !important;
    width: 80% !important;
  }

  .login-title {
    font-size: 20px !important;
  }

  .login-subtitle {
    font-size: 13px !important;
    margin-bottom: 15px !important;
  }

  .login-inputs {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px !important;
    font-size: 14px !important;
    margin-bottom: 12px !important;
  }

  label {
    font-size: 14px !important;
  }

  .forgot-password {
    margin-bottom: 15px !important;
    font-size: 13px !important;
  }

  .login-button {
    width: 100% !important;
    max-width: 200px !important;
    padding: 10px !important;
    font-size: 14px !important;
  }

  .signup-text {
    font-size: 13px !important;
    margin-top: 15px !important;
  }
}

/*? Móviles muy pequeños (< 360px) */
@media (max-width: 359px) {
  .first-background {
    padding: 15px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .login-logo {
    width: 120px !important;
    align-self: start !important;
  }

  .second-background {
    padding: 20px 15px !important;
    border-radius: 15px !important;
    width: 80% !important;
  }

  .login-title {
    font-size: 18px !important;
  }

  .login-inputs {
    font-size: 13px !important;
  }

  .login-button {
    font-size: 13px !important;
  }
}

/** ===== REGISTRO (REGISTER) ===== */

.bg-register-style {
  background-image: url('../src/images/bg_regis.png');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.first-background-register {
  position: relative;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: fit-content;
  box-shadow: 1px 1px 30px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 600px;
  padding: 20px 20px 30px 45px;
  border-radius: 30px;
  margin-right: 5%;
}

.register-logo {
  width: 200px;
  margin-bottom: 30px;
  align-self: flex-start;
}

.second-background-register {
  background-color: #eaeaea;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90%;
  padding: 20px 20px 20px 20px;
  border-radius: 30px;
}

.register-title {
  margin-top: 0;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 24px;
  text-align: center;
}

.register-subtitle {
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
  color: #6c757d;
  font-size: 14px;
}

.register-form {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.register-label {
  margin-top: 12px;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.register-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid #dee2e6;
  font-size: 14px;
  margin-bottom: 10px;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.register-input:focus {
  outline: none;
  border-color: #ff5c00;
}

.register-input::placeholder {
  color: #999;
}

.register-checkbox-wrapper {
  display: flex;
  align-items: center;
  margin: 4px 0;
  gap: 8px;
}

.register-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin: 0;
}

.register-checkbox-label {
  font-size: 13px;
  color: #333;
  cursor: pointer;
  user-select: none;
}

.register-button {
  width: 100%;
  max-width: 250px;
  align-self: center;
  padding: 12px 24px;
  background: #ff5c00;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 10px;
}

.register-button:hover {
  background: #e65300;
}

.register-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #333;
}

.register-link {
  color: #ff5c00;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.register-link:hover {
  color: #e65300;
  text-decoration: underline;
}

/* ===== RESPONSIVE REGISTER ===== */

/* Tablets y pantallas medianas (768px - 1024px) */
@media (max-width: 1024px) {
  .bg-register-style {
    justify-content: center;
    padding: 15px;
  }

  .first-background-register {
    max-width: 550px;
    padding: 30px 35px;
    margin-right: 0;
  }

  .register-logo {
    width: 180px;
    margin-bottom: 25px;
  }

  .second-background-register {
    padding: 35px 30px 20px;
  }

  .register-title {
    font-size: 22px;
  }

  .register-input {
    padding: 11px 14px;
    font-size: 13px;
  }

  .register-button {
    max-width: 220px;
    font-size: 15px;
  }
}

/* Tablets pequeñas (600px - 767px) */
@media (max-width: 767px) {
  .bg-register-style {
    padding: 10px;
  }

  .first-background-register {
    max-width: 480px;
    padding: 25px 30px;
    border-radius: 25px;
  }

  .register-logo {
    width: 160px;
    margin-bottom: 20px;
    align-self: center;
  }

  .second-background-register {
    padding: 30px 25px 20px;
    border-radius: 25px;
  }

  .register-title {
    font-size: 20px;
  }

  .register-subtitle {
    font-size: 13px;
  }

  .register-label {
    font-size: 13px;
  }

  .register-input {
    padding: 10px 14px;
    font-size: 13px;
  }

  .register-checkbox-label {
    font-size: 12px;
  }

  .register-button {
    max-width: 200px;
    padding: 11px 20px;
    font-size: 14px;
  }

  .register-footer {
    font-size: 13px;
  }
}

/* Móviles (480px - 599px) */
@media (max-width: 599px) {
  .first-background-register {
    max-width: 380px;
    padding: 20px 25px;
    border-radius: 20px;
  }

  .register-logo {
    width: 140px;
    margin-bottom: 15px;
  }

  .second-background-register {
    padding: 25px 20px 15px;
    border-radius: 20px;
  }

  .register-title {
    font-size: 18px;
    margin-bottom: 3px;
  }

  .register-subtitle {
    font-size: 12px;
    margin-bottom: 15px;
  }

  .register-label {
    font-size: 12px;
    margin-top: 10px;
  }

  .register-input {
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 8px;
  }

  .register-checkbox-wrapper {
    margin: 12px 0;
  }

  .register-checkbox {
    width: 16px;
    height: 16px;
  }

  .register-checkbox-label {
    font-size: 11px;
  }

  .register-button {
    max-width: 180px;
    padding: 10px 18px;
    font-size: 13px;
    margin-top: 8px;
  }

  .register-footer {
    font-size: 12px;
    margin-top: 15px;
  }
}

/* Móviles pequeños (320px - 479px) */
@media (max-width: 479px) {
  .bg-register-style {
    padding: 8px;
  }

  .first-background-register {
    max-width: 100%;
    padding: 18px 20px;
    border-radius: 18px;
  }

  .register-logo {
    width: 120px;
    margin-bottom: 12px;
  }

  .second-background-register {
    padding: 20px 18px 12px;
    border-radius: 18px;
  }

  .register-title {
    font-size: 17px;
  }

  .register-subtitle {
    font-size: 11px;
  }

  .register-input {
    padding: 9px 12px;
    font-size: 12px;
  }

  .register-checkbox-wrapper {
    gap: 6px;
    margin: 10px 0;
  }

  .register-checkbox {
    width: 15px;
    height: 15px;
  }

  .register-checkbox-label {
    font-size: 10px;
  }

  .register-button {
    max-width: 100%;
    padding: 10px 16px;
    font-size: 13px;
  }

  .register-footer {
    font-size: 11px;
    margin-top: 12px;
  }
}

/* Móviles muy pequeños (< 360px) */
@media (max-width: 359px) {
  .first-background-register {
    padding: 15px 18px;
  }

  .register-logo {
    width: 110px;
  }

  .second-background-register {
    padding: 18px 15px 10px;
  }

  .register-title {
    font-size: 16px;
  }

  .register-input {
    padding: 8px 10px;
    font-size: 11px;
  }

  .register-button {
    font-size: 12px;
    padding: 9px 14px;
  }
}


/* ===== Layout ===== */
/*
  * Se comentaron estas clases porque daban problemas de alineacion en el index.html *
.container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-wrapper {
  border: 2px solid #1e88e5;
  border-radius: 20px;
  padding: 24px;
  background: white;
  width: 380px;
} */

/* ===== Logo ===== */
.logo {
  font-weight: bold;
  font-size: 24px;
  margin-bottom: 20px;
}

.logo span {
  color: #ff5722;
}

/* ===== Card ===== */
.card {
  background: #fafafa;
  padding: 24px;
  border-radius: 16px;
}

.card h2 {
  margin: 0;
}

.card p {
  color: #777;
  margin-bottom: 24px;
}

/* ===== Form ===== */
form {
  display: flex;
  flex-direction: column;
}

label {
  margin-top: 12px;
  margin-bottom: 6px;
}

input {
  padding: 12px 16px;
  border-radius: 999px;
  border: none;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
}

.link {
  margin: 16px 0;
  color: #ff5722;
  text-decoration: none;
  font-size: 14px;
}

button {
  background: #ff5722;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 999px;
  font-size: 16px;
  cursor: pointer;
}

.register {
  margin-top: 14px;
  text-align: center;
  color: #ff5722;
  text-decoration: none;
  font-weight: 500;
}

/** EFOS */
.efos-card {
  border: none;
  background: #f7f7f7;
  border-radius: 20px;
  padding: 18px 32px 24px;
  max-width: 900px;
  margin: 0 auto;
}

/* Título */
.efos-card legend {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--dark-text);
  opacity: 0.7;
}

.efos-card h2 {
  margin: 6px 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: #333;
  text-align: left;
}

/* Layout */
.efos-content {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
}

/* Formulario */
.efos-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: none;
  margin: 0;
}

.efos-header {
  margin-bottom: 2px;
}

.efos-subtitle {
  margin: 0;
  font-size: 13px;
  color: #666;
}

.efos-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.efos-form .form-group input {
  width: 100%;
  max-width: none;
  height: 44px;
}
.efos-notes {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  font-size: 12px;
  color: #666;
  line-height: 1.6;
}