﻿:root {
  --bg: #eaf3ff;
  --ink: #0a1a2b;
  --muted: #36506a;
  --primary: #1f6bff;
  --secondary: #0f4d8c;
  --accent: #6fb3ff;
  --card: #ffffff;
  --glass: rgba(255, 255, 255, 0.7);
  --shadow: 0 30px 80px rgba(9, 28, 54, 0.18);
  --soft-shadow: 0 18px 40px rgba(9, 28, 54, 0.12);
  --radius: 28px;
  --page-gutter: clamp(24px, 8vw, 104px);
  --grid: rgba(9, 28, 54, 0.06);
  --ring: rgba(31, 107, 255, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 12% 10%, rgba(111, 179, 255, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 90% 0%, rgba(31, 107, 255, 0.25) 0%, transparent 45%),
    linear-gradient(180deg, #eaf3ff 0%, #d7ebff 100%);
  min-height: 100vh;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}

::selection {
  background: rgba(255, 91, 61, 0.2);
}

ul {
  padding-left: 18px;
}

.page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.page::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 55vh;
  background: conic-gradient(
    from 120deg,
    rgba(31, 107, 255, 0.28),
    rgba(111, 179, 255, 0.32),
    rgba(15, 77, 140, 0.22),
    transparent 60%
  );
  filter: blur(45px);
  z-index: 0;
}

.page::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% -10%;
  height: 55vh;
  background: radial-gradient(circle, rgba(31, 107, 255, 0.22), transparent 60%);
  filter: blur(45px);
  z-index: 0;
}

.grid-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  gap: 14px;
  padding: 16px var(--page-gutter) 18px;
  backdrop-filter: blur(16px);
  background: rgba(234, 243, 255, 0.9);
  border-bottom: 1px solid rgba(9, 28, 54, 0.08);
}

.top-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  row-gap: 8px;
  align-items: start;
  font-size: 0.78rem;
  color: var(--muted);
}

.top-links__group,
.top-links__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.top-links__group {
  min-width: 0;
}

.top-links__meta {
  justify-content: flex-end;
  justify-self: end;
  align-self: start;
  margin-left: 0;
  white-space: nowrap;
}

.top-links a {
  padding: 6px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(9, 28, 54, 0.08);
}

.top-links__phone,
.top-links__social {
  font-weight: 600;
}

.social-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #0f4d8c;
  color: #fff;
  font-weight: 700;
  z-index: 1000;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

.header-main {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(9, 28, 54, 0.12);
  padding: 6px 10px;
  border-radius: 18px;
  flex: 1;
  max-width: 360px;
}

.header-search__logo {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.header-search__logo img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.header-search input {
  border: 0;
  background: transparent;
  width: 100%;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--ink);
}

.header-search input:focus {
  outline: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 192px;
  height: 96px;
  border-radius: 28px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(9, 28, 54, 0.08);
  overflow: hidden;
}

.brand-logo img {
  width: 94%;
  height: 90%;
  object-fit: contain;
  border-radius: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  min-width: 0;
}

.brand-name {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-tag {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 0.95rem;
}

.header-nav {
  display: none;
}

.nav a {
  color: var(--ink);
  font-weight: 500;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.2s ease;
}

.nav a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--secondary);
  color: #fff;
  box-shadow: var(--soft-shadow);
}

.nav-toggle { display: inline-flex; background: none; border: none; gap: 6px; flex-direction: column; cursor: pointer; }

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--ink);
  border-radius: 999px;
}

main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 110px;
  padding: 70px var(--page-gutter) 120px;
}

.section {
  display: grid;
  gap: 36px;
}

.section-heading {
  display: grid;
  gap: 12px;
}

.section-hero {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 56px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.section-hero::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -15%;
  width: 45%;
  height: 90%;
  background: url("/Images/decoration_imgs/Imagen_fondo.webp") center/cover no-repeat;
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
}

.section-hero > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.7rem;
  color: var(--secondary);
  font-weight: 700;
}

.section h2,
.hero h1 {
  font-family: "Fraunces", serif;
}

.hero h1 {
  font-size: clamp(2.9rem, 5.5vw, 4.6rem);
  margin: 16px 0;
  line-height: 1.05;
}

.hero-slogan {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--secondary);
  margin: 8px 0 18px;
  line-height: 1.1;
}

.section h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 12px 0 16px;
}

.hero p,
.section p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin: 28px 0;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--soft-shadow);
}

.btn.primary {
  background: linear-gradient(135deg, #1f6bff 0%, #6fb3ff 100%);
  color: #fff;
}

.nav-cta,
.btn.primary {
  color: #fff;
}

.header-auth {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-auth__form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.header-auth__form input {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(9, 28, 54, 0.15);
  font-family: inherit;
  background: #fff;
  min-width: 160px;
}

.header-auth__form button {
  padding: 10px 18px;
}

.header-auth__link {
  padding: 10px 16px;
  border-radius: 18px;
  border: 1px solid rgba(9, 28, 54, 0.12);
  background: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

#headerEditToggle,
#headerEditSave,
#headerEditCancel {
  display: none;
}

body.admin-auth #headerEditToggle {
  display: inline-flex;
}

body.admin-auth.admin-editing #headerEditSave,
body.admin-auth.admin-editing #headerEditCancel {
  display: inline-flex;
}

.header-auth__user {
  font-weight: 600;
  color: var(--secondary);
}

.header-auth__status {
  font-size: 0.85rem;
  color: var(--muted);
}

.btn.ghost {
  border-color: var(--secondary);
  color: var(--secondary);
  background: transparent;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.hero-metrics div {
  background: var(--glass);
  padding: 18px 22px;
  border-radius: 18px;
  border: 1px solid rgba(21, 19, 16, 0.08);
  backdrop-filter: blur(12px);
}

.hero-metrics strong {
  font-size: 1.25rem;
}

.hero-visual {
  display: grid;
  gap: 22px;
  justify-items: center;
}

.hero-orbit {
  width: min(360px, 90vw);
  height: min(360px, 90vw);
  border-radius: 40%;
  border: 1px dashed rgba(9, 28, 54, 0.2);
  position: relative;
  transform: rotate(12deg);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.3px);
  animation: float 6s ease-in-out infinite;
}

.orb-a {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #1f6bff, #6fb3ff);
  top: 10%;
  left: 60%;
  animation-delay: 0.2s;
}

.orb-b {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #0f4d8c, #6fb3ff);
  bottom: 10%;
  left: 15%;
  animation-delay: 0.4s;
}

.orb-c {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #6fb3ff, #1f6bff);
  top: 62%;
  right: 6%;
  animation-delay: 0.6s;
}

.hero-card,
.info-card,
.project,
.partner,
.partner-logo,
.donate-cards article,
.role-card,
.value-card,
.team-card,
.tier-card,
.donation-card,
.document-item {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(21, 19, 16, 0.06);
}

.hero-card {
  padding: 28px;
  max-width: 320px;
}

.card-highlight {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(31, 107, 255, 0.12);
  color: var(--secondary);
  font-weight: 600;
}

.split {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.section-cards,
.project-grid,
.role-grid,
.value-grid,
.team-grid,
.donate-cards,
.partner-list,
.partner-grid,
.document-list,
.donation-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.partner-grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.partner-logo {
  padding: 16px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  background: #fff;
}

.partner-logo img {
  max-width: 100%;
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: grayscale(0.1);
  opacity: 0.92;
}

.sponsor-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.sponsor-card {
  height: auto;
  min-height: 100%;
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: 20px;
}

.sponsor-card img {
  height: 72px;
  max-width: 100%;
}

.sponsor-card__content {
  display: grid;
  gap: 8px;
  width: 100%;
}

.sponsor-card__content h3 {
  margin: 0;
}

.sponsor-card__projects {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31, 107, 255, 0.08);
  color: var(--ink);
  font-size: 0.92rem;
  text-decoration: none;
}

.info-card,
.project,
.role-card,
.value-card,
.team-card,
.tier-card,
.donation-card,
.document-item {
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover,
.project:hover,
.role-card:hover,
.value-card:hover,
.team-card:hover,
.tier-card:hover,
.donation-card:hover,
.document-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill-list span {
  padding: 10px 16px;
  background: #fff;
  border-radius: 999px;
  border: 1px solid rgba(9, 28, 54, 0.1);
  font-size: 0.9rem;
}

.story {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  gap: 46px;
}

.story-panel {
  background: linear-gradient(160deg, #0f4d8c 0%, #0a3c6b 100%);
  color: #fff;
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.story-panel span {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.story-visual {
  position: relative;
  min-height: 260px;
}

.story-visual::after {
  content: "";
  position: absolute;
  inset: 20% 0 0 10%;
  border-radius: 24px;
  background: rgba(31, 107, 255, 0.15);
  z-index: -1;
}

.project span {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(31, 107, 255, 0.15);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8rem;
}

.project-list {
  display: grid;
  gap: 18px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 18px;
  align-items: center;
  background: #fff;
  padding: 20px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(21, 19, 16, 0.06);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 18px;
}

.project-date {
  font-size: 0.9rem;
  color: var(--secondary);
  font-weight: 600;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
}

.project-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
  padding: 32px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(21, 19, 16, 0.06);
  position: relative;
  overflow: hidden;
}

.project-hero__media img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 20px;
}

.project-hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 55%;
  height: 85%;
  background: url("/Images/decoration_imgs/Imagen_principal.webp") center/cover no-repeat;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.project-hero > * {
  position: relative;
  z-index: 1;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 8px;
}

.project-meta span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(31, 107, 255, 0.12);
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.8rem;
}

.project-meta .badge-concluded,
.project-date .badge-concluded,
.project-card .badge-concluded {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(34, 130, 86, 0.14);
  color: #1f6d4b;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-card .badge-concluded {
  margin-top: 10px;
}

.project-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.project-panel {
  background: #fff;
  padding: 24px;
  border-radius: 20px;
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(21, 19, 16, 0.06);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.project-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--soft-shadow);
}

.project-video .video-embed,
.project-hero__media .video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  background: #0b1526;
}

.project-video iframe,
.project-hero__media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  background: #0b1526;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.project-gallery__item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--soft-shadow);
}

.project-detail h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
}

.project-detail__content {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 24px;
  align-items: start;
  background: #fff;
  padding: 24px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(21, 19, 16, 0.06);
}

.project-detail__content img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 18px;
}

.project-detail__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.project-sponsors {
  display: grid;
  gap: 24px;
}

.project-sponsors__grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.project-sponsor-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 22px 18px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(21, 19, 16, 0.06);
  box-shadow: var(--soft-shadow);
  text-align: center;
}

.project-sponsor-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
}

.project-sponsor-card__media img {
  display: block;
  max-width: 100%;
  max-height: 84px;
  object-fit: contain;
}

.project-sponsor-card h3 {
  margin: 0;
  font-size: 1rem;
}

.impact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  padding: 22px;
  border-radius: 24px;
  background: var(--glass);
  border: 1px solid rgba(9, 28, 54, 0.08);
  backdrop-filter: blur(12px);
}

.impact-item {
  display: grid;
  gap: 6px;
}

.impact-item strong {
  font-size: 1.4rem;
}

.callout {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  padding: 44px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, #cfe7ff, #6fb3ff);
  gap: 28px;
  position: relative;
  overflow: hidden;
}

.callout::before {
  content: "";
  position: absolute;
  inset: -25% -10% auto auto;
  width: 50%;
  height: 120%;
  background: url("/Images/decoration_imgs/Imagen_fondo_para_texto_blanco.webp") center/cover no-repeat;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.callout > * {
  position: relative;
  z-index: 1;
}

.callout p {
  color: var(--muted);
  font-size: 1.05rem;
}

.callout-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact {
  display: flex;
  justify-content: center;
}

.contact-card {
  background: #fff;
  padding: 34px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: min(760px, 100%);
  border: 1px solid rgba(21, 19, 16, 0.06);
}

.page--login .section-hero {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
}

.page--login .contact-card {
  justify-self: end;
  width: min(460px, 100%);
}

.contact-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 24px 0;
}

.step-list {
  display: grid;
  gap: 18px;
}

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--soft-shadow);
}

.step strong {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--secondary);
  color: #fff;
  display: grid;
  place-items: center;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  background: #fff;
  padding: 18px;
  border-radius: 16px;
  box-shadow: var(--soft-shadow);
}

.faq-list summary {
  font-weight: 600;
  cursor: pointer;
}

.team-card {
  display: grid;
  gap: 12px;
  text-align: center;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(31, 107, 255, 0.25), rgba(111, 179, 255, 0.25));
  margin: 0 auto;
}

.value-card,
.role-card {
  display: grid;
  gap: 12px;
}

.timeline-list {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #fff;
  padding: 18px;
  border-radius: 16px;
  box-shadow: var(--soft-shadow);
}

.timeline-item strong {
  font-size: 1.1rem;
  color: var(--secondary);
}

.tiers {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tier-featured {
  border: 2px solid rgba(31, 107, 255, 0.4);
}

.donation-card ul {
  margin-top: 12px;
  display: grid;
  gap: 6px;
}

.contact-form {
  display: grid;
  gap: 18px;
  background: #fff;
  padding: 28px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.basic-info {
  border: 1px solid rgba(31, 107, 255, 0.2);
  background: rgba(31, 107, 255, 0.08);
  padding: 18px 20px;
  border-radius: 18px;
  font-size: 0.92rem;
  color: var(--muted);
}

.basic-info h3 {
  margin-bottom: 10px;
  color: var(--secondary);
}

.basic-info ul {
  display: grid;
  gap: 6px;
}

.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.doc-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.status {
  min-height: 1.4em;
  color: var(--muted);
}

.documentacion-card .cta,
.documentacion-card .ghost {
  border: 1px solid rgba(9, 28, 54, 0.16);
  border-radius: 12px;
  padding: 10px 16px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.documentacion-card .cta {
  background: var(--secondary);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--soft-shadow);
}

.documentacion-card .ghost {
  background: #fff;
  color: var(--ink);
}

.documentacion-card .cta:hover,
.documentacion-card .ghost:hover {
  transform: translateY(-1px);
  box-shadow: var(--soft-shadow);
}

.sponsor-project-picker {
  border: 1px solid rgba(21, 19, 16, 0.08);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 14px;
}

.sponsor-project-picker__grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.sponsor-project-picker__option {
  align-items: center;
  gap: 10px;
}

.sponsor-admin-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  background: #f7faff;
  border-radius: 18px;
  padding: 16px;
}

.sponsor-admin-preview img {
  max-width: 100%;
  max-height: 96px;
  object-fit: contain;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(21, 19, 16, 0.15);
  font-family: inherit;
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 107, 255, 0.15);
  outline: none;
}

.contact-form .full {
  grid-column: 1 / -1;
}

.privacy {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.95rem;
  color: var(--muted);
}

.privacy input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.form-status {
  font-size: 0.95rem;
  color: var(--secondary);
}

.form-legal {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.consent {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(9, 28, 54, 0.1);
  background: rgba(255, 255, 255, 0.7);
}

.consent-title {
  font-weight: 600;
  color: var(--secondary);
}

.form-legal a {
  color: var(--secondary);
  text-decoration: underline;
}

.field-error {
  border-color: #c53d2f;
  box-shadow: 0 0 0 3px rgba(197, 61, 47, 0.12);
}

.map-embed {
  min-height: 320px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  border: 1px solid rgba(9, 28, 54, 0.08);
  background: rgba(31, 107, 255, 0.08);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

.legal-text {
  background: #fff;
  padding: 26px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.legal-text h3 {
  margin-top: 14px;
  color: var(--secondary);
}

.legal-text ul,
.legal-text ol {
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.legal-list li {
  margin-bottom: 8px;
}

.legal-table {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(9, 28, 54, 0.12);
}

.legal-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(9, 28, 54, 0.08);
  vertical-align: top;
}

.legal-table th {
  background: rgba(31, 107, 255, 0.12);
  color: var(--secondary);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px var(--page-gutter) 50px;
  border-top: 1px solid rgba(9, 28, 54, 0.1);
  font-size: 0.9rem;
  color: var(--muted);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-phone {
  font-weight: 600;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-social a {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(9, 28, 54, 0.12);
  background: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-links p {
  line-height: 1.6;
}

.role-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.preview-page .section-heading {
  margin-bottom: 18px;
}

.preview-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 18px;
  align-items: start;
}

.preview-sidebar {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(9, 28, 54, 0.12);
  padding: 16px;
  box-shadow: var(--soft-shadow);
  position: sticky;
  top: 120px;
  max-height: calc(100vh - 160px);
  overflow: auto;
}

.preview-controls {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.preview-controls input {
  border: 1px solid rgba(9, 28, 54, 0.16);
  border-radius: 999px;
  padding: 10px 14px;
  font-family: inherit;
}

.preview-list {
  display: grid;
  gap: 8px;
}

.preview-item {
  text-align: left;
  border: 1px solid rgba(9, 28, 54, 0.12);
  background: #f5f7fb;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}

.preview-frame {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(9, 28, 54, 0.12);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.preview-frame__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(9, 28, 54, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.preview-frame iframe,
.preview-frame__toolbar + iframe {
  width: 100%;
  height: 70vh;
  border: 0;
}

@media (max-width: 980px) {
  .preview-layout {
    grid-template-columns: 1fr;
  }

  .preview-sidebar {
    position: static;
    max-height: none;
  }
}

.site-footer::before {
  content: none;
}

.page--contact .section-hero::before,
.page--login .section-hero::before {
  content: none;
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

.cookie-banner {
  position: fixed;
  inset: auto 3vw 3vw 3vw;
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 20px 22px;
  display: none;
  gap: 16px;
  z-index: 999;
  border: 1px solid rgba(9, 28, 54, 0.12);
}

.cookie-banner.is-visible {
  display: grid;
}

.cookie-banner__text {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.cookie-title {
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.cookie-modal.is-open {
  display: flex;
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 28, 54, 0.45);
}

.cookie-modal__panel {
  position: relative;
  background: #fff;
  border-radius: 26px;
  padding: 26px;
  width: min(760px, 92vw);
  max-height: 85vh;
  overflow: auto;
  box-shadow: var(--shadow);
  z-index: 1;
}

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

.cookie-modal__intro {
  margin: 12px 0 18px;
  color: var(--muted);
}

.cookie-accordion {
  display: grid;
  gap: 12px;
}

.cookie-accordion details {
  border: 1px solid rgba(9, 28, 54, 0.1);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(31, 107, 255, 0.06);
}

.cookie-accordion summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
}

.cookie-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(31, 107, 255, 0.2);
  color: var(--secondary);
  font-size: 0.75rem;
}

.cookie-toggle {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

.cookie-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.cookie-modal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.no-scroll {
  overflow: hidden;
}

.include-error {
  background: #fff2f2;
  color: #8a1f1f;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(138, 31, 31, 0.2);
  font-size: 0.95rem;
}

[data-reveal] {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.page--projects .js [data-reveal] {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@media (max-width: 980px) {
  .top-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .page--login .section-hero {
    grid-template-columns: 1fr;
  }

  .page--login .contact-card {
    justify-self: stretch;
    width: 100%;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 8vw;
    background: #fff;
    padding: 20px;
    border-radius: 18px;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: var(--shadow);
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle { display: inline-flex; background: none; border: none; gap: 6px; flex-direction: column; cursor: pointer; }

  .header-auth {
    width: 100%;
    justify-content: flex-end;
  }

  .top-links__meta {
    justify-content: flex-start;
    justify-self: start;
  }

  .header-main {
    flex-wrap: wrap;
  }

  .brand-text {
    display: none;
  }

  .header-auth {
    justify-content: flex-start;
  }

  .header-search {
    order: 3;
    width: 100%;
    max-width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }

  .cookie-banner {
    inset: auto 4vw 4vw 4vw;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 12px 6vw 16px;
  }

  .header-main {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
  }

  .brand {
    gap: 12px;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 999px;
  }

  .header-auth {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 8px;
  }

  .header-auth__link,
  .header-auth__user {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .top-links__group,
  .top-links__meta {
    gap: 8px;
  }

  .top-links a {
    padding: 6px 10px;
  }

  main {
    padding: 40px 6vw 90px;
  }

  .callout {
    padding: 32px;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-detail__content {
    grid-template-columns: 1fr;
  }

  .project-hero {
    padding: 24px;
  }

  .project-hero__media img {
    height: 240px;
  }
}

.page--accounts .accounts-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 8vw 160px;
  display: grid;
  gap: 24px;
}

.page--accounts .panel {
  background: #ffffff;
  border: 1px solid rgba(9, 28, 54, 0.12);
  padding: 24px 28px;
  box-shadow: var(--soft-shadow);
  border-radius: 20px;
}

.page--accounts .login-panel {
  display: grid;
  gap: 20px;
}

.page--accounts .hero {
  display: grid;
  gap: 12px;
}

.page--accounts h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0;
  letter-spacing: -0.02em;
}

.page--accounts h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.page--accounts h3 {
  margin: 20px 0 12px;
  font-size: 16px;
}

.page--accounts .lead {
  margin: 0;
  color: var(--muted);
  max-width: 520px;
}

.page--accounts .panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.page--accounts .auth {
  display: grid;
  gap: 16px;
}

.page--accounts label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.page--accounts input,
.page--accounts select {
  border: 1px solid rgba(9, 28, 54, 0.16);
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  border-radius: 10px;
  background: #f8fbff;
}

.page--accounts button {
  border: none;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 12px;
  font-family: inherit;
}

.page--accounts button:hover {
  transform: translateY(-1px);
  box-shadow: var(--soft-shadow);
}

.page--accounts button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
  box-shadow: none;
}

.page--accounts button.ghost {
  background: transparent;
  border: 1px solid rgba(9, 28, 54, 0.12);
  color: var(--ink);
  box-shadow: none;
}

.page--accounts .auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page--accounts .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 16px;
}

.page--accounts .filters input,
.page--accounts .filters select {
  min-width: 160px;
}

.page--accounts .sortable {
  cursor: pointer;
}

.page--accounts .sortable::after {
  content: " ↕";
  font-size: 11px;
  color: var(--muted);
}

.page--accounts .sortable.sort-asc::after {
  content: " ↑";
}

.page--accounts .sortable.sort-desc::after {
  content: " ↓";
}

.page--accounts .code-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  margin: 6px 0 12px;
  border-radius: 10px;
  background: #f3f8ff;
  border: 1px dashed rgba(9, 28, 54, 0.16);
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.08em;
}

.page--accounts .table-wrap {
  overflow-x: auto;
}

.page--accounts table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.page--accounts th,
.page--accounts td {
  padding: 10px;
  border-bottom: 1px solid rgba(9, 28, 54, 0.1);
  text-align: left;
}

.page--accounts th {
  font-weight: 600;
  color: var(--muted);
}

.page--accounts tbody tr:hover {
  background: rgba(31, 107, 255, 0.08);
}

.page--accounts .form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  align-items: end;
}

.page--accounts .form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.page--accounts .inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.page--accounts .inline-check input {
  width: auto;
}

.documentacion-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 8vw 120px;
}

.documentacion-card {
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(9, 28, 54, 0.08);
  box-shadow: var(--shadow);
}

.documentacion-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.documentacion-toolbar .ghost {
  border: 1px solid rgba(9, 28, 54, 0.2);
  background: #ffffff;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.documentacion-toolbar .ghost:hover {
  transform: translateY(-1px);
  border-color: rgba(9, 28, 54, 0.3);
}

.documentacion-filter {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: var(--muted);
}

.documentacion-filter input {
  min-width: 220px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(21, 19, 16, 0.15);
  font-family: inherit;
}

.documentacion-list {
  display: grid;
  gap: 12px;
}

.documentacion-item {
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(9, 28, 54, 0.12);
  background: #f7f8fb;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.documentacion-item--row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
  cursor: default;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  border-color: rgba(9, 28, 54, 0.08);
}

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

.documentacion-item__label {
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}

.documentacion-item__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.documentacion-item__btn {
  border: 1px solid rgba(9, 28, 54, 0.16);
  background: linear-gradient(135deg, #ffffff 0%, #f1f6ff 100%);
  padding: 8px 14px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.documentacion-item__btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--soft-shadow);
  border-color: rgba(9, 28, 54, 0.25);
}

.documentacion-item__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.documentacion-item__btn--danger {
  border-color: rgba(197, 61, 47, 0.4);
  color: #7b1e1e;
  background: linear-gradient(135deg, rgba(197, 61, 47, 0.14), rgba(197, 61, 47, 0.04));
}

.documentacion-item:hover {
  transform: translateY(-1px);
  background: #eef2ff;
}

.documentacion-item.is-processing {
  opacity: 0.7;
  cursor: progress;
}

.documentacion-item__data {
  border-top: 1px dashed rgba(9, 28, 54, 0.16);
  padding-top: 10px;
}

.documentacion-item__data-title {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.documentacion-item__data-list {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(120px, 220px) 1fr;
  gap: 6px 10px;
}

.documentacion-item__data-list dt {
  margin: 0;
  font-weight: 700;
  color: #274b7a;
}

.documentacion-item__data-list dd {
  margin: 0;
  color: var(--muted);
  word-break: break-word;
}

.documentacion-item.is-complete {
  background: #e6f5ea;
  border-color: rgba(46, 125, 50, 0.4);
  color: #1f4d3b;
}

.sponsor-admin-item {
  display: grid;
  gap: 16px;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
}

.sponsor-admin-item__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  background: #fff;
  border-radius: 14px;
  padding: 10px;
}

.sponsor-admin-item__media img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
}

.sponsor-admin-item__content {
  display: grid;
  gap: 10px;
}

.sponsor-admin-item__header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.sponsor-admin-item__projects {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page--accounts .muted {
  color: var(--muted);
  margin: 4px 0 0;
}

.page--accounts .hidden {
  display: none;
}

.page--accounts .bottom-nav {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid rgba(9, 28, 54, 0.12);
  box-shadow: var(--soft-shadow);
  z-index: 30;
  border-radius: 16px;
  overflow-x: auto;
}

.page--accounts .bottom-nav button {
  background: transparent;
  color: var(--ink);
  border: 1px solid transparent;
  padding: 8px 12px;
}

.page--accounts .bottom-nav button.active {
  background: var(--secondary);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--soft-shadow);
}

.page--accounts .bottom-nav button:hover {
  border-color: rgba(9, 28, 54, 0.2);
  box-shadow: none;
}

.link-status {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}

.link-status--active {
  background: rgba(34, 130, 86, 0.16);
  color: #1f6d4b;
}

.link-status--used {
  background: rgba(197, 61, 47, 0.16);
  color: #8a1f1f;
}

.page--accounts #presupuestos-table thead tr:first-child th {
  background: rgba(31, 107, 255, 0.12);
  color: var(--secondary);
  font-weight: 700;
}

.page--accounts #presupuestos-table tbody tr:nth-child(odd) {
  background: rgba(31, 107, 255, 0.05);
}

.page--accounts #presupuestos-table tbody tr:hover {
  background: rgba(31, 107, 255, 0.12);
}

.page--accounts #presupuestos-table th {
  position: sticky;
  left: 0;
  background: #f7faff;
  z-index: 1;
}

.page--accounts #presupuestos-table td {
  text-align: right;
}

.page--accounts #presupuestos-table {
  width: max-content;
  min-width: 100%;
}

.page--accounts #presupuestos-table th,
.page--accounts #presupuestos-table td {
  white-space: nowrap;
  border: 0.5px solid rgba(9, 28, 54, 0.12);
}

.page--accounts #presupuestos-table th.group-presupuesto,
.page--accounts #presupuestos-table td.group-presupuesto {
  background-color: rgba(31, 107, 255, 0.06);
}

.page--accounts #presupuestos-table th.group-ejecutado,
.page--accounts #presupuestos-table td.group-ejecutado {
  background-color: rgba(247, 180, 44, 0.08);
}

.page--accounts #presupuestos-table th.group-pendiente,
.page--accounts #presupuestos-table td.group-pendiente {
  background-color: rgba(54, 179, 126, 0.08);
}

.page--accounts #presupuestos-table .group-start {
  border-left: 2px solid var(--secondary);
}

@media (max-width: 640px) {
  .sponsor-admin-item {
    grid-template-columns: 1fr;
  }

  .page--accounts .hero,
  .page--accounts .panel {
    padding: 20px;
  }

  .page--accounts .bottom-nav {
    width: calc(100% - 40px);
    justify-content: space-between;
  }
}

.page--accounts main {
  padding-bottom: 170px;
}

.accounts-hero {
  gap: 24px;
}

.accounts-gate {
  display: grid;
  justify-items: start;
}

.accounts-gate__card {
  background: #fff;
  padding: 22px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(9, 28, 54, 0.08);
  display: grid;
  gap: 12px;
  max-width: 520px;
}

.accounts-app {
  display: grid;
  gap: 24px;
}

.accounts-panels {
  display: grid;
  gap: 20px;
}

.accounts-panel {
  display: none;
  background: #fff;
  padding: 26px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(9, 28, 54, 0.08);
}

.accounts-panel.is-active {
  display: block;
}

.accounts-bottom-nav {
  position: fixed;
  inset: auto 0 0 0;
  background: rgba(234, 243, 255, 0.92);
  border-top: 1px solid rgba(9, 28, 54, 0.1);
  padding: 12px 6vw 16px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  z-index: 30;
  backdrop-filter: blur(16px);
}

.accounts-bottom-nav button {
  border: 1px solid rgba(9, 28, 54, 0.12);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.accounts-bottom-nav button.is-active {
  background: var(--secondary);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--soft-shadow);
}

.accounts-bottom-nav button:hover {
  transform: translateY(-2px);
  box-shadow: var(--soft-shadow);
}

/* Admin theme toggle */
.admin-theme-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.admin-theme-card__content {
  display: grid;
  gap: 8px;
}

.admin-theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.admin-theme-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.admin-theme-toggle__track {
  width: 56px;
  height: 30px;
  border-radius: 999px;
  background: #e6eefb;
  border: 1px solid rgba(9, 28, 54, 0.18);
  display: inline-flex;
  align-items: center;
  padding: 4px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.admin-theme-toggle__thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease;
}

.admin-theme-toggle input:checked + .admin-theme-toggle__track {
  background: #f7d34a;
  border-color: rgba(9, 28, 54, 0.25);
}

.admin-theme-toggle input:checked + .admin-theme-toggle__track .admin-theme-toggle__thumb {
  transform: translateX(24px);
}
/* Admin edit tools */
.admin-edit-buttons {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1200;
}

.admin-edit-buttons .btn,
.admin-edit-buttons .ghost {
  font-size: 0.85rem;
}

.admin-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
}

.admin-edit-modal.hidden {
  display: none;
}

.admin-edit-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 27, 0.6);
}

.admin-edit-modal__panel {
  position: relative;
  max-width: 980px;
  max-height: 90vh;
  margin: 5vh auto;
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

.admin-edit-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-edit-modal__body {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-edit-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-edit-tabs button {
  border: 1px solid #ccd6e0;
  background: #f5f7fa;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.admin-edit-tabs button.is-active {
  background: #1d4ed8;
  color: #fff;
  border-color: #1d4ed8;
}

.admin-edit-content {
  flex: 1;
  overflow: auto;
}

.admin-edit-textarea {
  width: 100%;
  min-height: 320px;
  border: 1px solid #ccd6e0;
  border-radius: 12px;
  padding: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
}

.admin-edit-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.admin-edit-status {
  color: #36506a;
  font-size: 0.9rem;
}

.admin-edit-upload label,
.admin-edit-project label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}

.admin-edit-upload input,
.admin-edit-project input,
.admin-edit-project textarea {
  width: 100%;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #ccd6e0;
}
/* Side nav */
.side-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 20px 18px;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-nav.open {
  transform: translateX(0);
}

.side-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.side-nav__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-nav__links a {
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
}

.side-nav__links a:hover {
  background: rgba(31, 107, 255, 0.12);
}

.side-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 28, 54, 0.4);
  z-index: 1100;
}

/* Inline admin controls */
.admin-edit-controls {
  display: flex;
  gap: 8px;
  margin: 8px 0 16px;
}

.admin-edit-plus,
.admin-edit-minus {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  font-weight: 700;
  cursor: pointer;
}

.admin-edit-plus {
  background: #1f6bff;
  color: #fff;
}

.admin-edit-minus {
  background: #c53d2f;
  color: #fff;
}

.admin-edit-menu {
  display: grid;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(9, 28, 54, 0.12);
  box-shadow: var(--soft-shadow);
}

.admin-edit-menu.hidden {
  display: none !important;
}

.admin-blocks-panel {
  display: none;
  position: fixed;
  left: 18px;
  top: 120px;
  width: 260px;
  max-height: calc(100vh - 160px);
  overflow: auto;
  background: #ffffff;
  border: 1px solid rgba(9, 28, 54, 0.12);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--soft-shadow);
  z-index: 1400;
  display: none;
}

body.admin-editing .admin-blocks-panel {
  display: block;
}

.admin-blocks-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.admin-blocks-panel__hint {
  font-size: 0.75rem;
  color: var(--muted);
}

.admin-blocks-panel__group {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.admin-blocks-panel__title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
}

.admin-blocks-panel__list {
  display: grid;
  gap: 8px;
}

.admin-blocks-panel__item {
  border: 1px solid rgba(9, 28, 54, 0.16);
  background: #f7faff;
  padding: 10px;
  border-radius: 14px;
  cursor: grab;
  font-family: inherit;
  display: grid;
  gap: 8px;
}

.admin-blocks-panel__item:active {
  cursor: grabbing;
}

.admin-blocks-panel__item.is-dragging {
  opacity: 0.6;
}

.admin-blocks-panel__preview {
  border: 1px solid rgba(9, 28, 54, 0.08);
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  min-height: 56px;
  display: grid;
  gap: 6px;
}

.admin-blocks-panel__label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
}

.block-preview__title,
.block-preview__subtitle,
.block-preview__text,
.block-preview__list,
.block-preview__card,
.block-preview__section,
.block-preview__hero,
.block-preview__split,
.block-preview__cta,
.block-preview__metric,
.block-preview__media,
.block-preview__grid,
.block-preview__carousel {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
}

.block-preview__title {
  font-size: 1rem;
  font-weight: 700;
}

.block-preview__subtitle {
  font-size: 0.95rem;
  font-weight: 600;
}

.block-preview__text {
  font-size: 0.8rem;
  color: var(--muted);
}

.block-preview__list {
  font-size: 0.78rem;
  color: var(--muted);
  padding-left: 16px;
}

.block-preview__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.block-preview__button.primary {
  background: #1f6bff;
  color: #fff;
}

.block-preview__button.ghost {
  border: 1px solid rgba(9, 28, 54, 0.16);
  color: var(--secondary);
}

.block-preview__metric {
  display: grid;
  gap: 4px;
  font-size: 0.75rem;
}

.block-preview__metric strong {
  font-size: 1rem;
}

.block-preview__card {
  display: grid;
  gap: 4px;
  background: #f7faff;
  border-radius: 8px;
  padding: 8px;
  font-size: 0.78rem;
}

.block-preview__section {
  display: grid;
  gap: 4px;
  font-size: 0.78rem;
}

.block-preview__eyebrow {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--secondary);
  font-weight: 700;
}

.block-preview__hero {
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
}

.block-preview__actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.block-preview__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-size: 0.75rem;
}

.block-preview__split div {
  background: #f7faff;
  border-radius: 6px;
  padding: 6px;
}

.block-preview__cta {
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
}

.block-preview__media {
  height: 54px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(31, 107, 255, 0.2), rgba(111, 179, 255, 0.2));
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--secondary);
}

.block-preview__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.block-preview__grid span {
  display: block;
  height: 22px;
  border-radius: 6px;
  background: rgba(31, 107, 255, 0.18);
}

.block-preview__carousel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.block-preview__carousel span {
  display: block;
  height: 28px;
  border-radius: 6px;
  background: rgba(31, 107, 255, 0.18);
}

/* Image file drag-over highlight */
.admin-img-drop-over {
  outline: 3px dashed #1f6bff !important;
  outline-offset: 4px;
  opacity: 0.7;
}

/* Upload modal */
.admin-upload-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-upload-modal {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.22);
  width: min(560px, 94vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--font-body, sans-serif);
}
.admin-upload-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #e5e9f0;
}
.admin-upload-modal__header h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.admin-upload-modal__close {
  background: none; border: none; font-size: 1.1rem;
  cursor: pointer; color: #666; padding: 4px 8px; border-radius: 4px;
}
.admin-upload-modal__close:hover { background: #f0f2f5; }
.admin-upload-modal__hint {
  padding: 12px 20px 0;
  font-size: 0.88rem;
  color: #58657a;
}
.admin-upload-modal__dropzone {
  margin: 16px 20px;
  border: 2px dashed #c0cade;
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #666;
  font-size: 0.9rem;
  transition: border-color 0.15s, background 0.15s;
}
.admin-upload-modal__dropzone.is-over {
  border-color: #1f6bff;
  background: rgba(31, 107, 255, 0.06);
}
.admin-upload-modal__progress {
  font-size: 0.82rem; color: #1f6bff; font-style: italic;
}
.admin-upload-modal__library-label {
  padding: 0 20px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #58657a;
}
.admin-upload-modal__previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  padding: 0 20px 10px;
  max-height: 320px;
  overflow-y: auto;
}
.admin-upload-modal__item {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid #dde1ea;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.admin-upload-modal__item:hover {
  border-color: #1f6bff;
  transform: translateY(-1px);
}
.admin-upload-modal__item.is-selected {
  border-color: #1f6bff;
  box-shadow: 0 0 0 2px rgba(31, 107, 255, 0.16);
  background: rgba(31, 107, 255, 0.05);
}
.admin-upload-modal__thumb {
  width: 100%; height: 92px;
  object-fit: cover; border-radius: 6px; border: 1px solid #dde1ea;
}
.admin-upload-modal__caption {
  font-size: 0.75rem;
  color: #3b4556;
  word-break: break-word;
}
.admin-upload-modal__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px;
  border: 1px dashed #cfd7e6;
  border-radius: 10px;
  color: #58657a;
  text-align: center;
  background: #f8fafc;
}
.admin-upload-modal__footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 14px 20px; border-top: 1px solid #e5e9f0;
}

.admin-drop-marker {
  height: 14px;
  margin: 16px 0;
  border-radius: 999px;
  border: 2px dashed rgba(31, 107, 255, 0.7);
  background: rgba(31, 107, 255, 0.08);
}

.admin-edit-menu__group {
  display: grid;
  gap: 8px;
}

.admin-edit-menu__title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
}

.admin-edit-menu__options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-edit-menu button {
  border: 1px solid #ccd6e0;
  background: #f5f7fa;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.editor-carousel {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(21, 19, 16, 0.06);
  padding: 20px;
  display: grid;
  gap: 16px;
  overflow: hidden;
}

.editor-carousel__track {
  display: flex;
  transition: transform 0.35s ease;
  width: 100%;
}

.editor-carousel__slide {
  min-width: 100%;
  display: grid;
  gap: 12px;
  align-items: center;
}

.editor-carousel__slide img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
}

.editor-carousel__caption {
  display: grid;
  gap: 6px;
}

.editor-carousel__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.editor-carousel__nav button {
  border: 1px solid rgba(9, 28, 54, 0.2);
  background: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
}

.editor-carousel__dots {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1;
}

.editor-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(9, 28, 54, 0.25);
  background: transparent;
  cursor: pointer;
}

.editor-carousel__dot.is-active {
  background: var(--secondary);
  border-color: transparent;
}

.legacy-concluded-section {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.legacy-projects-carousel {
  margin-top: 0;
}

.legacy-projects-carousel__slide {
  gap: 16px;
}

.legacy-projects-carousel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.legacy-project-admin__toggle {
  border: 1px solid rgba(9, 28, 54, 0.18);
  background: #fff;
  color: #0f4d8c;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  cursor: pointer;
}

.legacy-project-admin__toggle[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.legacy-project-summary {
  color: #666;
  font-size: 0.95rem;
}

.legacy-project-empty {
  padding: 24px 12px;
}

.admin-edit-floating {
  right: 16px;
  bottom: 16px;
  position: fixed;
  z-index: 1400;
  background: rgba(255,255,255,0.92);
  padding: 10px 12px;
  border-radius: 14px;
  box-shadow: var(--soft-shadow);
}
.admin-edit-edit {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  font-weight: 700;
  cursor: pointer;
  background: #f5b301;
  color: #1a1a1a;
}
/* Side nav */
.side-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 20px 18px;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-nav.open {
  transform: translateX(0);
}

.side-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.side-nav__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-nav__links a {
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
}

.side-nav__links a:hover {
  background: rgba(31, 107, 255, 0.12);
}

.side-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 28, 54, 0.4);
  z-index: 1100;
}

/* Inline admin controls */
.admin-edit-controls {
  display: flex;
  gap: 8px;
  margin: 8px 0 16px;
}

.admin-edit-plus,
.admin-edit-minus,
.admin-edit-edit {
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  font-weight: 700;
  cursor: pointer;
  padding: 0 8px;
}

.admin-edit-plus {
  background: #1f6bff;
  color: #fff;
}

.admin-edit-minus {
  background: #c53d2f;
  color: #fff;
}

.admin-edit-edit {
  background: #f5b301;
  color: #1a1a1a;
  border-radius: 999px;
}

.admin-edit-menu {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-edit-menu.hidden {
  display: none;
}

.admin-edit-menu button {
  border: 1px solid #ccd6e0;
  background: #f5f7fa;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.admin-edit-floating {
  right: 16px;
  bottom: 16px;
  position: fixed;
  z-index: 1400;
  background: rgba(255,255,255,0.92);
  padding: 10px 12px;
  border-radius: 14px;
  box-shadow: var(--soft-shadow);
}
.admin-edit-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.admin-edit-links a {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(9, 28, 54, 0.12);
  background: #fff;
  font-weight: 600;
  font-size: 0.8rem;
}

.admin-edit-format {
  position: absolute;
  z-index: 1500;
  display: flex;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(9, 28, 54, 0.12);
  box-shadow: var(--soft-shadow);
}

.admin-edit-menu,
.admin-edit-format {
  display: none !important;
}

body.admin-editing .admin-edit-controls {
  display: flex !important;
}

body.admin-editing .admin-edit-controls .admin-edit-plus,
body.admin-editing .admin-edit-controls .admin-edit-edit {
  display: none !important;
}

body.admin-editing .admin-edit-menu {
  display: none !important;
}

body.admin-editing .admin-edit-format {
  display: none !important;
}

.admin-edit-selected {
  outline: 2px dashed rgba(31, 107, 255, 0.9);
  outline-offset: 4px;
}

.admin-inspector {
  display: none;
  position: fixed;
  right: 18px;
  top: 120px;
  width: 280px;
  max-height: calc(100vh - 160px);
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(9, 28, 54, 0.12);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--soft-shadow);
  z-index: 1400;
  display: none;
}

body.admin-editing .admin-inspector {
  display: block;
}

.admin-inspector.hidden {
  display: none;
}

.admin-inspector__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.admin-panel-toggle--expand {
  display: none;
}

.admin-inspector.is-collapsed,
.admin-blocks-panel.is-collapsed {
  width: 160px;
  padding: 10px;
}

.admin-inspector.is-collapsed .admin-inspector__section,
.admin-blocks-panel.is-collapsed .admin-blocks-panel__body,
.admin-blocks-panel.is-collapsed .admin-blocks-panel__hint {
  display: none;
}

.admin-inspector.is-collapsed .admin-panel-toggle--collapse,
.admin-blocks-panel.is-collapsed .admin-panel-toggle--collapse {
  display: none;
}

.admin-inspector.is-collapsed .admin-panel-toggle--expand,
.admin-blocks-panel.is-collapsed .admin-panel-toggle--expand {
  display: inline-flex;
}

.admin-inspector__section {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.admin-inspector__section label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: var(--muted);
}

.admin-inspector__section input,
.admin-inspector__section select {
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(9, 28, 54, 0.15);
  font-family: inherit;
}

.admin-inspector__row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-inspector__row--cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 6px;
}

.admin-inspector__row button,
.admin-inspector__section button {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(9, 28, 54, 0.12);
  background: #f5f7fa;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8rem;
}

.admin-swatch {
  display: flex;
  gap: 6px;
}

.admin-swatch button {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(9, 28, 54, 0.12);
  cursor: pointer;
}

.admin-resize {
  position: absolute;
  border: 1px dashed rgba(31, 107, 255, 0.6);
  pointer-events: none;
  z-index: 1390;
  display: none;
}

.admin-resize__handle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #1f6bff;
  border-radius: 50%;
  pointer-events: auto;
}

.admin-resize__handle[data-dir="e"] {
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  cursor: ew-resize;
}

.admin-resize__handle[data-dir="s"] {
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  cursor: ns-resize;
}

.admin-resize__handle[data-dir="se"] {
  right: -5px;
  bottom: -5px;
  cursor: nwse-resize;
}

.admin-edit-format button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px 6px;
  border-radius: 6px;
}

.admin-edit-format button:hover {
  background: rgba(31, 107, 255, 0.12);
}

@media (max-width: 720px) {
  body.admin-editing .admin-edit-controls .admin-edit-minus {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
    line-height: 1;
  }
}

.story-panel p {
  color: #e6f2ff;
}

.story-panel h3 {
  color: #ffffff;
}

.story-panel span {
  color: #cfe0ff;
}
  .top-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-links__meta {
    justify-content: flex-start;
  }

  .header-main {
    align-items: flex-start;
  }

  .brand-text {
    display: none;
  }

  .header-auth {
    justify-content: flex-start;
  }

  .header-search {
    order: 3;
    width: 100%;
  }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
