/* Whitebox — alineado a whitebox.com.ar (oscuros #050913 / #07060A, acento #e95628 / #EA5A2D, tipografía del sitio) */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700;800&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap");

:root {
  --brand-navy: #192839;
  --brand-navy-deep: #050913;
  --brand-teal: #e95628;
  --brand-teal-soft: #ff9a6b;
  --brand-teal-dark: #c73e1a;
  --ink: #1a1f26;
  --muted: #5c6470;
  --surface: #ffffff;
  --surface-soft: #f4f6fa;
  --line: #d5dde6;
  --success: #15803d;
}

body {
  margin: 0;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 88% 8%, rgba(233, 86, 40, 0.09), transparent 38%),
    linear-gradient(180deg, #e8ecf3 0%, #f4f6fa 45%, #eef1f7 100%);
  color: var(--ink);
}

.container {
  width: 90%;
  max-width: 960px;
  margin: 0 auto;
}

.site-header {
  background: linear-gradient(118deg, var(--brand-navy-deep) 0%, #07060a 42%, var(--brand-navy) 88%);
  color: #fff;
  padding: 26px 0 30px;
  box-shadow: 0 14px 36px rgba(5, 9, 19, 0.45);
}

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

.brand-link {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: min(320px, 46vw);
  min-width: 160px;
  height: auto;
}

.brand-copy {
  text-align: right;
}

.site-header h1 {
  margin: 0;
  font-family: "Plus Jakarta Sans", "DM Sans", sans-serif;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.site-header p {
  margin: 6px 0 0;
  font-size: 1rem;
  opacity: 0.9;
  color: rgba(253, 253, 253, 0.78);
}

.header-admin-link {
  margin-top: 10px;
  display: inline-flex;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(233, 86, 40, 0.65);
  border-radius: 999px;
  padding: 6px 12px;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-admin-link:hover {
  background: rgba(233, 86, 40, 0.22);
  border-color: rgba(255, 154, 107, 0.95);
  box-shadow: 0 0 0 1px rgba(233, 86, 40, 0.25);
}

.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
  margin-top: 30px;
  margin-bottom: 34px;
  padding: 24px 28px;
  border-radius: 14px;
  border: 1px solid rgba(25, 40, 57, 0.1);
  box-shadow: 0 16px 40px rgba(5, 9, 19, 0.1);
}

h2 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.35rem;
  font-family: "Plus Jakarta Sans", "DM Sans", sans-serif;
  color: var(--brand-navy);
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  font-weight: 700;
  color: #2c3d4f;
  margin-bottom: 6px;
}

input[type="text"],
input[type="password"],
input[type="tel"],
input[type="email"],
select,
input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-sizing: border-box;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
select:focus,
input[type="file"]:focus {
  outline: none;
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(233, 86, 40, 0.2);
}

.btn-primary,
.btn-secondary {
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-family: "Plus Jakarta Sans", "DM Sans", sans-serif;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--brand-teal-dark) 0%, var(--brand-teal) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(233, 86, 40, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(90deg, #b33516 0%, #d8431f 100%);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #e8ecf1;
  color: #2c3d4f;
}

.btn-secondary:hover {
  background: #dde3ea;
}

.hidden {
  display: none !important;
}

div.modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 9, 19, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

div.modal .modal-content {
  background: #fff;
  padding: 20px 25px;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  border: 1px solid rgba(25, 40, 57, 0.1);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

div.modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 15px;
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--success);
  color: #fff;
  padding: 11px 16px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 1100;
}

@media (max-width: 760px) {
  .site-header {
    padding: 18px 0 22px;
  }

  .header-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .brand-logo {
    width: min(280px, 78vw);
    min-width: 140px;
  }

  .brand-copy {
    text-align: left;
  }

  .card {
    margin-top: 20px;
    padding: 18px;
  }
}
