:root {
  --brand-red: #c8102e; /* Cambia aquí al color corporativo exacto */
  --brand-dark: #141414;
  --brand-gray: #6b6b6b;
  --bg: #ffffff;
  --surface: #f7f7f7;
  --focus: #1e90ff;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--brand-dark);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
    Noto Sans, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  background: var(--bg);
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 32px;
}

.brand-fallback {
  font-weight: 700;
  font-size: 20px;
  color: var(--brand-red);
  letter-spacing: 0.5px;
  display: none; /* Se muestra si el logo no existe */
}

.hero {
  padding: 32px 0 16px;
}

h1, h2, h3 {
  margin: 0 0 12px;
}

p {
  margin: 0 0 12px;
  color: var(--brand-gray);
}

.card {
  background: var(--surface);
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}

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

.terms-summary {
  margin-top: 8px;
}

.status {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
}

.status-pending {
  background: #fff0f0;
  color: #a10014;
  border: 1px solid #ffd1d6;
}

.status-accepted {
  background: #f0fff4;
  color: #0f7b3e;
  border: 1px solid #c8e6c9;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 160ms ease, opacity 120ms ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--brand-red);
  color: white;
  box-shadow: 0 2px 8px rgba(200, 16, 46, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--brand-red);
  border: 2px solid var(--brand-red);
}

.btn-outline:hover {
  background: #fff3f5;
}

.btn-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.site-footer {
  border-top: 1px solid #e8e8e8;
  margin-top: 24px;
}

.footer-content {
  min-height: 64px;
  display: flex;
  align-items: center;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
}

.modal[aria-hidden="false"] {
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.modal-content {
  position: relative;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  max-width: 720px;
  width: calc(100% - 32px);
  padding: 16px;
}

.modal-body {
  color: var(--brand-gray);
}

.modal-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .header-content {
    min-height: 56px;
  }
  .brand-logo {
    height: 28px;
  }
}