/* =========================
   BASE
========================= */

:root {
  --pc-black: #0b0b0b;
  --pc-black-2: #1a1a1a;
  --pc-white: #ffffff;
  --pc-offwhite: #f5f5f2;
  --pc-offwhite-2: #f3f3f0;
  --pc-muted: #777777;
  --pc-muted-2: #6f6f6f;
  --pc-border: rgba(11, 11, 11, 0.06);
  --pc-border-2: rgba(11, 11, 11, 0.12);
  --pc-border-3: rgba(11, 11, 11, 0.24);
  --pc-success-bg: rgba(19, 126, 67, 0.1);
  --pc-success-text: #137e43;
  --pc-draft-bg: rgba(128, 128, 128, 0.12);
  --pc-draft-text: #5b5b5b;
  --pc-closed-bg: rgba(11, 11, 11, 0.08);
  --pc-closed-text: #222222;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--pc-offwhite);
  color: var(--pc-black);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* =========================
   BOTONES GLOBALES
========================= */

.pc-btn,
.pc-btn:link,
.pc-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  background: var(--pc-black);
  color: var(--pc-white) !important;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--pc-black);
  text-decoration: none !important;
  transition: all .2s ease;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.pc-btn:hover,
.pc-btn:focus,
.pc-btn:active {
  background: var(--pc-black-2);
  border-color: var(--pc-black-2);
  color: var(--pc-white) !important;
  text-decoration: none !important;
}

.pc-btn-outline,
.pc-btn-outline:link,
.pc-btn-outline:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border: 1px solid rgba(11,11,11,.14);
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--pc-black) !important;
  background: var(--pc-white);
  text-decoration: none !important;
  transition: all .2s ease;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.pc-btn-outline:hover,
.pc-btn-outline:focus,
.pc-btn-outline:active {
  background: #f7f7f4;
  border-color: rgba(11,11,11,.24);
  color: var(--pc-black) !important;
  text-decoration: none !important;
}

/* =========================
   NAVBAR PÚBLICA
========================= */

.pc-navbar {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 15px 0;
}

.pc-logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.03em;
}

.pc-nav-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}

/* =========================
   HOME
========================= */

.pc-hero {
  padding: 80px 0 40px;
  text-align: center;
}

.pc-hero-title {
  font-size: clamp(2.4rem, 5vw, 52px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.05em;
  margin-bottom: .75rem;
}

.pc-hero-subtitle {
  color: var(--pc-muted);
  margin-top: 10px;
  font-size: 1rem;
}

.pc-search input {
  margin-top: 25px;
  width: 100%;
  max-width: 600px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid #ddd;
  outline: none;
  background: var(--pc-white);
}

.pc-search input:focus {
  border-color: rgba(11,11,11,.22);
}

.pc-section-title {
  font-weight: 700;
  letter-spacing: -.03em;
}

.pc-card {
  background: var(--pc-white);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
  height: 100%;
}

.pc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(0,0,0,.08);
}

.pc-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.pc-card-body {
  padding: 15px;
}

.pc-card-body h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: .35rem;
}

.pc-card-body span {
  font-size: 13px;
  color: var(--pc-muted);
}

.pc-card-link {
  display: block;
  color: inherit;
}

.pc-card-link:hover,
.pc-card-link:focus,
.pc-card-link:active {
  color: inherit;
  text-decoration: none;
}

.pc-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--pc-muted);
}

/* =========================
   EVENT PAGE
========================= */

.pc-page-event {
  background: var(--pc-offwhite-2);
  color: var(--pc-black);
}

.pc-event-main {
  min-height: 100vh;
}

.pc-event-hero {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 460px;
  background: #111;
  box-shadow: 0 25px 80px rgba(0,0,0,.14);
}

.pc-event-hero-image-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 460px;
}

.pc-event-hero-image {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  display: block;
}

.pc-event-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.16) 0%, rgba(0,0,0,.28) 100%);
}

.pc-event-floating-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100%, 460px);
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-radius: 28px;
  padding: 2rem 1.8rem 1.6rem;
  box-shadow: 0 20px 70px rgba(0,0,0,.24);
  text-align: center;
}

.pc-event-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .5rem .85rem;
  border-radius: 999px;
  background: rgba(11,11,11,.06);
  color: var(--pc-black);
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.pc-event-title {
  font-size: clamp(1.8rem, 2.2vw, 2.6rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.05em;
  margin-bottom: .9rem;
}

.pc-event-subtitle {
  color: #4f4f4f;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 34ch;
  margin: 0 auto 1rem;
}

.pc-event-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: 1.4rem;
}

.pc-event-meta span {
  display: inline-flex;
  align-items: center;
  padding: .52rem .8rem;
  border-radius: 999px;
  background: var(--pc-white);
  border: 1px solid rgba(11,11,11,.07);
  font-size: .84rem;
  color: #3a3a3a;
  font-weight: 600;
}

.pc-selfie-box {
  margin-top: .4rem;
}

.pc-selfie-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.pc-selfie-icon {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: #f7f7f7;
  color: var(--pc-black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(11,11,11,.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}

.pc-upload-field {
  margin-bottom: 1rem;
}

.pc-file-input {
  border-radius: 16px;
  border: 1px solid rgba(11,11,11,.1);
  padding: .85rem 1rem;
  background: var(--pc-white);
  box-shadow: none !important;
}

.pc-file-input:focus {
  border-color: rgba(11,11,11,.2);
}

.pc-event-cta {
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: var(--pc-black);
  color: var(--pc-white);
  font-weight: 700;
  font-size: 1rem;
  padding: .95rem 1.2rem;
  transition: transform .2s ease, background .2s ease;
}

.pc-event-cta:hover {
  background: var(--pc-black-2);
  transform: translateY(-1px);
}

.pc-event-cta:disabled {
  opacity: .7;
  transform: none;
}

.pc-selfie-help {
  margin-top: .8rem;
  margin-bottom: 0;
  font-size: .84rem;
  color: #666;
}

.pc-section-subtitle {
  color: #6b6b6b;
  font-size: .98rem;
}

.pc-gallery-card {
  background: var(--pc-white);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,.08);
  transition: transform .22s ease, box-shadow .22s ease;
  height: 100%;
}

.pc-gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,.12);
}

.pc-gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.pc-gallery-card-body {
  padding: 1rem 1rem 1.1rem;
}

.pc-gallery-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .3rem;
  line-height: 1.25;
}

.pc-gallery-card-body span {
  font-size: .86rem;
  color: var(--pc-muted);
}

.pc-results-grid .pc-result-card {
  background: var(--pc-white);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,.08);
  height: 100%;
}

.pc-results-grid .pc-result-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.pc-results-grid .pc-result-card-body {
  padding: 1rem;
}

.pc-results-grid .pc-result-meta {
  font-size: .86rem;
  color: var(--pc-muted);
  margin-bottom: .7rem;
}

.pc-buy-btn {
  width: 100%;
  border: 1px solid var(--pc-black);
  background: var(--pc-black);
  color: var(--pc-white);
  border-radius: 999px;
  font-weight: 600;
  padding: .72rem .9rem;
}

.pc-buy-btn:hover {
  background: var(--pc-black-2);
  border-color: var(--pc-black-2);
  color: var(--pc-white);
}

/* =========================
   ADMIN UI
========================= */

.pc-admin-body {
  background: var(--pc-offwhite-2);
  color: var(--pc-black);
  min-height: 100vh;
}

.pc-admin-shell {
  min-height: 100vh;
}

.pc-admin-topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--pc-border);
}

.pc-admin-brand {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--pc-black);
  text-decoration: none;
  letter-spacing: -.03em;
}

.pc-admin-brand:hover,
.pc-admin-brand:focus,
.pc-admin-brand:active {
  color: var(--pc-black);
  text-decoration: none;
}

.pc-admin-subtitle {
  color: var(--pc-muted-2);
  font-size: .96rem;
}

.pc-admin-card {
  background: var(--pc-white);
  border: 1px solid rgba(11,11,11,.05);
  border-radius: 24px;
  box-shadow: 0 14px 45px rgba(0,0,0,.06);
}

.pc-admin-card-soft {
  background: linear-gradient(180deg, #ffffff 0%, #fafaf8 100%);
  border: 1px solid rgba(11,11,11,.05);
  border-radius: 24px;
  box-shadow: 0 14px 45px rgba(0,0,0,.05);
}

.pc-admin-stat-label {
  font-size: .84rem;
  color: var(--pc-muted);
  margin-bottom: .5rem;
}

.pc-admin-stat-value {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.05em;
  color: var(--pc-black);
}

.pc-admin-section-title {
  font-size: clamp(1.7rem, 2vw, 2.2rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.05em;
  color: var(--pc-black);
  margin-bottom: .35rem;
}

.pc-admin-table-wrap {
  overflow: hidden;
  border-radius: 24px;
  background: var(--pc-white);
  border: 1px solid rgba(11,11,11,.06);
  box-shadow: 0 14px 45px rgba(0,0,0,.05);
}

.pc-admin-table {
  margin-bottom: 0;
}

.pc-admin-table thead th {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--pc-muted);
  font-weight: 700;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(11,11,11,.06);
  background: #fbfbf9;
}

.pc-admin-table tbody td {
  padding: 1rem 1.1rem;
  vertical-align: middle;
  border-color: rgba(11,11,11,.05);
}

.pc-admin-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border-radius: 999px;
  padding: .42rem .75rem;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
}

.pc-admin-badge--published {
  background: var(--pc-success-bg);
  color: var(--pc-success-text);
}

.pc-admin-badge--draft {
  background: var(--pc-draft-bg);
  color: var(--pc-draft-text);
}

.pc-admin-badge--closed {
  background: var(--pc-closed-bg);
  color: var(--pc-closed-text);
}

.pc-admin-form-card {
  background: var(--pc-white);
  border: 1px solid rgba(11,11,11,.06);
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(0,0,0,.06);
}

.pc-admin-form-label {
  font-size: .88rem;
  font-weight: 700;
  color: #222;
  margin-bottom: .45rem;
}

.pc-admin-input,
.pc-admin-select {
  border-radius: 16px;
  border: 1px solid rgba(11,11,11,.1);
  background: #fff;
  padding: .82rem 1rem;
  box-shadow: none !important;
}

.pc-admin-input:focus,
.pc-admin-select:focus {
  border-color: rgba(11,11,11,.22);
}

.pc-admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top left, rgba(0,0,0,.04), transparent 30%),
    linear-gradient(180deg, #f7f7f4 0%, #efefeb 100%);
  padding: 2rem 1rem;
}

.pc-admin-login-card {
  width: 100%;
  max-width: 460px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(11,11,11,.06);
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(0,0,0,.1);
}

.pc-admin-login-title {
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.05em;
  margin-bottom: .75rem;
}

.pc-admin-login-text {
  color: #6c6c6c;
  font-size: .97rem;
}

.pc-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.pc-admin-empty {
  background: var(--pc-white);
  border: 1px dashed rgba(11,11,11,.12);
  border-radius: 22px;
  padding: 2rem;
  color: #666;
}

.pc-admin-thumb {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  overflow: hidden;
  flex: 0 0 56px;
  background: #f1f1ee;
  border: 1px solid rgba(11,11,11,.06);
}

.pc-admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pc-admin-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--pc-black);
  background: linear-gradient(180deg, #fafaf8 0%, #ecece8 100%);
}

.pc-admin-row-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: .5rem;
  align-items: center;
  justify-content: flex-start;
}

.pc-action-btn,
.pc-action-btn:link,
.pc-action-btn:visited,
.pc-action-btn:hover,
.pc-action-btn:focus,
.pc-action-btn:active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 38px;
  padding: .58rem .9rem;
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none !important;
  transition: all .2s ease;
}

.pc-action-btn i {
  font-size: .92rem;
  line-height: 1;
}

.pc-action-btn span {
  line-height: 1;
}

.pc-action-btn--ghost,
.pc-action-btn--ghost:link,
.pc-action-btn--ghost:visited,
.pc-action-btn--ghost:hover,
.pc-action-btn--ghost:focus,
.pc-action-btn--ghost:active {
  background: var(--pc-white);
  color: #111 !important;
  border: 1px solid rgba(11,11,11,.12);
  text-decoration: none !important;
}

.pc-action-btn--ghost:hover,
.pc-action-btn--ghost:focus {
  background: #f7f7f4;
  border-color: rgba(11,11,11,.24);
}

.pc-action-btn--primary,
.pc-action-btn--primary:link,
.pc-action-btn--primary:visited,
.pc-action-btn--primary:hover,
.pc-action-btn--primary:focus,
.pc-action-btn--primary:active {
  background: var(--pc-black);
  color: var(--pc-white) !important;
  border: 1px solid var(--pc-black);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  text-decoration: none !important;
}

.pc-action-btn--primary:hover,
.pc-action-btn--primary:focus {
  background: var(--pc-black-2);
  border-color: var(--pc-black-2);
}

.pc-admin-table .pc-action-btn,
.pc-admin-table .pc-action-btn:link,
.pc-admin-table .pc-action-btn:visited,
.pc-admin-table .pc-action-btn:hover,
.pc-admin-table .pc-action-btn:focus,
.pc-admin-table .pc-action-btn:active {
  text-decoration: none !important;
}

.pc-btn-sm {
  padding: .55rem .85rem;
  font-size: .82rem;
}

.form-text {
  color: #767676;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1199.98px) {
  .pc-admin-row-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 991.98px) {
  .pc-event-hero,
  .pc-event-hero-image,
  .pc-event-hero-image-wrap {
    min-height: 560px;
  }

  .pc-event-floating-card {
    width: calc(100% - 2rem);
    padding: 1.6rem 1.2rem 1.3rem;
  }

  .pc-action-btn span {
    display: none;
  }

  .pc-action-btn,
  .pc-action-btn:link,
  .pc-action-btn:visited,
  .pc-action-btn:hover,
  .pc-action-btn:focus,
  .pc-action-btn:active {
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    border-radius: 50%;
  }

  .pc-action-btn i {
    font-size: 1rem;
  }
}

@media (max-width: 767.98px) {
  .pc-admin-section-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 575.98px) {
  .pc-event-hero,
  .pc-event-hero-image,
  .pc-event-hero-image-wrap {
    min-height: 620px;
  }

  .pc-event-title {
    font-size: 1.9rem;
  }

  .pc-nav-actions {
    gap: .5rem;
  }

  .pc-btn,
  .pc-btn-outline {
    padding: 8px 12px;
    font-size: .9rem;
  }
}

.pc-upload-dropzone {
  border: 1px dashed rgba(11,11,11,.14);
  border-radius: 22px;
  background: #fafaf8;
  padding: 2rem;
}

.pc-admin-row-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: .5rem;
  align-items: center;
  justify-content: flex-start;
}

@media (max-width: 1199.98px) {
  .pc-admin-row-actions {
    flex-wrap: wrap;
  }
}

/* =========================
   UPLOAD PROGRESS
========================= */

.pc-upload-progress {
  background: #fafaf8;
  border: 1px solid rgba(11,11,11,.08);
  border-radius: 20px;
  padding: 1rem 1rem .9rem;
}

.pc-upload-progress-label {
  display: inline-flex;
  align-items: center;
  font-size: .92rem;
  font-weight: 600;
  color: #222;
}

.pc-upload-progress-percent {
  font-size: .9rem;
  font-weight: 700;
  color: #111;
}

.pc-upload-progressbar {
  height: 12px;
  background: rgba(11,11,11,.08);
  border-radius: 999px;
  overflow: hidden;
}

.pc-upload-progressbar .progress-bar {
  background: #0b0b0b;
  border-radius: 999px;
  transition: width .18s ease;
}

.pc-upload-progress-help {
  font-size: .84rem;
  color: #666;
}