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

:root {
  --navy: #150d9e;
  --navy-dark: #0e0a6b;
  --wine: #9e0230;
  --bg: #f2f3f7;
  --text: #1f1f1f;
}

body {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #ffffff;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.brand-logo-img {
  height: 1.75rem;
  width: auto;
  display: block;
}

.header h1 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.logout-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.logout-btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
}

.main {
  flex: 1;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.report-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(15, 10, 90, 0.12);
  padding: 1.5rem;
  width: 100%;
  max-width: 1150px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.iframe-wrapper {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
  /* el ancho y alto se calculan dinamicamente en script.js segun el viewport */
}

.iframe-wrapper iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

/* Login */

.login-body {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
}

.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.login-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
}

.brand-center {
  justify-content: center;
  align-self: center;
  margin-bottom: 0.75rem;
}

.brand-logo-img--azul {
  height: 2.25rem;
}

.login-title {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 1.75rem;
}

.field-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.35rem;
}

.field-input {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  margin-bottom: 1.1rem;
  outline: none;
  transition: border-color 0.15s ease;
}

.field-input:focus {
  border-color: var(--navy);
}

.password-field {
  position: relative;
  display: flex;
}

.password-field .field-input {
  flex: 1;
  padding-right: 2.75rem;
}

.toggle-password {
  position: absolute;
  top: 0;
  right: 0;
  height: calc(100% - 1.1rem);
  width: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #6b7280;
  cursor: pointer;
  transition: color 0.15s ease;
}

.toggle-password:hover {
  color: var(--navy);
}

.toggle-password .icon-eye-off {
  display: none;
}

.toggle-password.is-visible .icon-eye {
  display: none;
}

.toggle-password.is-visible .icon-eye-off {
  display: block;
}

.login-error {
  color: var(--wine);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  margin-top: -0.5rem;
}

.login-submit {
  background-color: var(--wine);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: none;
  border-radius: 6px;
  padding: 0.75rem;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.login-submit:hover {
  opacity: 0.9;
}
