/* ================================================
   EB — Sistema de Diseño Global
   Obsidian Luxe · Dark Editorial · Bootstrap 5
   ================================================ */

:root {
  /* ── Paleta refinada ── */
  --color-primary:       #C4194F;
  --color-primary-dark:  #8B0F37;
  --color-primary-light: #E8799C;
  --color-primary-glow:  rgba(196, 25, 79, 0.18);
  --color-accent:        #C9A84C;
  --color-accent-light:  #E8D08A;
  --color-accent-glow:   rgba(201, 168, 76, 0.16);
  --color-available:     #3DBE6C;
  --color-unavail:       #525252;

  /* ── Fondos — cálidos y profundos ── */
  --color-bg:       #08070A;
  --color-surface:  #100E14;
  --color-surface2: #17151C;
  --color-surface3: #201D27;
  --color-border:   #292632;
  --color-border-2: #3A3748;

  /* ── Texto ── */
  --color-text:      #EDE8E3;
  --color-text-muted:#8D8997;
  --color-text-dim:  #5C5968;

  /* ── Tipografía ── */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Outfit', system-ui, -apple-system, sans-serif;

  /* ── Radios ── */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* ── Transición ── */
  --t:        230ms cubic-bezier(.4, 0, .2, 1);
  --t-slow:   400ms cubic-bezier(.4, 0, .2, 1);
  --t-spring: 350ms cubic-bezier(.34, 1.56, .64, 1);
}

/* ── Reset base ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  line-height: 1.65;
}

/* Grain de película — textura sutil sobre toda la UI */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: .038;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* Override Bootstrap para tema oscuro */
.form-select, .form-control, .form-check-input {
  background-color: var(--color-surface3) !important;
  border-color: var(--color-border) !important;
  color: var(--color-text) !important;
}
.form-select:focus,
.form-control:focus {
  background-color: var(--color-surface3) !important;
  border-color: var(--color-primary) !important;
  color: var(--color-text) !important;
  box-shadow: 0 0 0 3px var(--color-primary-glow) !important;
}
.form-select option { background: var(--color-surface2); color: var(--color-text); }
/* Autofill del navegador en tema oscuro */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 100px var(--color-surface3) inset !important;
  -webkit-text-fill-color: var(--color-text) !important;
  caret-color: var(--color-text);
}
.form-label { color: var(--color-text-muted); font-size: .8rem; font-weight: 500; letter-spacing: .03em; }
.form-control::placeholder,
.form-select::placeholder { color: #9490A2 !important; opacity: 1 !important; }

/* ── Botones ─────────────────────────────────── */
.eb-btn {
  font-weight: 600;
  font-size: .8rem;
  border-radius: var(--r-full);
  transition: all var(--t);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eb-btn-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.eb-btn-primary:hover, .eb-btn-primary:focus {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--color-primary-glow);
}
.eb-btn-outline {
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}
.eb-btn-outline:hover, .eb-btn-outline:focus {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--color-primary-glow);
}
.eb-btn-ghost {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}
.eb-btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-glow);
}

/* ── Navbar ──────────────────────────────────── */
.eb-navbar { 
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1030;
  padding: .6rem 0;
  background: transparent;
  transform: translateY(0);
  transition: background var(--t-slow), padding var(--t), box-shadow var(--t-slow),
              transform .3s cubic-bezier(.4,0,.2,1);
}
.eb-navbar--hidden {
  transform: translateY(-220px);
}
.eb-navbar--scrolled {
  background: rgba(8,7,10,.97) !important;
  padding: .5rem 0;
  box-shadow: 0 1px 0 var(--color-border), 0 4px 32px rgba(0,0,0,.75);
  backdrop-filter: blur(20px);
}
.eb-navbar .nav-link {
  color: rgba(237,232,227,.72) !important;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: .4rem .85rem;
  border-radius: var(--r-sm);
  transition: color var(--t);
}
.eb-navbar .nav-link:hover,
.eb-navbar .nav-link.active { color: var(--color-primary) !important; }
.eb-logo-wrap {
  position: absolute;
  top: 0;
  left: 1rem;
  transform: none;
  line-height: 0;
  z-index: 10;
}
.eb-logo {
  height: 160px;
  filter: brightness(1.05);
  transition: height var(--t);
}
.eb-navbar--scrolled .eb-logo { height: 120px; }

/* ── Hero ────────────────────────────────────── */
.eb-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.eb-hero__video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.eb-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,8,8,.45) 0%,
    rgba(8,8,8,.6)  55%,
    rgba(8,8,8,.97) 100%
  );
  z-index: 1;
}
.eb-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 6rem 1rem 5rem;
}
.eb-hero__logo {
  filter: drop-shadow(0 4px 24px rgba(194,24,91,.45));
}
.eb-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 5.2rem);
  font-weight: 600;
  font-style: italic;
  color: #fff;
  text-shadow: 0 2px 44px rgba(0,0,0,.6);
  margin: 0;
  letter-spacing: -.01em;
  line-height: 1.1;
}
.eb-hero__subtitle {
  color: rgba(237,232,227,.55);
  font-size: clamp(.72rem, 1.4vw, .85rem);
  font-weight: 300;
  margin-top: .75rem;
  letter-spacing: .35em;
  text-transform: uppercase;
}

/* Search bar en hero */
.eb-search-bar {
  max-width: 540px;
  margin: 0 auto;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-full);
  overflow: hidden;
  padding: .3rem;
  transition: border-color var(--t), box-shadow var(--t);
}
.eb-search-bar:focus-within {
  border-color: rgba(196,25,79,.45);
  box-shadow: 0 0 0 4px rgba(196,25,79,.08), 0 8px 32px rgba(0,0,0,.3);
}
.eb-search-bar .form-select {
  background: transparent;
  border: none;
  box-shadow: none;
  color: #fff !important;
  font-size: .84rem;
  letter-spacing: .02em;
}
.eb-search-bar .form-select option { background: var(--color-surface2); color: var(--color-text); }
.eb-search-bar .input-group-text {
  background: transparent;
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 1.1rem;
  padding-left: 1.1rem;
}

/* Indicador de scroll */
.eb-hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(237,232,227,.38);
  font-size: 1.3rem;
  text-decoration: none;
  animation: bounce 2.6s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: .38; }
  50%       { transform: translateX(-50%) translateY(10px); opacity: .7; }
}

/* ── Barra de filtros ────────────────────────── */
.eb-filters {
  position: sticky;
  top: 68px;
  z-index: 100;
  background: rgba(16,14,20,.97);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(16px);
  transform: translateY(0);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.eb-filters--hidden {
  transform: translateY(-200px);}
.eb-select {
  background-color: var(--color-surface3) !important;
  border-color: var(--color-border) !important;
  color: var(--color-text) !important;
  border-radius: var(--r-md) !important;
  font-size: .82rem;
  letter-spacing: .01em;
}
.eb-switch { cursor: pointer; }
.eb-switch:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ── Cards de perfil ─────────────────────────── */
.eb-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  transition: transform var(--t-slow), box-shadow var(--t-slow), border-color var(--t);
  cursor: pointer;
}
.eb-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  opacity: 0;
  transition: opacity var(--t-slow);
  background: linear-gradient(140deg, rgba(196,25,79,.13) 0%, transparent 55%);
  z-index: 0;
  pointer-events: none;
}
.eb-card:hover {
  transform: translateY(-7px) scale(1.01);
  box-shadow: 0 22px 56px rgba(0,0,0,.55), 0 0 0 1px rgba(196,25,79,.6);
  border-color: var(--color-primary);
}
.eb-card:hover::before { opacity: 1; }
.eb-card--off {
  opacity: .5;
  filter: grayscale(55%);
}
.eb-card--off:hover {
  box-shadow: 0 10px 32px rgba(0,0,0,.45);
  border-color: var(--color-border-2);
  transform: translateY(-3px) scale(1.005);
  box-shadow: 0 10px 32px rgba(0,0,0,.45);
}

/* Foto */
.eb-card__photo-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-surface2);
}
.eb-card__photo {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.eb-card:hover .eb-card__photo { transform: scale(1.06); }
.eb-card__avatar {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3.8rem;
  font-weight: 600;
  font-style: italic;
  color: rgba(237,232,227,.8);
  transition: transform var(--t-slow);
}
.eb-card:hover .eb-card__avatar { transform: scale(1.05); }

/* Badge disponibilidad */
.eb-avail-badge {
  position: absolute;
  top: .6rem; right: .6rem;
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .18rem .52rem;
  border-radius: var(--r-full);
  backdrop-filter: blur(12px);
  font-family: var(--font-body);
}
.eb-avail-badge--on {
  background: rgba(76,175,80,.22);
  color: #81C784;
  border: 1px solid rgba(76,175,80,.4);
}
.eb-avail-badge--off {
  background: rgba(97,97,97,.22);
  color: #BDBDBD;
  border: 1px solid rgba(97,97,97,.35);
}
.eb-avail-badge__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.eb-avail-badge--on .eb-avail-badge__dot {
  animation: dot-pulse 1.8s ease-in-out infinite;
}
/* En el panel info del lightbox el badge no es flotante */
.eb-lightbox__info .eb-avail-badge {
  position: static;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .45; transform: scale(1.35); }
}

/* Cuerpo de la card */
.eb-card__body { padding: .85rem; }
.eb-card__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  font-style: italic;
  margin: 0 0 .1rem;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: .01em;
}
.eb-card__age {
  font-weight: 300;
  font-size: .78rem;
  color: var(--color-text-muted);
}
.eb-card__region {
  font-size: .72rem;
  color: var(--color-text-muted);
  margin: 0 0 .55rem;
  letter-spacing: .02em;
}
.eb-card__region i { color: var(--color-primary); }
.eb-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .28rem;
  margin-bottom: .7rem;
}
.eb-tag {
  font-size: .58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .12rem .48rem;
  border-radius: var(--r-full);
  background: var(--color-primary-glow);
  color: var(--color-primary-light);
  border: 1px solid rgba(196,25,79,.25);
}
.eb-tag--more {
  background: var(--color-surface3);
  color: var(--color-text-muted);
  border-color: var(--color-border);
}
.eb-card__btn {
  display: block;
  text-align: center;
  font-size: .68rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: color var(--t);
}
.eb-card:hover .eb-card__btn { color: var(--color-accent-light); }

/* ── Footer ──────────────────────────────────── */
.eb-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

/* ════════════════════════════════════════════════
   DASHBOARD
   ════════════════════════════════════════════════ */

/* Sidebar */
.eb-sidebar {
  width: 258px;
  height: 100vh;
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  position: fixed;
  top: 0; left: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  transition: transform var(--t);
  overflow: hidden;
}
.eb-sidebar nav {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}
.eb-sidebar__link {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .6rem 1rem;
  border-radius: var(--r-md);
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .03em;
  transition: all var(--t);
  margin-bottom: .15rem;
  position: relative;
  overflow: hidden;
}
.eb-sidebar__link::before {
  content: '';
  position: absolute;
  left: 0; top: 22%; bottom: 22%;
  width: 2.5px;
  border-radius: 9999px;
  background: var(--color-primary);
  opacity: 0;
  transition: opacity var(--t), transform var(--t);
  transform: scaleY(.5);
}
.eb-sidebar__link:hover,
.eb-sidebar__link.active {
  background: var(--color-primary-glow);
  color: var(--color-primary);
}
.eb-sidebar__link.active::before {
  opacity: 1;
  transform: scaleY(1);
}
.eb-sidebar__link i {
  font-size: 1rem;
  width: 1.3rem;
  text-align: center;
  flex-shrink: 0;
}
.eb-sidebar__sep {
  border-color: var(--color-border);
  margin: 1rem 0;
}
#logoutBtn:hover {
  background: rgba(220,53,69,.15) !important;
  color: #dc3545 !important;
  border-color: rgba(220,53,69,.35) !important;
}

/* Contenido del dashboard */
.eb-main {
  margin-left: 258px;
  min-height: 100vh;
  background: var(--color-bg);
  padding: 2rem;
}

/* ── Tablas — forzar color de texto claro ────── */
.table { color: var(--color-text) !important; }
.table th { color: var(--color-text-muted) !important; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.table td { color: var(--color-text) !important; font-size: .88rem; }
.table-hover > tbody > tr:hover > * { color: var(--color-text) !important; }
.text-secondary { color: var(--color-text-muted) !important; }

/* Panel card */
.eb-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.eb-panel__title {
  font-size: .66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--color-text-dim);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.eb-panel__title i { color: var(--color-primary); font-size: .78rem; }

/* ── Toggle de disponibilidad (grande) ─────────── */
.eb-avail-panel {
  text-align: center;
  transition: border-color var(--t), box-shadow var(--t);
}
.eb-avail-panel.is-on {
  border-color: var(--color-available);
  box-shadow: 0 0 32px rgba(76,175,80,.2);
}

/* Toggle switch personalizado */
.eb-toggle-wrap { display: flex; align-items: center; gap: 1rem; justify-content: center; }
.eb-toggle-label { cursor: pointer; display: inline-block; }
.eb-toggle-label input { display: none; }
.eb-toggle-track {
  width: 76px; height: 38px;
  background: var(--color-surface3);
  border: 2px solid var(--color-border);
  border-radius: var(--r-full);
  position: relative;
  transition: background var(--t), border-color var(--t);
}
.eb-toggle-label input:checked + .eb-toggle-track {
  background: var(--color-available);
  border-color: var(--color-available);
}
.eb-toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 28px; height: 28px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
  transition: transform var(--t);
}
.eb-toggle-label input:checked + .eb-toggle-track .eb-toggle-thumb {
  transform: translateX(38px);
}
.eb-avail-status {
  font-size: 1.15rem;
  font-weight: 600;
  font-style: italic;
  font-family: var(--font-display);
  letter-spacing: .02em;
}

/* ── Editor de servicios ───────────────────────── */
.eb-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  min-height: 44px;
  align-items: flex-start;
}
.eb-service-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .32rem .75rem;
  background: var(--color-primary-glow);
  border: 1px solid rgba(194,24,91,.32);
  border-radius: var(--r-full);
  color: var(--color-primary-light);
  font-size: .82rem;
  font-weight: 500;
}
.eb-service-tag button {
  background: none; border: none; padding: 0;
  color: inherit; opacity: .65; cursor: pointer;
  display: flex; align-items: center;
  transition: opacity var(--t);
  font-size: 1rem; line-height: 1;
}
.eb-service-tag button:hover { opacity: 1; }
.eb-suggestions { display: flex; flex-wrap: wrap; gap: .4rem; }
.eb-suggest-group {
  width: 100%;
  margin-bottom: .5rem;
}

/* ── Historial de membresía ─────────────────── */
.eb-hist-col {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}
.eb-hist-row {
  transition: background var(--t);
}
.eb-hist-row:hover {
  background: var(--color-surface3) !important;
}
.eb-suggest-cat {
  display: block;
  font-size: .58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--color-text-dim);
  margin-bottom: .35rem;
}
.eb-suggest-items {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.eb-suggest-btn {
  font-size: .75rem;
  padding: .2rem .65rem;
  border-radius: var(--r-full);
  border: 1px dashed var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--t);
}
.eb-suggest-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-glow);
}

/* ── Upload de foto ────────────────────────────── */
.eb-photo-slot {
  aspect-ratio: 3/4;
  border: 2px dashed var(--color-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  background: var(--color-surface2);
  cursor: pointer;
  transition: border-color var(--t), background var(--t);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.eb-photo-slot:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-glow);
}
.eb-photo-slot input[type="file"] {
  position: absolute;
  width: 0; height: 0;
  opacity: 0;
}
.eb-photo-slot img.preview {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.eb-photo-slot .overlay-icon {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,.45);
  color: #fff;
  opacity: 0;
  transition: opacity var(--t);
  pointer-events: none;
  z-index: 4;
}
.eb-photo-slot:hover .overlay-icon { opacity: 1; }

/* ── Responsive Dashboard ──────────────────────── */
@media (max-width: 991px) {
  .eb-sidebar {
    transform: translateX(-100%);
  }
  .eb-sidebar.open {
    transform: translateX(0);
    box-shadow: 8px 0 48px rgba(0,0,0,.6);
  }
  .eb-main {
    margin-left: 0;
    padding: 1rem;
    padding-top: 4.5rem;
  }
  .eb-mobile-header {
    display: flex !important;
  }
}
.eb-mobile-header { display: none; }

/* Overlay para cerrar sidebar en móvil */
.eb-sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 199;
  backdrop-filter: blur(2px);
}
.eb-sidebar-overlay.open { display: block; }

/* ════════════════════════════════════════════════
   ADMIN PANEL
   ════════════════════════════════════════════════ */

/* Sidebar admin — compacto sin scroll */
.eb-sidebar--admin {
  padding: 1rem .9rem;
}
.eb-sidebar--admin nav {
  flex: unset;
  overflow-y: hidden;
}
.eb-sidebar--admin .eb-sidebar__link {
  padding: .44rem .9rem;
  margin-bottom: .06rem;
  font-size: .79rem;
}
.eb-sidebar--admin .eb-sidebar__sep {
  margin: .6rem 0;
}
.eb-sidebar--admin .eb-sidebar__link:hover,
.eb-sidebar--admin .eb-sidebar__link.active {
  background: var(--color-accent-glow);
  color: var(--color-accent);
}
.eb-sidebar--admin .eb-sidebar__link i { color: var(--color-accent); }
.eb-sidebar--admin .eb-sidebar__link::before {
  background: var(--color-accent);
}
.eb-panel__title .eb-badge-admin {
  margin-left: auto;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .2rem .55rem;
  background: rgba(212,175,55,.15);
  color: var(--color-accent);
  border: 1px solid rgba(212,175,55,.3);
  border-radius: var(--r-full);
}

/* Stat cards */
.eb-stat {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  transition: border-color var(--t), box-shadow var(--t);
}
.eb-stat:hover {
  border-color: var(--color-accent);
  box-shadow: 0 8px 32px rgba(201,168,76,.18);
  transform: translateY(-2px);
}
.eb-stat__icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.eb-stat__icon--gold   { background: rgba(212,175,55,.14); color: var(--color-accent); }
.eb-stat__icon--pink   { background: rgba(194,24,91,.14);  color: var(--color-primary); }
.eb-stat__icon--green  { background: rgba(76,175,80,.14);  color: #81C784; }
.eb-stat__icon--gray   { background: rgba(97,97,97,.14);   color: #BDBDBD; }
.eb-stat__val {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  margin: 0;
}
.eb-stat__label {
  font-size: .72rem;
  color: var(--color-text-muted);
  letter-spacing: .04em;
  margin: .2rem 0 0;
}

/* ── Drag & Drop — Ordenamiento de perfiles ─── */
.eb-sortable-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.eb-sort-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  background: var(--color-surface2);
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  padding: .65rem .9rem;
  cursor: default;
  transition: background var(--t), border-color var(--t), box-shadow var(--t), transform var(--t);
  user-select: none;
  font-size: .88rem;
}
.eb-sort-item.sortable-chosen {
  background: var(--color-surface3);
  border-color: var(--color-accent);
  box-shadow: 0 6px 24px rgba(212,175,55,.2);
  transform: scale(1.01);
}
.eb-sort-item.sortable-ghost {
  opacity: .35;
}
.eb-sort-handle {
  color: var(--color-text-muted);
  cursor: grab;
  font-size: 1.15rem;
  padding: .1rem .3rem;
  border-radius: 4px;
  transition: color var(--t), background var(--t);
  flex-shrink: 0;
}
.eb-sort-handle:hover { color: var(--color-accent); background: rgba(212,175,55,.1); }
.eb-sort-handle:active { cursor: grabbing; }
.eb-sort-pos {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--color-surface3);
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.eb-sort-item:nth-child(1) .eb-sort-pos { background:rgba(212,175,55,.2); color:var(--color-accent); border-color:rgba(212,175,55,.4); }
.eb-sort-item:nth-child(2) .eb-sort-pos { background:rgba(255,255,255,.1); color:#e0e0e0; border-color:rgba(255,255,255,.2); }
.eb-sort-item:nth-child(3) .eb-sort-pos { background:rgba(176,141,87,.15); color:#CD7F32; border-color:rgba(176,141,87,.35); }
.eb-sort-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; color: #fff;
}
.eb-sort-info { flex: 1; min-width: 0; }
.eb-sort-name {
  font-weight: 600;
  font-size: .88rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.eb-sort-meta {
  font-size: .73rem;
  color: var(--color-text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.eb-sort-actions { display: flex; gap: .35rem; flex-shrink: 0; }
.eb-sort-action-btn {
  width: 30px; height: 30px;
  border-radius: var(--r-sm);
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  cursor: pointer;
  transition: all var(--t);
}
.eb-sort-action-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.eb-sort-action-btn.danger:hover { border-color: #dc3545; color: #dc3545; }

/* ── Regiones CRUD ──────────────────────────── */
.eb-region-list {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.eb-region-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--color-surface2);
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  padding: .55rem .85rem;
  transition: border-color var(--t);
}
.eb-region-item:hover { border-color: var(--color-accent); }
.eb-region-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--color-accent);
}
.eb-region-name {
  flex: 1;
  font-size: .88rem;
  font-weight: 500;
  min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.eb-region-count {
  font-size: .72rem;
  color: var(--color-text-muted);
  background: var(--color-surface3);
  padding: .1rem .45rem;
  border-radius: var(--r-full);
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}
.eb-region-edit-input {
  flex: 1;
  background: var(--color-surface3);
  border: 1px solid var(--color-primary);
  border-radius: var(--r-sm);
  color: var(--color-text);
  padding: .15rem .5rem;
  font-size: .88rem;
  outline: none;
}

/* ── Modal admin ────────────────────────────── */
.eb-modal .modal-content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  color: var(--color-text);
}
.eb-modal .modal-header {
  border-color: var(--color-border);
  padding: 1.25rem 1.5rem;
}
.eb-modal .modal-footer { border-color: var(--color-border); }
.eb-modal .btn-close { filter: invert(1); }

/* ── Videos (dashboard) ─────────────────────── */
.eb-video-slot {
  aspect-ratio: 16/9;
  border: 2px dashed var(--color-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  background: var(--color-surface2);
  cursor: pointer;
  transition: border-color var(--t), background var(--t);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.eb-video-slot:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-glow);
}
.eb-video-slot input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.eb-video-slot video.preview {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.eb-video-slot .slot-icon {
  color: var(--color-text-muted);
  text-align: center;
  pointer-events: none;
  transition: color var(--t);
}
.eb-video-slot:hover .slot-icon { color: var(--color-primary); }
.eb-video-slot .video-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.52);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity var(--t);
  pointer-events: none;
}
.eb-video-slot:hover .video-overlay { opacity: 1; }
.eb-video-remove {
  position: absolute; top: .4rem; right: .4rem;
  z-index: 10;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(220,53,69,.85);
  border: none; color: #fff;
  display: none;
  align-items: center; justify-content: center;
  cursor: pointer; font-size: .75rem;
  transition: background var(--t);
}
.eb-video-slot.has-video .eb-video-remove { display: flex; }
.eb-video-remove:hover { background: #dc3545; }

/* ════════════════════════════════════════════
   LIGHTBOX — Perfil
════════════════════════════════════════════ */
.eb-lightbox .modal-dialog {
  max-width: min(900px, 96vw);
}
.eb-lightbox .modal-content {
  background: var(--color-surface);
  border: 1px solid var(--color-border-2);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.eb-lightbox__content {
  position: relative;
  box-shadow:
    0 0 0 1px rgba(196,25,79,.08),
    0 48px 96px rgba(0,0,0,.85),
    0 16px 32px rgba(0,0,0,.5);
}
/* Botón cerrar */
.eb-lightbox__close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 20;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.55);
  color: rgba(255,255,255,.85);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  transition: background var(--t), border-color var(--t), transform var(--t);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.eb-lightbox__close:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: rotate(90deg);
}

/* Galería izquierda */
.eb-lightbox__gallery {
  position: relative;
  min-height: 380px;
  background: #000;
  overflow: hidden;
  border-radius: var(--r-xl) 0 0 var(--r-xl);
}
@media (max-width: 991px) {
  .eb-lightbox__gallery {
    min-height: 260px;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
  }
}
.eb-lightbox__gallery .carousel,
.eb-lightbox__gallery .carousel-inner { height: 100%; }
.eb-lightbox__gallery .carousel-item { height: 100%; }
.eb-lightbox__gallery .carousel-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
/* Degradado inferior sobre la foto */
.eb-lightbox__gallery::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 35%;
  background: linear-gradient(to top, rgba(8,7,10,.5) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}
/* Controles del carrusel refinados */
.eb-lightbox__gallery .carousel-control-prev,
.eb-lightbox__gallery .carousel-control-next {
  width: 48px;
  z-index: 5;
  opacity: 0;
  transition: opacity var(--t);
}
.eb-lightbox__gallery:hover .carousel-control-prev,
.eb-lightbox__gallery:hover .carousel-control-next { opacity: 1; }
.eb-lightbox__gallery .carousel-control-prev-icon,
.eb-lightbox__gallery .carousel-control-next-icon {
  width: 34px; height: 34px;
  background-color: rgba(0,0,0,.55);
  background-size: 14px;
  border-radius: 50%;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.15);
}
.eb-lightbox__avatar {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 5rem;
  font-style: italic;
  color: rgba(255,255,255,.22);
  z-index: 1;
}

/* Panel info derecho */
.eb-lightbox__info {
  padding: 1.85rem 1.8rem 1.5rem 1.8rem;
  padding-right: 3rem; /* espacio para la X */
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: calc(90vh - 2rem);
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}
.eb-lightbox__info::-webkit-scrollbar { width: 4px; }
.eb-lightbox__info::-webkit-scrollbar-track { background: transparent; }
.eb-lightbox__info::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 9999px; }
@media (max-width: 991px) {
  .eb-lightbox__info { max-height: 65vh; padding: 1.25rem 1.2rem; }
}
.eb-lightbox__name {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  font-style: italic;
  color: var(--color-text);
  margin: 0 0 .3rem;
  line-height: 1.08;
  letter-spacing: -.01em;
}
.eb-lightbox__age {
  font-size: .85rem;
  font-weight: 300;
  color: var(--color-text-muted);
  margin-left: .4rem;
  font-style: normal;
  font-family: var(--font-body);
}
.eb-lightbox__region {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--color-text-muted);
  font-size: .74rem;
  margin-bottom: 0;
  letter-spacing: .03em;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--color-border);
  border-radius: var(--r-full);
  padding: .18rem .65rem;
  width: fit-content;
}
.eb-lightbox__region i { color: var(--color-accent); font-size: .8rem; }

/* Subtítulo compacto: género · edad · ciudad */
.eb-lightbox__subtitle {
  font-size: .78rem;
  color: var(--color-text-muted);
  letter-spacing: .02em;
}
.eb-lightbox__subtitle > * + *::before {
  content: '·';
  margin-right: .5rem;
  opacity: .4;
}
.eb-lightbox__subtitle-city {
  font-size: .78rem;
  color: var(--color-text-muted);
}
.eb-lightbox__subtitle-city i { color: var(--color-accent); font-size: .78rem; }
.eb-lightbox__divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: .9rem 0;
  opacity: 1;
}
.eb-lightbox__desc {
  color: var(--color-text-muted);
  font-size: .84rem;
  line-height: 1.72;
  margin-bottom: 0;
}
/* Meta-items: horario / atención / valor */
.eb-lightbox__meta-row {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1rem;
}
.eb-lightbox__meta-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .81rem;
  color: var(--color-text-muted);
}
.eb-lightbox__meta-icon {
  width: 28px; height: 28px;
  border-radius: var(--r-sm);
  background: rgba(201,168,76,.09);
  border: 1px solid rgba(201,168,76,.18);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-accent);
  font-size: .8rem;
  flex-shrink: 0;
}
.eb-lightbox__meta-label {
  font-weight: 600;
  color: var(--color-text);
  font-size: .79rem;
  margin-right: .35rem;
}
.eb-lightbox__section-label {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: .55rem;
}
/* Tags en lightbox — levemente más grandes */
.eb-lightbox__info .eb-tag {
  font-size: .65rem;
  padding: .18rem .62rem;
}
/* Botón WhatsApp */
.eb-lightbox__wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: 100%;
  padding: .85rem;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  border: none;
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: filter var(--t), transform var(--t), box-shadow var(--t);
  box-shadow: 0 6px 24px rgba(37,211,102,.2);
}
.eb-lightbox__wa-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37,211,102,.32);
  color: #fff;
}
.eb-lightbox__wa-btn .wa-icon {
  width: 22px; height: 22px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
/* Banner verificación */
.eb-lightbox__verif {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  padding: .65rem .85rem;
  border-radius: var(--r-md);
  font-size: .75rem;
  line-height: 1.55;
}
.eb-lightbox__verif--ok {
  background: rgba(201,168,76,.07);
  border: 1px solid rgba(201,168,76,.25);
  color: #c0993c;
}
.eb-lightbox__verif--no {
  background: rgba(120,120,120,.05);
  border: 1px solid rgba(120,120,120,.2);
  color: var(--color-text-dim);
}
.eb-lightbox__verif--salud {
  background: rgba(32,201,151,.07);
  border: 1px solid rgba(32,201,151,.28);
  color: #1aa57a;
}
.eb-lightbox__verif i { font-size: .95rem; flex-shrink: 0; margin-top: 1px; }

/* Card clickeable */
.eb-card { cursor: pointer; }
.eb-card .eb-card__btn { pointer-events: none; }

/* ════════════════════════════════════════════
   MEJORAS DE DISEÑO — INDEX
════════════════════════════════════════════ */

/* ── Título hero con acento ── */
.eb-hero__title-accent {
  color: var(--color-primary-light);
  font-style: italic;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Stats en hero ── */
.eb-hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  opacity: 0;
  animation: statsReveal .9s ease .6s both;
}
@keyframes statsReveal {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.eb-hero__stat {
  text-align: center;
  min-width: 56px;
}
.eb-hero__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  font-style: italic;
  color: #fff;
  line-height: 1;
  letter-spacing: -.01em;
}
.eb-hero__stat span {
  display: block;
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: rgba(237,232,227,.38);
  font-weight: 400;
  margin-top: .18rem;
}
.eb-hero__stat-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: .45;
  flex-shrink: 0;
}

/* ── Cabecera del directorio ── */
.eb-dir-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.eb-dir-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  font-style: italic;
  color: var(--color-text-muted);
  margin: 0;
  white-space: nowrap;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .72rem;
}
.eb-dir-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--color-border), transparent);
}

/* ── Entrada de cards con stagger ── */
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
#perfilesGrid .col {
  animation: cardReveal .45s ease both;
}
#perfilesGrid .col:nth-child(1)  { animation-delay: .04s; }
#perfilesGrid .col:nth-child(2)  { animation-delay: .08s; }
#perfilesGrid .col:nth-child(3)  { animation-delay: .12s; }
#perfilesGrid .col:nth-child(4)  { animation-delay: .16s; }
#perfilesGrid .col:nth-child(5)  { animation-delay: .20s; }
#perfilesGrid .col:nth-child(6)  { animation-delay: .24s; }
#perfilesGrid .col:nth-child(7)  { animation-delay: .28s; }
#perfilesGrid .col:nth-child(8)  { animation-delay: .30s; }
#perfilesGrid .col:nth-child(9)  { animation-delay: .32s; }
#perfilesGrid .col:nth-child(n+10) { animation-delay: .34s; }

/* ── Scrollbar personalizada ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--color-surface); }
::-webkit-scrollbar-thumb {
  background: var(--color-border-2);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

/* ── Selección de texto ── */
::selection {
  background: var(--color-primary-glow);
  color: var(--color-primary-light);
}

/* ── Footer mejorado ── */
.eb-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}
.eb-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-primary), var(--color-accent), transparent);
  opacity: .35;
}

/* ── Animación de entrada para el hero content ── */
.eb-hero__content {
  animation: heroEntrance 1.1s cubic-bezier(.16,1,.3,1) both;
}
@keyframes heroEntrance {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Accesibilidad: reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .eb-hero__stats,
  .eb-hero__content,
  #perfilesGrid .col,
  .eb-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ════════════════════════════════════════════
   MEJORAS RESPONSIVE MÓVIL
   Breakpoints: ≤767px (móvil) · ≤575px (xs)
   Toca pantallas: hover → none
════════════════════════════════════════════ */

/* ── Touch: eliminar hovers que no aplican ── */
@media (hover: none) {
  .eb-card:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--color-border);
  }
  .eb-card:hover::before { opacity: 0; }
  .eb-card:hover .eb-card__photo { transform: none; }
  .eb-card:active {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px rgba(196,25,79,.5);
  }
  .eb-btn-primary:hover,
  .eb-btn-outline:hover { transform: none; box-shadow: none; }
  .eb-stat:hover { transform: none; }
  .eb-lightbox__wa-btn:hover { transform: none; }
  .eb-photo-slot .overlay-icon { opacity: 0 !important; }
  .eb-video-slot .video-overlay { opacity: 0 !important; }
}

/* ── Móvil ≤767px ── */
@media (max-width: 767px) {

  /* --- Navbar / Logo --- */
  .eb-logo { height: 90px; }
  .eb-navbar--scrolled .eb-logo { height: 72px; }
  .eb-logo-wrap { left: .75rem; }
  .eb-navbar .navbar-collapse { background: rgba(8,7,10,.97); padding: .75rem 1rem; border-radius: 0 0 var(--r-lg) var(--r-lg); }

  /* --- Hero --- */
  .eb-hero__content { padding: 5rem .85rem 4rem; }
  .eb-hero__subtitle { letter-spacing: .18em; font-size: .68rem; }
  .eb-hero__stats { gap: .85rem; }

  /* Search bar en hero: apila icono+select / botón */
  .eb-search-bar {
    border-radius: var(--r-lg);
    padding: .4rem;
  }
  .eb-search-bar .input-group {
    flex-wrap: wrap;
    gap: .35rem;
  }
  .eb-search-bar .input-group-text {
    padding-left: .75rem;
    flex: 0 0 auto;
  }
  .eb-search-bar .form-select {
    flex: 1 1 0;
    min-width: 0;
  }
  .eb-search-bar .eb-btn-primary {
    width: 100%;
    border-radius: var(--r-md);
    padding: .55rem !important;
    margin-top: .15rem;
  }

  /* --- Filtros sticky --- */
  .eb-filters { top: 0; padding: .5rem 0; }
  .eb-filters .d-flex { gap: .65rem !important; }
  #filtroRegion { min-width: 0 !important; font-size: .78rem; }

  /* --- Cards --- */
  .eb-card__body { padding: .65rem; }
  .eb-card__name { font-size: 1rem; }
  .eb-card__tags { gap: .2rem; margin-bottom: .5rem; }
  .eb-card__btn { font-size: .62rem; }

  /* --- Lightbox --- */
  .eb-lightbox .modal-dialog {
    margin: 0;
    max-width: 100%;
    min-height: 100%;
    align-items: flex-end;
  }
  .eb-lightbox .modal-content {
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    max-height: 96dvh;
    overflow-y: auto;
  }
  .eb-lightbox__gallery {
    aspect-ratio: 1 / 1;
    min-height: 0;
    max-height: none;
    height: auto;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
  }
  .eb-lightbox__gallery .carousel,
  .eb-lightbox__gallery .carousel-inner,
  .eb-lightbox__gallery .carousel-item { height: 100%; }
  .eb-lightbox__gallery .carousel-control-prev,
  .eb-lightbox__gallery .carousel-control-next { opacity: .65; }
  .eb-lightbox__info {
    max-height: none;
    padding: 1rem 1.1rem 1.5rem;
    padding-right: 2.5rem;
  }
  .eb-lightbox__name { font-size: 1.9rem; }
  .eb-lightbox__close { top: .65rem; right: .65rem; }

  /* --- Dashboard panels --- */
  .eb-panel { padding: 1.1rem; }
  .eb-avail-status { font-size: 1rem; }
  .eb-stat { padding: 1rem 1.1rem; gap: .75rem; }
  .eb-stat__icon { width: 42px; height: 42px; font-size: 1.2rem; }
  .eb-stat__val { font-size: 1.9rem; }

  /* Slots foto: 3 columnas en lugar de 6 */
  #photoSlotsRow { --bs-columns: 3; }

  /* Input de servicios — botones de sugerencia más grandes */
  .eb-suggest-btn { font-size: .78rem; padding: .28rem .75rem; min-height: 34px; }
  .eb-service-tag { font-size: .84rem; padding: .38rem .85rem; min-height: 36px; }
  .eb-service-tag button { font-size: 1.1rem; }

  /* Botón guardar fotos — ancho completo */
  #savePhotosBtn, #saveVideosBtn { width: 100%; justify-content: center; }
}

/* ── Extra-small ≤575px ── */
@media (max-width: 575px) {

  /* Tarjetas: 2 columnas, body más compacto */
  .eb-card__body { padding: .5rem .6rem; }
  .eb-card__name { font-size: .92rem; }
  .eb-card__region { font-size: .66rem; margin-bottom: .35rem; }
  .eb-card__tags { display: none; } /* ocultar tags en pantallas muy pequeñas */
  .eb-card__btn { display: none; }  /* el tap abre el lightbox, no necesita botón */

  /* Hero más ajustado */
  .eb-hero__content { padding: 4.5rem .65rem 3.5rem; }
  .eb-hero__stats { gap: .55rem; }
  .eb-hero__stat strong { font-size: 1.35rem; }
  .eb-hero__stat span { font-size: .52rem; letter-spacing: .14em; }
  .eb-hero__stat-dot { width: 2px; height: 2px; }

  /* Logo aún más pequeño */
  .eb-logo { height: 72px; }
  .eb-navbar--scrolled .eb-logo { height: 58px; }

  /* Lightbox: galería más alta en xs para fotos portrait */
  .eb-lightbox__gallery {
    aspect-ratio: 4 / 5;
  }
  .eb-lightbox__name { font-size: 1.65rem; }
  .eb-lightbox__meta-item { font-size: .76rem; }

  /* Filtros: ocultar label "Filtros" si existiese, compacto */
  .eb-filters .container { padding-left: .75rem; padding-right: .75rem; }

  /* Dashboard: panel padding mínimo */
  .eb-panel { padding: .85rem .9rem; }
  .eb-panel__title { font-size: .6rem; letter-spacing: .12em; }

  /* Botones dashboard: tamaño táctil mínimo 44px */
  .eb-btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .btn-sm.eb-btn { min-height: 36px; }

  /* Toggle disponibilidad */
  .eb-toggle-track { width: 64px; height: 33px; }
  .eb-toggle-thumb { width: 24px; height: 24px; }
  .eb-toggle-label input:checked + .eb-toggle-track .eb-toggle-thumb { transform: translateX(31px); }

  /* Slots de foto — ocupan todo el ancho en XS */
  .eb-photo-slot { border-radius: var(--r-md); }
  .eb-video-slot { border-radius: var(--r-md); }
}

/* ── Altura dinámica del viewport (dvh) para iOS Safari ── */
@supports (height: 100dvh) {
  .eb-lightbox .modal-content { max-height: 96dvh; }
  .eb-lightbox__info          { max-height: none; }
}

