:root {
  --berry-primary: #e24362;
  --berry-primary-dark: #c6284c;
  --berry-dark: #2a0d1b;
  --bg: #fff1f6;
  --text: #32121f;
  --radius: 12px;
}

body {
  font-family: "Inter", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  min-height: 100vh;
}

.app-footer {
  margin-top: 40px;
  padding: 32px 16px 24px;
  text-align: center;
  color: var(--berry-dark);
}

.app-footer__message {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.app-footer__message a {
  color: var(--berry-primary);
  font-weight: 600;
  text-decoration: none;
}

.app-footer__message a:hover,
.app-footer__message a:focus {
  text-decoration: underline;
}

.info-banner {
  background: rgba(226, 67, 98, 0.08);
  border-left: 4px solid var(--berry-primary);
  padding: 12px 16px;
  border-radius: 12px;
  margin: 16px 0 28px;
  font-weight: 500;
  color: var(--berry-dark);
  line-height: 1.5;
}

.info-banner strong {
  font-weight: 600;
}

.no-scroll {
  overflow: hidden;
}

.auth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-page main {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 20px 60px;
  box-sizing: border-box;
}

.brand-banner {
  width: 100%;
  display: flex;
  justify-content: center;
}

.brand-banner img {
  width: min(90%, 480px);
  max-width: 480px;
  height: auto;
  border-radius: 28px;
  box-shadow: 0 25px 45px rgba(226, 67, 98, 0.25);
}

.brand-banner--hero {
  padding: 48px 16px 0;
  box-sizing: border-box;
  margin-bottom: 24px;
}

.brand-banner--compact {
  justify-content: flex-start;
  margin-bottom: 24px;
}

.brand-banner--compact img {
  max-width: 220px;
  border-radius: 22px;
  box-shadow: 0 18px 36px rgba(226, 67, 98, 0.18);
}

@media (max-width: 800px) {
  .auth-page main {
    padding: 0 16px 48px;
  }

  .brand-banner--hero {
    padding: 32px 12px 0;
  }

  .brand-banner--compact {
    justify-content: center;
  }
}

button {
  background: var(--berry-primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 10px 14px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s;
}

button:hover {
  background: var(--berry-primary-dark);
}

/* --- Mensajes globales unificados (✅ / ❌) --- */
#globalMsg {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 20px;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.3s ease;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 8px;
}
#globalMsg.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
#globalMsg.success {
  background: #22c55e;
}
#globalMsg.error {
  background: #ef4444;
}


input, select {
  border-radius: var(--radius);
  border: 1px solid #ccc;
  padding: 10px 12px;
  font-size: 1em;
  width: 100%;
  box-sizing: border-box;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.field-header label {
  flex: 1;
}

.info-trigger {
  background: transparent;
  border: none;
  color: var(--berry-primary);
  cursor: pointer;
  font-size: 1.1em;
  padding: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.info-trigger:hover,
.info-trigger:focus {
  color: var(--berry-primary-dark);
}

.command-info-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2100;
}

.command-info-overlay.hidden {
  display: none;
}

.command-info-modal {
  background: #fff;
  padding: 24px 24px 28px;
  border-radius: var(--radius);
  width: min(90%, 420px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  position: relative;
}

.command-info-modal h2 {
  margin: 0 0 12px;
  color: var(--berry-dark);
}

.command-info-modal p {
  margin: 0 0 12px;
}

.command-info-modal ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.info-close {
  background: none;
  border: none;
  color: var(--berry-primary);
  font-weight: 600;
  font-size: 0.95rem;
  position: absolute;
  top: 10px;
  right: 12px;
  cursor: pointer;
}

.info-close:hover,
.info-close:focus {
  color: var(--berry-primary-dark);
}

h1, h2 {
  color: var(--berry-dark);
  margin-bottom: 16px;
}

table {
  border-collapse: collapse;
  width: 100%;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
}

th, td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

th {
  background: #f1f1f5;
}

