/* Andalucía es tu casa — identidad de marca */

:root {
  --brand: #3ea35d;
  --brand-dark: #358f51;
  --brand-darker: #2d7a45;
  --brand-light: #e8f7ed;
  --brand-muted: #c6e8d0;
  --brand-soft: #f3faf5;
  --brand-ring: rgba(62, 163, 93, 0.18);
  --investment: #255f91;
  --investment-dark: #173f68;
  --investment-soft: #eef6fc;
  --investment-border: #c9deef;

  /* Tailwind primary (Chisfis) → verde marca */
  --color-primary-50: #ecfdf3;
  --color-primary-100: #d1fae5;
  --color-primary-200: #a7f3d0;
  --color-primary-300: #6ee7a8;
  --color-primary-500: #3ea35d;
  --color-primary-600: #358f51;
  --color-primary-700: #2d7a45;
}

/* Logo */
.brand-logo {
  display: block;
  height: 2.75rem;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.brand-logo--sm {
  height: 2rem;
  max-width: 170px;
}

.brand-logo--footer {
  height: 2.5rem;
  max-width: 200px;
}

.brand-logo--auth {
  height: 3rem;
  max-width: 240px;
  margin: 0 auto 1rem;
}

/* Header */
.site-header__shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header__brand {
  display: flex;
  align-items: center;
  color: var(--brand-dark);
  gap: 0.625rem;
  flex-shrink: 0;
}

.site-header__nav {
  justify-content: center;
}

.site-header .site-header__nav .site-header__investment-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.78rem;
  border: 1px solid var(--investment-border);
  border-radius: 9999px;
  background: linear-gradient(135deg, #f7fbfe 0%, var(--investment-soft) 100%);
  color: var(--investment-dark);
  font-weight: 650;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(23, 63, 104, 0.06);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.site-header .site-header__nav .site-header__investment-link > span,
.site-header-mobile__investment-link > span {
  width: 0.42rem;
  height: 0.42rem;
  flex: 0 0 auto;
  border-radius: 9999px;
  background: #4b8bbd;
  box-shadow: 0 0 0 3px rgba(75, 139, 189, 0.13);
}

.site-header .site-header__nav .site-header__investment-link:hover {
  border-color: #93bddd;
  background: #e5f1f9;
  color: #12385e;
  box-shadow: 0 4px 12px rgba(23, 63, 104, 0.1);
}

.site-header .site-header__nav .site-header__investment-link--vacation {
  border-color: var(--brand-muted);
  background: var(--brand-soft);
  color: var(--brand-darker);
}

.site-header .site-header__nav .site-header__investment-link--vacation > span,
.site-header-mobile__investment-link--vacation > span {
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-ring);
}

.site-header .site-header__nav .site-header__investment-link--vacation:hover {
  border-color: #9bd3ac;
  background: var(--brand-light);
  color: var(--brand-darker);
  box-shadow: 0 4px 12px rgba(45, 122, 69, 0.1);
}

.site-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.625rem;
  flex-shrink: 0;
}

.site-header__actions-divider {
  width: 1px;
  height: 1.5rem;
  background: #e5e7eb;
  flex-shrink: 0;
}

.site-header__auth {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.site-header__auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.site-header__auth-btn--ghost {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
}

.site-header__auth-btn--ghost:hover {
  border-color: var(--brand-muted);
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.site-header__auth-btn--primary {
  border: 1px solid var(--brand);
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(62, 163, 93, 0.28);
}

.site-header__auth-btn--primary:hover {
  filter: brightness(1.05);
  color: #fff;
}

.site-header__host-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--brand-muted);
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.site-header__host-btn--guest {
  font-weight: 600;
}

.site-header__host-btn:hover {
  background: #fff;
  border-color: var(--brand);
  color: var(--brand-darker);
}

.site-header__account {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-header__account:hover {
  border-color: var(--brand-muted);
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.site-header__chat-badge {
  min-width: 1.1rem;
  height: 1.1rem;
  display: inline-grid;
  place-items: center;
  margin-left: .35rem;
  padding: 0 .25rem;
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
  font-size: .58rem;
}

.site-header-mobile__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-header-mobile__auth {
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151 !important;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}

.site-header-mobile__auth-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
}

.site-header-mobile__signup {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.site-header-mobile__login {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151 !important;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.site-header-mobile__publish {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--brand-muted);
  background: var(--brand-soft);
  color: var(--brand-dark) !important;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.site-header-mobile__drawer .site-header-mobile__investment-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.2rem 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--investment-border);
  border-radius: 0.75rem;
  background: var(--investment-soft);
  color: var(--investment-dark);
  font-weight: 650;
}

.site-header-mobile__drawer .site-header-mobile__investment-link--vacation {
  border-color: var(--brand-muted);
  background: var(--brand-soft);
  color: var(--brand-darker);
}

.site-header__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}

.site-header__cta:hover {
  filter: brightness(1.05);
  color: #fff;
}

.site-header__logo-img {
  display: block;
  height: 2.35rem;
  width: auto;
  max-width: 190px;
  object-fit: contain;
}

.site-header__user {
  color: var(--brand-dark);
  max-width: 7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-header__logo {
  display: none;
}

.site-header-mobile__brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
}

.site-header-mobile__brand .brand-logo {
  height: 2rem;
  max-width: 160px;
}

/* Footer */
.site-footer__logo {
  color: #111827;
}

.site-footer__logo:hover {
  color: var(--brand-dark);
}

.site-footer__logo .brand-logo--footer {
  height: 2.25rem;
}

.site-footer__email {
  color: var(--brand);
}

.site-footer__logo-mark {
  display: none;
}

/* Superadmin preview banner (unpublished content) */
.preview-banner {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  padding: 0.625rem 1rem;
  background: #fef3c7;
  border-bottom: 1px solid #fbbf24;
  color: #92400e;
  font-size: 0.875rem;
  text-align: center;
}

.preview-banner strong {
  font-weight: 700;
}

.preview-banner__detail {
  font-weight: 500;
  opacity: 0.9;
}
