body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background: var(--background, #f4f6f9);
}




.clFullModal{width:100vw; background:rgba(127, 160, 233, 0.5); height:100vh;  position: fixed; display: none;
  justify-content: center;
z-index: 999;}



#dvModalContainer{width: 100%; max-width: 1200px; height: 96vh; background: #fafafa; margin:1%;
  border-radius: 20px; flex-direction: column;  align-items: stretch; }
  #dvModalTopbar{display:flex;width: 100% ;height: 40px; background: var(--pColor);max-height: 40px;
      flex-direction:row;justify-content: space-between;     border-radius: 10px 10px 0 0;
  }

  #dvModalTitle{flex-grow: 1;}
#dvModalBody{min-height: 300px; height: calc(100% - 60px); flex-grow: 1; display:flex; flex-direction:column;}

  
  #dvModalStatus{width: 100% ;height: 30px; background: var(--contrast);position: relative;max-height: 40px}
  #btModalCLose{display: flex; width: 40px; color: #fafafa; font-size: 1.8em; text-align: center; align-items: center;}




/* Estilos generales para la aplicación Archivo360Pro */

/* Estructura general de la página */
.clFullpage {
  width: 100vw;
  max-width: calc(100vw - 20px);
  min-height: 100vh;
  background: var(--background);
  margin: 0;
  padding: 0;
  border: double 1px #f00;
  overflow-x: hidden;

  
}




.clHeaderBox, .clBodyBox, .clFooterBox {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.clHeaderBox {
  width: 100%;
  max-width: var(--max-width, 1200px);
  margin: 0 auto;
  box-sizing: border-box;
  background: linear-gradient(90deg, var(--pColor, #102a49) 60%, var(--pColor-light, #25416a) 100%);
  color: #fff;
  border-radius: 0 0 12px 12px;
  padding: 1.2rem 1.5rem 0.7rem 1.5rem;
  box-shadow: 0 2px 8px rgba(16,42,73,0.10);
  display: flex;
  flex-direction: row;
  align-items: center;
  border: none;
  gap: 1.2rem;
  justify-content: flex-start;
}

.clheaderLogo {
  height: 40px;
  width: auto;
  margin-right: 1.2rem;
  display: flex;
  align-items: center;
}

.sub-toolbar {
  width: 100%;
  max-width: var(--max-width, 1200px);
  margin: 0 auto 1.2rem auto;
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--background-alt, #eae4da);
  border-radius: 0 0 10px 10px;
  padding: 0.7rem 1.5rem;
  box-shadow: 0 2px 8px rgba(16,42,73,0.04);
}

.sub-toolbar button {
  background: var(--btn-primary-bg);
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
  padding: 0.4rem 1.1rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sub-toolbar button:hover {
  background: var(--btn-primary-hover);
}

.main-nav a,
.main-nav a i,
.main-nav a .bi {
  color: #fff !important;
}

.dashboard-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-left: 0.5rem;
  margin-right: auto;
  vertical-align: middle;
  letter-spacing: 0.02em;
  white-space: nowrap;
}





.clFullBody {
  width: 100vw;
  min-height: calc(100vh - 120px); /* Ajusta según altura de header/footer */
  background: var(--background-alt);
}

/* ================= FOOTER MODERNO Y ADAPTABLE ================= */
.clFullFooter {
  width: calc(100vw - 20px);
  background: var(--navbar-bg);
  color: var(--navbar-text);
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: double 1px #f00;
  overflow: hidden;
}

.clFooterBox {
  max-width: var(--max-width);
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background: #333;
  border-radius: 15px 15px 0 0;
  padding: 10px;
  color: #fff;
}

.clLeftFooter, .clCenterFooter, .clRightFooter {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.clLeftFooter i, .clRightFooter i {
  color: var(--sColor);
  margin-right: 8px;
}

.clCenterFooter {
  align-items: center;
  text-align: center;
}

.clRightFooter {
  align-items: flex-end;
  text-align: right;
}

.social a {
  color: var(--sColor);
  margin-left: 10px;
  font-size: 1.2em;
  transition: color 0.2s;
}

.social a:hover {
  color: var(--btn-secondary-hover);
}

@media (max-width: 720px) {
  .clFooterBox {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .clRightFooter, .clLeftFooter, .clCenterFooter {
    align-items: center;
    text-align: center;
  }
}

/* Header y Footer */
header {
  background: var(--navbar-bg);
  color: var(--navbar-text);
  width: 100vw;
  padding: 1rem 0;
  box-shadow: var(--shadow);
}






footer {
  background: var(--navbar-bg);
  color: var(--navbar-text);
  width: 100vw;
  padding: 1rem 0;
  text-align: center;
}

/* Botones generales */
.btn, .button {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--btn-border);
  background: var(--btn-primary-bg);
  color: var(--text-inverse);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.btn:hover, .button:hover {
  background: var(--btn-primary-hover);
}

.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--text-inverse);
}

.btn-secondary:hover {
  background: var(--btn-secondary-hover);
}

/* Cuadros de texto (inputs, textarea) */
input[type="text"], input[type="email"], input[type="password"], textarea, select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--btn-border);
  border-radius: var(--border-radius);
  background: #fff;
  color: var(--text-main);
  font-size: 1rem;
  box-sizing: border-box;
  margin-bottom: 1rem;
  transition: border 0.2s;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--pColor);
  outline: none;
}

.main-nav {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  margin-bottom: 0;
  margin-left: auto;
}

.main-nav a {
  color: var(--navbar-text, #fff);
  font-size: 1.5rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  box-shadow: none;
}

.main-nav a i, .main-nav a .bi {
  font-size: 1.5em;
  vertical-align: middle;
  color: inherit;
  line-height: 1;
}

.main-nav a:hover, .main-nav a.active {
  background: var(--btn-primary-hover, #25416a);
  color: #fff;
  box-shadow: 0 2px 8px rgba(16,42,73,0.10);
}


@media (max-width: 600px) {
  .main-nav {
    gap: 0.5rem;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
  }
  .dashboard-title {
    font-size: 1rem;
    margin-left: 0.7rem;
  }
}

.clSubToolbar {
  width: 100%;
  max-width: var(--max-width, 1200px);
  margin: 0 auto 1.2rem auto;
  display: flex;
  gap: 1rem;
  align-items: center;
  background: #fff;
  border-radius: 0 0 14px 14px;
  padding: 0.85rem 1.7rem;
  box-shadow: 0 4px 18px rgba(16,42,73,0.07);
  border-bottom: 2px solid var(--btn-border, #eae4da);
  position: relative;
  z-index: 2;
}

.clSubToolbar button {
  background: var(--btn-primary-bg);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.48rem 1.3rem;
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(16,42,73,0.06);
  letter-spacing: 0.01em;
}

.clSubToolbar button:hover {
  background: var(--btn-primary-hover);
  box-shadow: 0 4px 16px rgba(16,42,73,0.13);
  transform: translateY(-2px) scale(1.03);
}

@media (max-width: 700px) {
  .clSubToolbar {
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.7rem 0.5rem;
    border-radius: 0 0 10px 10px;
  }
  .clSubToolbar button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .clHeaderBox {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.7rem 0.5rem;
  }
  .main-nav {
    margin-left: 0;
    justify-content: center;
  }
  .dashboard-title {
    margin: 0.5rem 0;
    text-align: center;
  }
}

/* ================== BLOQUE DE ACCESO ADMINISTRADOR ================== */
/* admloguin: estilos exclusivos para el login de instalación/administrador */
.admloguin-container {
  max-width: 400px;
  margin: 4rem auto 0 auto;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem 2rem 2rem;
  border: 1px solid var(--btn-border);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.admloguin-logo {
  width: 70px;
  height: 70px;
  margin-bottom: 1.2rem;
  border-radius: 50%;
  background: var(--pColor);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.2rem;
  box-shadow: 0 2px 8px rgba(16,42,73,0.10);
}

.admloguin-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pColor);
  margin-bottom: 0.7rem;
  text-align: center;
}

.admloguin-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.admloguin-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.admloguin-form label {
  font-weight: 500;
  color: var(--pColor-dark);
  margin-bottom: 0.3rem;
}

.admloguin-form input[type="text"],
.admloguin-form input[type="password"] {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--btn-border);
  border-radius: var(--border-radius);
  background: #f9f9f9;
  color: var(--text-main);
  font-size: 1rem;
  transition: border 0.2s;
}

.admloguin-form input:focus {
  border-color: var(--pColor);
  outline: none;
}

.admloguin-form .admloguin-btn {
  background: var(--btn-primary-bg);
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
  padding: 0.7rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5rem;
  box-shadow: var(--shadow);
}

.admloguin-form .admloguin-btn:hover {
  background: var(--btn-primary-hover);
}

.admloguin-form .admloguin-error {
  color: var(--error);
  background: var(--error-bg);
  border-radius: var(--border-radius);
  padding: 0.5rem 0.8rem;
  margin-bottom: 0.5rem;
  font-size: 0.98rem;
  text-align: center;
}

@media (max-width: 500px) {
  .admloguin-container {
    padding: 1.2rem 0.5rem;
    margin-top: 2rem;
  }
}


/* ================= FOOTER PROFESIONAL ================= */
.footer-pro {
  width: 100vw;
  background: linear-gradient(90deg, var(--pColor-dark) 60%, var(--pColor) 100%);
  color: var(--text-inverse);
  padding: 1.2rem 0 0.7rem 0;
  box-shadow: 0 -2px 8px rgba(16,42,73,0.10);
  border-radius: 18px 18px 0 0;
  margin-top: 2rem;
  border-top: 4px solid var(--sColor);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 10;
}

.footer-pro-content {
  max-width: var(--max-width);
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 2rem;
}

.footer-pro-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sColor);
}

.footer-pro-info {
  flex: 1;
  text-align: center;
  font-size: 1.08rem;
  color: var(--text-inverse);
  letter-spacing: 0.01em;
}

.footer-pro-social {
  display: flex;
  gap: 0.7rem;
}

.footer-pro-social a {
  color: var(--sColor);
  font-size: 1.3rem;
  transition: color 0.2s;
  text-decoration: none;
}

.footer-pro-social a:hover {
  color: var(--btn-secondary-hover);
}

.footer-pro-copy {
  width: 100%;
  text-align: center;
  color: var(--text-inverse);
  font-size: 0.98rem;
  margin-top: 0.7rem;
  opacity: 0.85;
}

@media (max-width: 700px) {
  .footer-pro-content {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 0.5rem;
  }
  .footer-pro-logo {
    font-size: 1.1rem;
  }
  .footer-pro-info {
    font-size: 0.98rem;
  }
}

/* ================= WHATSAPP FLOAT ================= */
.clWhatsappFloat {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #25d366;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 9999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clWhatsappFloat:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.clWhatsappFloatIcon {
  font-size: 2rem;
  color: #fff;
  line-height: 1;
}

.clWhatsappFloatLabel {
  position: absolute;
  bottom: -28px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  white-space: nowrap;
}

.clWhatsappFloat:hover .clWhatsappFloatLabel {
  opacity: 1;
  transform: translateY(0);
}

.clWhatsappFloat:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 4px;
}

