/*
Theme Name: Influencers EliteModels
Template: creatorhub-legal-theme-v20
Description: Tema oscuro de lujo (Obsidian & Gold) con visor de imágenes ultrarrápido, reproductor de video cinema y SEO optimizado para InfluencersCalientes.com.
Version: 1.0.0
Text Domain: influencers-elitemodels
*/

:root {
  --em-bg: #08090c;
  --em-surface: #111216;
  --em-surface-2: #171920;
  --em-border: rgba(212, 175, 55, 0.18);
  --em-border-strong: rgba(212, 175, 55, 0.48);
  --em-gold: #e5b94c;
  --em-gold-2: #c9972c;
  --em-gold-soft: rgba(229, 185, 76, 0.12);
  --em-text: #f4f4f5;
  --em-muted: #a1a1aa;
  --em-green: #22c55e;
  --em-radius: 14px;
  --em-font-display: 'Playfair Display', Georgia, serif;
  --em-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--em-bg);
  color: var(--em-text);
  font-family: var(--em-font-sans);
  font-size: 14.5px;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font-family: inherit; }

.em-container {
  max-width: 1460px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================== HEADER ==================== */
.em-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(8, 9, 12, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--em-border);
}
.em-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 70px;
}
.em-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.em-logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(229, 185, 76, 0.2), rgba(201, 151, 44, 0.08));
  border: 1px solid var(--em-border-strong);
  color: var(--em-gold);
  font-size: 17px;
}
.em-logo-title {
  font-family: var(--em-font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #fff;
  line-height: 1.1;
}
.em-logo-title span { color: var(--em-gold); }
.em-logo-sub {
  font-size: 9.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--em-muted);
}

.em-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.em-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--em-muted);
  transition: all 0.2s;
}
.em-nav-link:hover,
.em-nav-link.is-active {
  color: var(--em-gold);
  background: var(--em-gold-soft);
}

.em-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.em-search-wrap {
  position: relative;
  width: 245px;
}
.em-search-input {
  width: 100%;
  height: 38px;
  padding: 0 38px 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--em-surface);
  color: #fff;
  font-size: 13px;
  outline: none;
}
.em-search-input:focus { border-color: var(--em-gold); }
.em-search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--em-gold);
  cursor: pointer;
}
.em-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--em-surface);
  border: 1px solid var(--em-border-strong);
  border-radius: 12px;
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 950;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
}
.em-search-results.is-open { display: flex; }
.em-search-hit {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
}
.em-search-hit:hover { background: rgba(255, 255, 255, 0.06); }
.em-search-hit img { width: 38px; height: 48px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.em-search-hit-title { font-size: 12.5px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.em-icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--em-surface);
  color: var(--em-text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s;
}
.em-icon-btn:hover { border-color: var(--em-gold); color: var(--em-gold); }
.em-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--em-gold);
  color: #09090b;
  font-size: 10px;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
}
.em-mobile-toggle { display: none; }

/* ==================== MAIN 2-COL CATALOG LAYOUT ==================== */
.em-shell {
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr);
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 42px;
}

/* ==================== LEFT FILTER SIDEBAR ==================== */
.em-sidebar {
  background: var(--em-surface);
  border: 1px solid var(--em-border);
  border-radius: var(--em-radius);
  padding: 16px;
  height: fit-content;
  position: sticky;
  top: 86px;
}
.em-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.em-sidebar-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--em-gold);
  display: flex;
  align-items: center;
  gap: 8px;
}
.em-clear-link { font-size: 12px; color: var(--em-muted); }
.em-clear-link:hover { color: var(--em-gold); }

.em-filter-group {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.em-filter-group:last-of-type { border-bottom: none; margin-bottom: 10px; }
.em-filter-label {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.em-filter-options {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 210px;
  overflow-y: auto;
  padding-right: 8px;
}
.em-check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  color: var(--em-muted);
  cursor: pointer;
}
.em-check-row:hover { color: #fff; }
.em-check-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.em-check-left input { accent-color: var(--em-gold); cursor: pointer; }
.em-check-left span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.em-check-count { font-size: 11px; color: #71717a; }

.em-btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #ecc55e, #c9972c);
  color: #09090b;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s;
}
.em-btn-gold:hover { filter: brightness(1.08); transform: translateY(-1px); color: #09090b; }

.em-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid var(--em-border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--em-text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.em-btn-outline:hover { background: var(--em-gold-soft); color: var(--em-gold); }

/* ==================== CATALOG HERO BANNER ==================== */
.em-hero-banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--em-border);
  background: linear-gradient(120deg, #13141a 0%, #1c1914 60%, #111216 100%);
  padding: 26px 28px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.em-hero-bg-img {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 44%;
  object-fit: cover;
  opacity: 0.34;
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}
.em-hero-copy { position: relative; z-index: 2; max-width: 660px; width: 100%; }
.em-hero-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--em-gold);
  margin-bottom: 6px;
}
.em-hero-title {
  margin: 0 0 8px;
  font-family: var(--em-font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.12;
  color: #fff;
}
.em-hero-title span { color: var(--em-gold); }
.em-hero-desc {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: var(--em-muted);
}
.em-hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(9, 9, 11, 0.85);
  border: 1px solid var(--em-border-strong);
  border-radius: 12px;
  padding: 5px 6px 5px 14px;
}
.em-hero-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 13.5px;
  outline: none;
}

/* ==================== TAGS STRIP & TOOLBAR ==================== */
.em-tags-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.em-tags-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--em-gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
}
.em-tag-pill {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--em-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--em-muted);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
}
.em-tag-pill:hover,
.em-tag-pill.is-active {
  border-color: var(--em-gold);
  color: var(--em-gold);
  background: var(--em-gold-soft);
}

.em-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.em-toolbar-left { display: flex; align-items: center; gap: 10px; }
.em-toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.em-select {
  height: 36px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--em-surface);
  color: #fff;
  font-size: 12.5px;
}

/* ==================== 6-COLUMN MODEL GRID ==================== */
.em-grid-6 {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.em-grid-6.is-list-view {
  grid-template-columns: 1fr;
}
.em-card {
  background: var(--em-surface);
  border: 1px solid var(--em-border);
  border-radius: 13px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.em-card:hover {
  transform: translateY(-4px);
  border-color: var(--em-gold);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
}
.em-card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #0d0e12;
  overflow: hidden;
}
.em-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.em-card:hover .em-card-media img { transform: scale(1.05); }
.em-card-media::after {
  content: '';
  position: absolute;
  inset: 45% 0 0 0;
  background: linear-gradient(to top, rgba(9, 9, 11, 0.94), transparent);
  pointer-events: none;
}
.em-status-dot {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--em-green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  z-index: 2;
}
.em-fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(9, 9, 11, 0.65);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  cursor: pointer;
  z-index: 3;
}
.em-fav-btn.is-saved,
.em-fav-btn:hover { border-color: var(--em-gold); color: var(--em-gold); }
.em-card-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 2;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(9, 9, 11, 0.78);
  border: 1px solid var(--em-border);
  color: var(--em-gold);
}
.em-card-body {
  padding: 10px 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.em-card-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}
.em-card-title i { color: var(--em-gold); font-size: 12px; margin-left: 4px; }
.em-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--em-muted);
}
.em-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}
.em-card-actions .em-btn-gold,
.em-card-actions .em-btn-outline {
  padding: 6px 8px;
  font-size: 11px;
  border-radius: 7px;
}

.em-grid-6.is-list-view .em-card {
  flex-direction: row;
  align-items: center;
  padding: 10px;
  gap: 14px;
}
.em-grid-6.is-list-view .em-card-media { width: 92px; flex-shrink: 0; border-radius: 10px; }
.em-grid-6.is-list-view .em-card-actions { max-width: 240px; }

/* ==================== PAGINATION & SEO BOX ==================== */
.em-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}
.em-pagination { display: flex; gap: 6px; flex-wrap: wrap; }
.em-pagination .page-numbers {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--em-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--em-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}
.em-pagination .page-numbers.current {
  background: var(--em-gold);
  border-color: var(--em-gold);
  color: #09090b;
  font-weight: 800;
}

.em-seo-footer-card {
  margin-top: 30px;
  padding: 20px 24px;
  border-radius: 14px;
  background: var(--em-surface);
  border: 1px solid var(--em-border);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--em-muted);
}
.em-seo-footer-card h2,
.em-seo-footer-card h3 { color: var(--em-gold); margin-top: 0; }
.em-seo-footer-card a { color: var(--em-gold); text-decoration: underline; }

/* ==================== SINGLE VIEWER (FAST GALLERY + VIDEO) ==================== */
.em-single-wrap {
  padding-top: 22px;
  padding-bottom: 48px;
}
.em-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--em-muted);
  margin-bottom: 16px;
}
.em-breadcrumb a:hover { color: var(--em-gold); }
.em-breadcrumb-cur { color: #fff; font-weight: 600; }

.em-single-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: start;
}
.em-viewer-box {
  background: var(--em-surface);
  border: 1px solid var(--em-border);
  border-radius: 16px;
  overflow: hidden;
}
.em-viewer-stage {
  position: relative;
  background: #050507;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.em-viewer-stage.is-video { aspect-ratio: 16 / 9; }
.em-viewer-stage iframe,
.em-viewer-stage video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.em-viewer-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transition: opacity 0.15s ease;
}
.em-viewer-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--em-border-strong);
  background: rgba(9, 9, 11, 0.78);
  color: var(--em-gold);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 3;
}
.em-viewer-arrow:hover { background: var(--em-gold); color: #09090b; }
.em-viewer-prev { left: 12px; }
.em-viewer-next { right: 12px; }

.em-viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px;
  background: #0d0e13;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.em-viewer-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 8px;
  padding: 12px;
  max-height: 260px;
  overflow-y: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.em-thumb-btn {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #09090b;
  cursor: pointer;
}
.em-thumb-btn.is-active { border-color: var(--em-gold); }
.em-thumb-btn img { width: 100%; height: 100%; object-fit: cover; }

.em-profile-card {
  background: var(--em-surface);
  border: 1px solid var(--em-border);
  border-radius: 16px;
  padding: 22px;
}
.em-single-title {
  margin: 8px 0 10px;
  font-family: var(--em-font-display);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
  color: #fff;
}
.em-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}
.em-chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--em-text);
}
.em-chip.is-gold {
  background: var(--em-gold-soft);
  border-color: var(--em-border-strong);
  color: var(--em-gold);
}
.em-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
}
.em-cta-stack .wp-block-buttons { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px !important; margin: 0 !important; }
.em-cta-stack .wp-block-button { width: 100% !important; margin: 0 !important; }
.em-cta-stack .wp-block-button__link {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  padding: 12px 14px !important;
  border-radius: 10px !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
}
.em-cta-stack .wp-block-button:first-child .wp-block-button__link {
  background: linear-gradient(135deg, #ecc55e, #c9972c) !important;
  color: #09090b !important;
  border: none !important;
}
.em-cta-stack .wp-block-button:nth-child(2) .wp-block-button__link {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--em-gold) !important;
  border: 1px solid var(--em-border-strong) !important;
}

/* ==================== LIGHTBOX & MODAL ==================== */
.em-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 5, 7, 0.96);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.em-lightbox.is-open { display: flex; }
.em-lightbox img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
}
.em-lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--em-border-strong);
  background: var(--em-surface);
  color: var(--em-gold);
  font-size: 18px;
  cursor: pointer;
}
.em-lights-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 940;
  display: none;
}
.em-lights-overlay.is-open { display: block; }
.em-viewer-box.is-lights-on { position: relative; z-index: 950; }

/* ==================== FOOTER ==================== */
.em-footer {
  border-top: 1px solid var(--em-border);
  background: #060709;
  padding: 26px 0;
  color: var(--em-muted);
  font-size: 13px;
}
.em-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1260px) {
  .em-grid-6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.em-mobile-filter-btn { display: none; }

@media (max-width: 980px) {
  .em-shell, .em-single-grid { grid-template-columns: 1fr; }
  .em-sidebar { position: static; display: none; }
  .em-sidebar.is-open { display: block; }
  .em-mobile-filter-btn { display: inline-flex; }
  .em-nav { display: none; }
  .em-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #111216;
    border-bottom: 1px solid var(--em-border);
    padding: 14px 20px;
  }
  .em-mobile-toggle { display: grid; }
}
@media (max-width: 640px) {
  .em-grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .em-search-wrap { display: none; }
  .em-hero-bg-img { display: none; }
  .em-cta-stack .wp-block-buttons { grid-template-columns: 1fr !important; }
}
