/*
Theme Name: BarHop CR PWA
Theme URI: https://example.com/barhop-cr
Author: Javier + ChatGPT (Optimized)
Description: Theme PWA para BarHop CR: directorio de bares con diseño tipo app, eventos destacados y orden por distancia.
Version: 1.1
Text Domain: barhop-cr
*/

/* =========================================
    
   ========================================= */
:root {
    /* Fondos */
    --bg-body: #f5f5f7;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    --bg-header: #ffffff;
    
    /* Textos */
    --text-main: #111827;
    --text-muted: #4b5563;
    --text-light: #9ca3af;
    
    /* Bordes y Sombras */
    --border-color: #e5e7eb;
    --shadow-soft: 0 0 40px rgba(0,0,0,0.08);
    --shadow-card: 0 18px 35px rgba(15,23,42,0.08);

    /* Colores de Marca */
    --accent-bg: #f59e0b;      /* Naranja/Amarillo principal */
    --accent-text: #111827;
    --gold: #fbbf24;
    
    /* Estados */
    --badge-open: #16a34a;
    --badge-closed: #b91c1c;
    
    /* Botones Google */
    --btn-bg: #ffffff;
    --btn-hover: #f3f4f6;
    --btn-border: #e5e7eb;
    --btn-text: #1e293b;
    
    /* Eventos */
    --chip-bg: #fef3c7;
    --chip-text: #92400e;
    --chip-border: #f59e0b;
}

/* MODO OSCURO AUTOMÁTICO */
html.dark,
body.dark-mode {
    /* Redefinición de variables para Dark Mode */
    --bg-body: #0f172a;
    --bg-card: #1e293b;     /* O #334155 según preferencia */
    --bg-input: #334155;
    --bg-header: transparent;
    
    --text-main: #f1f5f9;
    --text-muted: #cbd5e1;
    --text-light: #cbd5e1;
    
    --border-color: #475569;
    --shadow-soft: none;
    --shadow-card: none;
    
    --btn-bg: #1e293b;
    --btn-hover: #334155;
    --btn-border: #334155;
    --btn-text: #f1f5f9;

    --chip-bg: #1f2937;
    --chip-text: #fcd9a8;
    --chip-border: #fbbf24;
}

/* =========================================
   2. RESET Y BASE
   ========================================= */
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
}


*, *::before, *::after {
    box-sizing: border-box;
}

input, select, textarea, button {
    font: inherit;
}

/* Scrollbars Webkit */
::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}
::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 999px;
}
.barhop-slider::-webkit-scrollbar {
    display: none; /* Ocultar en slider específico */
}

/* =========================================
   3. LAYOUT PRINCIPAL
   ========================================= */
.bh-header,
.barhop-root {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.barhop-root {
    min-height: 100vh;
    background: var(--bg-card);
    box-shadow: var(--shadow-soft);
}

/* Ajuste específico para Single Bar */
.single-bar .barhop-root {
    max-width: 480px;
}

/* Layout en Desktop (>600px) */
@media (min-width: 600px) {
    .barhop-root {
        max-width: 420px !important; 
        /* !important mantenido por seguridad de override de temas padres */
    }
}

/* =========================================
   4. HEADER Y NAVEGACIÓN
   ========================================= */
.barhop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem 0.5rem;
    background: var(--bg-header);
}

.barhop-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
}

.barhop-logo-badge {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--accent-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827; /* Siempre oscuro */
    font-weight: 800;
}

.barhop-shell {
    padding: 0 1.25rem 1.5rem;
}
.barhop-header-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.barhop-icon-btn{
  width:34px;
  height:34px;
  border-radius:10px;
  border:1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-text);
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  cursor:pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}


/* Buscador */
.barhop-search {
    margin: 0.75rem 0 1rem;
}

.barhop-location-cta {
  margin: 0.4rem 0 0.8rem;
  text-align: center;
}

.barhop-location-cta .google-btn {
  width: 100%;
  font-size: 0.85rem;
}



.barhop-search input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    background: var(--bg-input);
    color: var(--text-main);
    box-sizing: border-box; /* Previene desbordamiento */
}

.barhop-search input::placeholder {
    color: #9ca3af;
}

/* Títulos de Sección */
.barhop-section {
    margin-bottom: 1rem;
}

.barhop-section-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-main);
}

.barhop-section-note {
    font-size: 0.75rem;
    color: #a16207;
    background: #fef3c7;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

/* =========================================
   5. CARRUSEL DE EVENTOS
   ========================================= */
.barhop-events-row {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.3rem;
}

.barhop-event-card {
    min-width: 210px;
    max-width: 210px;
    /* Nota: Los eventos mantienen estilo oscuro incluso en Light Mode por diseño */
    background: #111827; 
    border-radius: 1rem;
    overflow: hidden;
    color: #f9fafb;
    box-shadow: 0 14px 28px rgba(15,23,42,0.45);
    display: flex;
    flex-direction: column;
}

html.dark .barhop-event-card,
body.dark-mode .barhop-event-card {
    background: #1e293b; /* Ligeramente más claro en modo oscuro puro */
}

.barhop-event-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.barhop-event-body {
    padding: 0.6rem 0.75rem 0.8rem;
    font-size: 0.78rem;
}

.barhop-event-badge {
    background: #f97316;
    color: #111827;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.1rem 0.5rem;
    display: inline-block;
    margin-bottom: 0.2rem;
}

html.dark .barhop-event-badge,
body.dark-mode .barhop-event-badge {
    background: var(--accent-bg);
}

.barhop-event-barname {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.74rem;
    margin-bottom: 0.1rem;
}

.barhop-event-title {
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.barhop-event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    opacity: 0.9;
}

.barhop-event-morebtn {
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--gold);
    font-size: 0.7rem;
    background: var(--accent-bg);
    color: #111827;
    font-weight: 600;
    text-decoration: none;
}

/* =========================================
   6. TARJETAS DE BARES (GRID)
   ========================================= */
.barhop-bars-grid {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 0.6rem;
    margin-bottom: 2rem;
}

.barhop-bar-card {
    background: var(--bg-card);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    transition: background 0.3s ease;
	position: relative;
}

.barhop-bar-imagewrap {
    position: relative;
}

.barhop-bar-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

/* Badges de estado (Open/Close) */
.barhop-badge-open,
.barhop-badge-closed {
    position: absolute;
    left: 0.85rem;
    bottom: 0.75rem;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.18rem 0.65rem;
    z-index: 2;
}
.barhop-badge-open { background: var(--badge-open); }
.barhop-badge-closed { background: var(--badge-closed); }

/* Favoritos (Oculto según código original) */
.barhop-fav-pill {
    position: absolute;
    right: 0.75rem;
    top: 0.75rem;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(15,23,42,0.7);
    /*display: none !important; /* Forzado oculto */
    align-items: center;
    justify-content: center;
    color: #f9fafb;
    font-size: 0.85rem;
	display: flex; /* ✅ visible */
}

.page-template-favorites .barhop-fav-pill {
    display: flex !important;
}


.barhop-bar-body {
    padding: 0.8rem 0.95rem 0.9rem;
}

.barhop-bar-toprow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.15rem;
}

.barhop-bar-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
}

.barhop-bar-rating {
    font-size: 0.85rem;
    color: var(--accent-bg);
    display: flex;
    align-items: center;
    gap: 0.18rem;
}

.barhop-bar-address {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.barhop-bar-distance {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.1rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.barhop-bar-eventchip {
    margin-top: 0.55rem;
    font-size: 0.78rem;
    padding: 0.4rem 0.6rem;
    border-radius: 0.75rem;
    background: #fef3c7;
    color: #92400e;
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

.barhop-bar-eventchip strong {
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* =========================================
   7. VISTA SINGLE BAR (DETALLE)
   ========================================= */
.single-bar-hero {
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15,23,42,0.20);
    margin-bottom: 1rem;
}

.single-bar-hero img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.single-bar-body {
    padding: 0;
}

.single-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem !important;
}

.single-bar-header h1 {
    margin-bottom: 0.2rem;
    line-height: 1.2;
    color: var(--text-main);
}

/* Título Grande Single */
.single-bar-header .barhop-bar-title {
    font-size: 1.45rem !important;
    font-weight: 800 !important;
}

/* Reset de posición para badges en Single Page */
.single-bar .barhop-badge-open,
.single-bar .barhop-badge-closed {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    margin-left: 0 !important;
    margin-top: 0.5rem !important;
    display: inline-block !important;
    align-self: flex-start;
}

/* Meta info */
.single-bar-meta {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    margin-bottom: 0.6rem;
    line-height: 1.45;
}

/* Rating Estrellas Single */
.barhop-rating {
    font-size: 1.9rem;
    display: flex;
    gap: 0.35rem;
    margin: 0.35rem 0 0.5rem;
    padding-bottom: 0;
}

.barhop-rating .star {
    cursor: pointer;
    transition: transform 0.15s ease, color 0.2s ease;
    color: #e2e8f0; /* Default inactivo */
}

html.dark .barhop-rating .star,
body.dark-mode .barhop-rating .star {
    color: #475569;
}

.barhop-rating .star:hover {
    transform: scale(1.18);
}

.barhop-rating .star.active {
    color: var(--gold);
}
html.dark .barhop-rating .star.active,
body.dark-mode .barhop-rating .star.active {
    color: #facc15;
}

/* Botones de Acción (Grid 2x2) */
.single-bar-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin-top: 1.2rem;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.55rem 0.7rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    
    /* Variables aplicadas */
    border: 1px solid var(--btn-border);
    background: var(--btn-bg);
    color: var(--btn-text);
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: 0.2s ease;
    text-decoration: none !important;
}

.google-btn .icon svg {
    width: 18px;
    height: 18px;
}

.google-btn:hover {
    background: var(--btn-hover);
}

/* Botón Mapa Destacado */
.google-btn-map {
    background: #10b981;
    border-color: #0d8c63;
    color: white;
}
.google-btn-map:hover { background: #0d8c63; }

html.dark .google-btn-map,
body.dark-mode .google-btn-map {
    background: #059669;
    border-color: #047857;
}

/* Chip de Evento Especial */
.single-bar-section.evento-chip {
    background: var(--chip-bg);
    border-left: 6px solid var(--chip-border);
    padding: 0.9rem 1rem;
    border-radius: 0.75rem;
    margin-top: 1.3rem;
}

.single-bar-section.evento-chip h3 {
    color: #b45309;
    font-size: 1rem;
    margin-bottom: 0.35rem;
    font-weight: 700;
}
.single-bar-section.evento-chip p,
.single-bar-section.evento-chip strong {
    color: var(--chip-text);
}

/* Ajuste evento modo oscuro */
html.dark .single-bar-section.evento-chip h3,
body.dark-mode .single-bar-section.evento-chip h3 {
    color: #fcd9a8;
}

/* Secciones Generales Single */
.single-bar-section {
    margin-top: 1rem;
    font-size: 0.85rem;
}

.single-bar-section h3 {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

/* =========================================
   8. SLIDER DE IMÁGENES
   ========================================= */
.barhop-slider-wrapper {
    position: relative;
}

.barhop-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.barhop-slide {
    min-width: 100%;
    scroll-snap-align: start;
}

.barhop-slide img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 1.25rem;
}

/* Flechas Slider */
.barhop-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.75);
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    user-select: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.barhop-slider-arrow.left { left: 10px; }
.barhop-slider-arrow.right { right: 10px; }

/* Ocultar flechas en móvil si se desea (según original: flex en min-width 768) */
@media (max-width: 767px) {
    .barhop-slider-arrow { display: none; }
}

/* Indicadores Dots */
.barhop-slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 0.4rem;
}

.barhop-slider-dots span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #cbd5e1;
    transition: 0.2s ease;
}

.barhop-slider-dots span.active {
    background: var(--accent-bg);
}

/* =========================================
   9. FOOTER Y UTILIDADES
   ========================================= */
.barhop-footer {
    text-align: center;
    padding: 0.5rem 0.5rem 1rem;
    font-size: 0.75rem;
    color: var(--text-light);
}

.hidden {
    display: none !important;
}

/* ===============================
   LOGIN BARHOP
=============================== */

.login-card {
  max-width: 360px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.login-card h1 {
  margin: 0 0 6px;
  font-size: 1.4rem;
}

.login-sub {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 16px;
}

.login-card form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-card input[type="text"],
.login-card input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.login-card input[type="submit"] {
  background: var(--accent-bg);
  border: none;
  color: #111;
  font-weight: 700;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
}

.login-divider {
  margin: 14px 0;
  height: 1px;
  background: var(--border-color);
}

.login-alt {
  font-size: 0.85rem;
  text-align: center;
}

.barhop-field-locked input {
    background-color: #f3f4f6 !important;
    cursor: not-allowed;
}

/* =====================================
   🔒 CAMPOS ACF BLOQUEADOS (FRONTEND)
   ===================================== */
.barhop-field-locked input,
.barhop-field-locked textarea,
.barhop-field-locked select {
    pointer-events: none;
    background-color: #f1f5f9;
    opacity: 0.6;
}

/* Bloquear mapa y botones dentro del campo */
.barhop-field-locked button,
.barhop-field-locked #bh-map {
    pointer-events: none;
    opacity: 0.4;
}

/* Cursor visual */
.barhop-field-locked {
    cursor: not-allowed;
}

.barhop-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.barhop-form label {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.barhop-form input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 15px;
}

.barhop-form input:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245,158,11,.2);
}

.login-error {
  background: #fac829;
  color: #991b1b;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
}

.single-bar-section.evento-detalle {
    margin: 20px 0;
}

.evento-card {
    background: linear-gradient(135deg, #111827, #1f2937);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
    color: #fff;
}

.evento-badge {
    display: inline-block;
    background: #f59e0b;
    color: #000;
    font-weight: 700;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.evento-titulo {
    font-size: 20px;
    margin: 6px 0 10px;
}

.evento-fecha {
    font-size: 14px;
    opacity: .9;
}

/* =========================
   🕒 HORARIOS - UX PREMIUM
   ========================= */

.horario-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow-card);
}

.horario-header {
    margin-bottom: 6px;
}

.horario-status {
    font-weight: 700;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    display: inline-block;
	color: #ffffff;
}

.horario-status.abierto {
    background: #16a34a;
    color: #fff;
}

.horario-status.cerrado {
    background: #b91c1c;
    color: #fff;
}

.horario-hoy {
    font-size: 15px;
    margin: 10px 0;
}

.horario-toggle {
    background: transparent;
    border: none;
    color: var(--accent-bg);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 8px;
}

.horario-semana {
    display: none;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

.horario-semana.open {
    display: block;
}

.horario-dia {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 4px 0;
    opacity: .9;
}

/* ===============================
   UX BOTONES ACCIÓN - JERARQUÍA
=============================== */

.google-btn-primary {
    grid-column: span 2;
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #047857;
    color: #ffffff;
    font-size: 0.95rem;
    padding: 0.75rem;
    box-shadow: 0 10px 25px rgba(16,185,129,.35);
}

.google-btn-primary:hover {
    background: #047857;
}

.google-btn-secondary {
    background: var(--btn-bg);
}

.google-btn-tertiary {
    opacity: 0.75;
    font-size: 0.8rem;
}

.barhop-fav-pill {
  background: rgba(0,0,0,.5);
  color: white;
  border-radius: 999px;
  padding: 6px 10px;
  border: none;
  cursor: pointer;
}

.barhop-fav-pill.active {
  background: #ef4444;
  color: white;
}
.barhop-icon-btn,
.barhop-fav-btn {
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

/* =========================================
   FIX REAL: Favoritos navegables
========================================= */

/* El link del card SIEMPRE navegable */
.barhop-bar-card > a {
  pointer-events: auto;
}

/* El corazón captura el click sin bloquear el link */
.barhop-fav-pill {
  z-index: 20;
  pointer-events: auto;
}

/* Evita que el corazón dispare el link */
.barhop-fav-pill {
  position: absolute;
}

/* =========================================
   FIX: Favoritos en header solo icono
========================================= 

.barhop-header .barhop-fav-btn {
  font-size: 1.1rem;
  padding: 0.4rem;
}

/* Ocultar texto solo en el header 
.barhop-header .barhop-fav-btn span,
.barhop-header .barhop-fav-btn .text,
.barhop-header .barhop-fav-btn .label {
  display: none !important;
}

/* Evita que herede estilos del botón grande 
.barhop-header .barhop-fav-btn {
  background: transparent;
  border: none;
  box-shadow: none;
}*/

/* ================================
   Recuperar contraseña – BarHop
================================ */

.barhop-shell {
    max-width: 420px;
    margin: 40px auto;
    padding: 24px;
}

.barhop-shell h1 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.barhop-shell p {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 16px;
}

.barhop-shell form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.barhop-shell label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
}

.barhop-shell input[type="email"] {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-size: 0.9rem;
    background: #fff;
}

.barhop-shell input[type="email"]:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245,158,11,.15);
}

.barhop-shell button {
    margin-top: 8px;
}

.barhop-shell a {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 0.85rem;
    color: #000;
    text-decoration: none;
}

.barhop-shell a:hover {
    color: #111827;
}

.bh-notice {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.bh-success {
    background: #ecfdf5;
    color: #065f46;
    border-left: 5px solid #10b981;
}

.bh-error {
    background: #fef2f2;
    color: #7f1d1d;
    border-left: 5px solid #ef4444;
}

/* ======================================
   ICONO USUARIO – CERRAR SESIÓN (tachado)
   ====================================== */

.barhop-icon-btn.user-logout {
  position: relative;
}

.barhop-icon-btn.user-logout::after {
  content: '';
  position: absolute;
  width: 140%;
  height: 2px;
  background-color: #ef4444; /* rojo */
  top: 50%;
  left: -20%;
  transform: rotate(-45deg);
  pointer-events: none;
}

/* =====================================
   FIX VISUAL – TOGGLE HORARIOS
   ===================================== */

.horario-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    font-weight: 700;
}

/* Flecha visual */
.horario-toggle::after {
    content: '▾';
    font-size: 16px;
    transition: transform .25s ease;
}

/* Cuando está abierto, rota la flecha */
.horario-semana.open ~ .horario-toggle::after {
    transform: rotate(180deg);
}

.barhop-phone {
    margin-top: 6px;
}

.barhop-phone a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

@media (max-width: 480px) {
    .single-bar-actions {
        flex-wrap: wrap;
    }

    .single-bar-actions .google-btn {
        flex: 1 1 calc(50% - 6px);
    }
}

/* ===============================
   LOGO BARHOP CR (IMAGEN)
================================ */

.barhop-logo {
    gap: 0; /* quitamos espacio del texto viejo */
}

.barhop-logo-link {
    display: flex;
    align-items: center;
}

.barhop-logo-img {
    height: 36px;      /* tamaño tipo app */
    width: auto;
    display: block;
}

/* Ajuste fino móvil */
@media (max-width: 480px) {
    .barhop-logo-img {
        height: 36px;
    }
}
.barhop-header {
    height: 64px;              /* altura fija tipo app */
    padding: 0 1.25rem;
}

/* ===============================
   FIX DEFINITIVO TAMAÑO LOGO
================================ */

.barhop-logo-img {
    height: 42px;
    max-height: 46px;
    width: auto;
    display: block;
}
.barhop-logo {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.acf-hide {
    display: none !important;
}

/* ================================
   BarHop CR – Campos ocultos
================================ */

/* Dueño del bar (oculto para dueños) */
.acf-field[data-name="usuario_propietario"] {
  display: none !important;
}

/* Botones tipo Google */
:root{
  --btn-primary-bg: linear-gradient(135deg, #10b981, #059669);
  --btn-primary-border: #047857;
  --btn-primary-text: #ffffff;

  --link-text: #111827; /* para .barhop-shell a */
}

/* si tu dark mode se activa con body.dark (ajústalo si usas html.dark o [data-theme="dark"]) */
body.dark{
  --btn-primary-bg: linear-gradient(135deg, #059669, #047857); /* opcional, más sobrio */
  --btn-primary-border: #065f46;
  --btn-primary-text: #e5e7eb;

  --link-text: #e5e7eb;
}

/* aplica variables */
/* Links normales dentro de barhop-shell */
.barhop-shell a{
  color: var(--link-text) !important;
}

/* EXCEPCIÓN: links dentro de tarjetas oscuras (eventos) */
.barhop-event-card a,
.barhop-event-card a *{
  color: inherit !important;
}

.google-btn-primary{
  background: var(--btn-primary-bg) !important;
  border-color: var(--btn-primary-border) !important;
  color: var(--btn-primary-text) !important;
}

/* ======================================================
   BarHop CR – Editar Eventos (ACF) UI PRO
====================================================== */

.barhop-edit-eventos{
  max-width: 520px;
  margin: 0 auto;
}

/* Título */
.barhop-shell h1{
  font-size: 22px;
  font-weight: 900;
  margin: 6px 0 14px;
}

/* Quita estilo tabla */
.barhop-edit-eventos .acf-repeater .acf-table{
  border: 0 !important;
  background: transparent !important;
}

.barhop-edit-eventos .acf-repeater .acf-table > thead{
  display:none !important;
}

/* Cada fila (evento) como tarjeta */
.barhop-edit-eventos .acf-repeater .acf-table > tbody > tr{
  display:block !important;
  background: var(--bg-card, #fff) !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  border-radius: 18px !important;
  padding: 14px !important;
  margin: 0 0 14px !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.06) !important;
}

/* Columnas/celdas apiladas */
.barhop-edit-eventos .acf-repeater .acf-table > tbody > tr > td{
  display:block !important;
  width:100% !important;
  border:0 !important;
  padding: 6px 0 !important;
}

/* Manejo (delete/orden) compacto */
.barhop-edit-eventos .acf-row-handle{
  background: transparent !important;
  border: 0 !important;
}
.barhop-edit-eventos .acf-row-handle.order{
  display:none !important; /* quita el drag si no lo usas */
}

/* Campos */
.barhop-edit-eventos .acf-field{
  margin: 0 0 12px !important;
  padding: 10px 12px !important;
  border-radius: 14px !important;
  background: rgba(0,0,0,.02) !important;
  border: 1px solid rgba(0,0,0,.06) !important;
}

/* Labels */
.barhop-edit-eventos .acf-label label{
  font-weight: 800 !important;
  font-size: 13px !important;
  color: var(--text-main,#111827) !important;
  margin-bottom: 6px !important;
}

/* Inputs bonitos */
.barhop-edit-eventos .acf-input input[type="text"],
.barhop-edit-eventos .acf-input input[type="url"],
.barhop-edit-eventos .acf-input textarea,
.barhop-edit-eventos .acf-input select{
  width:100% !important;
  border-radius: 12px !important;
  border: 1px solid rgba(0,0,0,.12) !important;
  padding: 10px 12px !important;
  background: var(--bg-input,#fff) !important;
  color: var(--text-main,#111827) !important;
  box-shadow: none !important;
}

/* Textarea */
.barhop-edit-eventos .acf-input textarea{
  min-height: 110px !important;
  resize: vertical !important;
}

/* Inicio/Fin en 2 columnas (cuando haya espacio) */
@media (min-width: 520px){
  .barhop-edit-eventos .acf-field[data-name="inicio"],
  .barhop-edit-eventos .acf-field[data-name="fin"]{
    display:inline-block !important;
    width: calc(50% - 6px) !important;
    vertical-align: top !important;
  }
  .barhop-edit-eventos .acf-field[data-name="inicio"]{ margin-right: 12px !important; }
}

/* Botón "Agregar evento" más pro */
.barhop-edit-eventos .acf-actions{
  padding-top: 6px !important;
  display:flex !important;
  justify-content:flex-end !important;
}

.barhop-edit-eventos .acf-actions .button{
  border-radius: 999px !important;
  padding: 10px 14px !important;
  font-weight: 900 !important;
  border: 1px solid rgba(0,0,0,.12) !important;
  background: #fff !important;
}

/* Botón Guardar – estilo primary */
.barhop-edit-eventos .acf-form-submit{
  position: sticky;
  bottom: 12px;
  z-index: 50;
  display:flex;
  justify-content:center;
  padding: 10px 0;
}

.barhop-edit-eventos .acf-form-submit input[type="submit"]{
  width: 100% !important;
  max-width: 520px !important;
  border-radius: 999px !important;
  padding: 14px 16px !important;
  font-weight: 900 !important;
  border: none !important;
  background: var(--btn-primary-bg, linear-gradient(135deg,#10b981,#059669)) !important;
  color: #fff !important;
}


/* ✅ Ocultar la fila CLON del repeater (no es un evento real) */
.barhop-edit-eventos .acf-repeater tr.acf-row.acf-clone{
  display: none !important;
}

.barhop-edit-eventos .acf-repeater .acf-row.acf-clone{
  display: none !important;
}




/* ===============================
   LOGO UPDATE — new martini logo
================================ */

.barhop-logo-img {
    height: 42px;
    max-height: 46px;
    width: auto;
    display: block;
    border-radius: 10px;
    object-fit: contain;
}

/* ===============================
   FILTER CHIPS ROW
================================ */

.barhop-filter-chips-wrap {
    background: var(--bg-header);
    padding: 0.5rem 1.25rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.barhop-filter-chips {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.barhop-filter-chips::-webkit-scrollbar {
    display: none;
}

/* Base chip */
.barhop-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1.5px solid var(--border-color);
    background: var(--btn-bg);
    color: var(--text-main);
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}

.barhop-chip:hover {
    border-color: var(--accent-yellow, #f59e0b);
    background: rgba(245,158,11,0.08);
}

/* Active chip — filled dark pill like screenshot */
.barhop-chip.active,
.barhop-chip[aria-pressed="true"] {
    background: var(--text-main);
    color: var(--bg-header);
    border-color: var(--text-main);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Coloured dot indicators */
.chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

.chip-dot--red  { background: #ef4444; }
.chip-dot--green { background: #22c55e; }

/* When "Cerca de mí" chip is active, dot stays its colour */
.barhop-chip.active .chip-dot--red  { background: #ef4444; }
.barhop-chip.active .chip-dot--green { background: #22c55e; }


/* ===============================
   HAMBURGER BUTTON IN HEADER
================================ */

.barhop-hamburger-btn {
    order: -1; /* leftmost in header */
    flex-shrink: 0;
}

.barhop-header {
    justify-content: space-between;
}

/* Make logo centered when hamburger is present */
.barhop-header .barhop-logo {
    flex: 1;
    justify-content: center;
}

/* ===============================
   QUICK MENU OVERLAY
================================ */

.barhop-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1000;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.barhop-menu-overlay.is-open {
    display: block;
    opacity: 1;
}

/* ===============================
   QUICK MENU DRAWER
================================ */

.barhop-quick-menu {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(80vw, 320px);
    background: #f5f0e8; /* warm cream like screenshot */
    z-index: 1001;
    display: flex;
    flex-direction: column;
    padding: 0;
    transform: translateX(-110%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 20px 20px 0;
    overflow: hidden;
    box-shadow: 4px 0 24px rgba(0,0,0,0.18);
}

.barhop-quick-menu:not([hidden]) {
    display: flex;
}

.barhop-quick-menu.is-open {
    transform: translateX(0);
}

/* Dark mode drawer */
body.dark-mode .barhop-quick-menu {
    background: #1f2937;
}

/* Drawer header */
.bqm-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.4rem 1.2rem 1rem;
}

.bqm-title-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bqm-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main, #111827);
    letter-spacing: -0.3px;
}

.bqm-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted, #6b7280);
    font-weight: 400;
}

/* Close button */
.bqm-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1.5px solid var(--border-color, #e5e7eb);
    background: var(--btn-bg, #ffffff);
    color: var(--text-main, #111827);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
}

.bqm-close:hover {
    background: var(--border-color, #e5e7eb);
}

/* Nav list */
.bqm-nav {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0 1rem 1.5rem;
    flex: 1;
}

/* Each nav item */
.bqm-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: #ffffff;
    text-decoration: none;
    color: var(--text-main, #111827);
    font-weight: 700;
    font-size: 1rem;
    transition: background 0.15s, transform 0.12s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.bqm-item:hover,
.bqm-item:active {
    background: #f0f0f0;
    transform: scale(0.98);
}

body.dark-mode .bqm-item {
    background: #374151;
    color: #f9fafb;
}

body.dark-mode .bqm-item:hover {
    background: #4b5563;
}

.bqm-item-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.bqm-item-label {
    flex: 1;
}


/* =========================================
   HEADER HERO 2026
   ========================================= */
.barhop-shell {
  padding-top: 0;
}

.barhop-hero-header {
  position: relative;
  padding: 0.92rem 1rem 0.86rem;
  color: #fff;
  background:
    radial-gradient(circle at 50% 0%, rgba(21, 61, 148, 0.34), transparent 45%),
    linear-gradient(180deg, #020817 0%, #03122f 100%);
  overflow: hidden;
}

.barhop-hero-top {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 0.7rem;
  align-items: center;
}

.barhop-hero-brand {
  display: flex;
  justify-content: center;
}

.barhop-hero-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  text-decoration: none;
}

.barhop-hero-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.barhop-hero-wordmark {
  display: inline-flex;
  align-items: baseline;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-size: 1.16rem;
}

.barhop-hero-wordmark-main { color: #ffffff; }
.barhop-hero-wordmark-accent { color: #f7b500; }

.barhop-hero-copy {
  text-align: center;
  margin-top: 0.72rem;
}

.barhop-hero-copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: 1.65rem;
  line-height: 1.1;
  font-weight: 800;
}

.barhop-hero-copy p {
  margin: 0.3rem 0 0;
  color: rgba(255,255,255,0.78);
  font-size: 0.8rem;
}

.barhop-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.barhop-icon-btn--hero {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(3, 15, 39, 0.78);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  color: #ffffff;
}

.barhop-home-shell {
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 1.3rem;
}

.barhop-search-v7 {
  margin: 0.72rem 0 0.72rem;
}

.barhop-search-wrap-v7 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.74rem 0.84rem;
  border: 1px solid #e7e8ee;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.barhop-search-v7 input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.98rem;
  font-weight: 600;
}

.barhop-search-v7 input:focus {
  outline: none;
}

.barhop-search-icon-v7 {
  font-size: 1.05rem;
  opacity: 0.7;
}

.barhop-search-filter-btn-v7 {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  padding: 0.72rem 0.92rem;
  font-weight: 700;
  color: #1f2937;
}

.barhop-quick-filters {
  display: flex;
  gap: 0.72rem;
  margin: 0 0 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding: 0 0 0.2rem;
  scrollbar-width: none;
}

.barhop-quick-filters::-webkit-scrollbar {
  display: none;
}

.barhop-filter-chip {
  display: flex;
  align-items: center;
  gap: 0.68rem;
  text-align: left;
  border: 1px solid #dde2eb;
  border-radius: 999px;
  padding: 0.62rem 0.9rem;
  background: #ffffff;
  color: #0f172a;
  min-height: 58px;
  min-width: 210px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.barhop-filter-chip span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.barhop-filter-chip strong {
  font-size: 0.84rem;
  line-height: 1.1;
}

.barhop-filter-chip small {
  font-size: 0.67rem;
  line-height: 1.2;
  color: #6b7280;
  margin-top: 0.18rem;
}

.barhop-filter-chip.is-active {
  background: linear-gradient(180deg, #031642 0%, #041232 100%);
  border-color: #041232;
  color: #ffffff;
}

.barhop-filter-chip.is-active strong {
  color: #ffffff !important;
}

.barhop-filter-chip.is-active small {
  color: rgba(255,255,255,0.82) !important;
}

.chip-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  flex-shrink: 0;
}
.chip-dot--red { background: #ff4d4f; }
.chip-dot--green { background: #54c45e; }
.chip-dot--gold { background: #f5c043; }
.chip-dot--orange { background: #f59e0b; }

.barhop-location-cta-v7 .google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 1px solid #d7dce5;
  border-radius: 16px;
  background: #fff;
  padding: 0.9rem 1rem;
  font-weight: 700;
  color: #1f2937;
}

html.dark .barhop-hero-header,
body.dark-mode .barhop-hero-header {
  background: linear-gradient(180deg, #020817 0%, #0b1120 100%);
}

html.dark .barhop-search-wrap-v7,
html.dark .barhop-filter-chip,
body.dark-mode .barhop-search-wrap-v7,
body.dark-mode .barhop-filter-chip {
  background: #111827;
  border-color: #243244;
  color: #f8fafc;
  box-shadow: none;
}

html.dark .barhop-search-v7 input,
body.dark-mode .barhop-search-v7 input { color: #f8fafc; }
html.dark .barhop-search-filter-btn-v7,
body.dark-mode .barhop-search-filter-btn-v7 {
  background: #0f172a;
  border-color: #243244;
  color: #f8fafc;
}
html.dark .barhop-filter-chip small,
body.dark-mode .barhop-filter-chip small { color: #cbd5e1; }

@media (max-width: 380px) {
  .barhop-hero-copy h1 { font-size: 1.48rem; }
  .barhop-hero-wordmark { font-size: 1.05rem; }
  .barhop-filter-chip { min-width: 196px; padding: 0.58rem 0.82rem; min-height: 56px; }
  .barhop-filter-chip strong { font-size: 0.79rem; }
  .barhop-filter-chip small { font-size: 0.62rem; }
}

.barhop-quick-filters.is-peek{transform:scale(1.01);transition:transform .2s ease;}


/* =========================================
   FAVORITOS — misma apariencia PWA
   ========================================= */
.barhop-favorites-shell {
  padding-top: 0.72rem;
}

.barhop-favorites-title {
  margin-bottom: 0.8rem;
}

.barhop-favorites-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.65rem;
  padding: 2rem 1.2rem;
  border: 1px solid #e7e8ee;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  margin-top: 0.4rem;
}

.barhop-favorites-empty.hidden {
  display: none;
}

.barhop-favorites-empty-icon {
  font-size: 3rem;
  line-height: 1;
}

.barhop-favorites-empty strong {
  font-size: 1.02rem;
  color: #111827;
}

.barhop-favorites-empty p {
  margin: 0;
  font-size: 0.92rem;
  color: #6b7280;
}

.barhop-favorites-shell #barhop-favorites-list:empty {
  margin-top: 0;
}

html.dark .barhop-favorites-empty,
body.dark-mode .barhop-favorites-empty {
  background: #111827;
  border-color: rgba(255,255,255,0.08);
  box-shadow: none;
}

html.dark .barhop-favorites-empty strong,
body.dark-mode .barhop-favorites-empty strong {
  color: #f8fafc;
}

html.dark .barhop-favorites-empty p,
body.dark-mode .barhop-favorites-empty p {
  color: #cbd5e1;
}


/* =========================================
   CONTRASTE GLOBAL + REGISTRO BAR
   ========================================= */
.barhop-shell,
.barhop-shell p,
.barhop-shell li,
.barhop-shell label,
.barhop-shell small,
.barhop-shell strong,
.barhop-shell span,
.barhop-section-title-v7 span,
.barhop-location-bar-v7 strong,
.barhop-favorites-title span {
  color: var(--text-main);
}

.barhop-shell p,
.barhop-shell small,
.barhop-shell .muted,
.barhop-section-title-v7 small,
.barhop-location-bar-v7 span,
.barhop-section-link-v7,
.barhop-search-icon-v7 {
  color: var(--text-muted);
}

.barhop-section-link-v7 {
  text-decoration: none;
  font-weight: 700;
}

.barhop-section-title-v7,
.barhop-location-bar-v7 {
  color: var(--text-main);
}

.barhop-location-bar-v7 {
  background: transparent;
}

.barhop-location-bar-inner-v7 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.barhop-section-title-v7 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.barhop-section-title-v7 > div {
  min-width: 0;
}

.barhop-section-title-v7 span,
.barhop-favorites-title span {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
}

.barhop-section-title-v7 small,
.barhop-location-bar-v7 span {
  display: block;
  margin-top: 0.18rem;
  line-height: 1.35;
}

.barhop-search-v7 input,
.barhop-search-v7 input::placeholder {
  color: var(--text-muted);
}

.barhop-search-filter-btn-v7 {
  color: var(--btn-text);
}

.barhop-auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.barhop-auth-form label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0.2rem;
}

.barhop-auth-form input {
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: var(--bg-input);
  color: var(--text-main);
  margin-bottom: 10px;
}

.barhop-auth-form input::placeholder {
  color: var(--text-muted);
}

.barhop-auth-form input:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245,158,11,.18);
}

.barhop-auth-help {
  margin-top: 14px;
  color: var(--text-muted) !important;
}

.barhop-auth-back {
  margin-top: 10px;
}

html.dark .barhop-root,
body.dark-mode .barhop-root,
html.dark .barhop-shell,
body.dark-mode .barhop-shell {
  background: var(--bg-body);
}

html.dark .barhop-search-wrap-v7,
body.dark-mode .barhop-search-wrap-v7 {
  background: #111827;
  border-color: #243244;
}

html.dark .barhop-search-icon-v7,
body.dark-mode .barhop-search-icon-v7,
html.dark .barhop-section-link-v7,
body.dark-mode .barhop-section-link-v7,
html.dark .barhop-location-bar-v7 span,
body.dark-mode .barhop-location-bar-v7 span,
html.dark .barhop-section-title-v7 small,
body.dark-mode .barhop-section-title-v7 small,
html.dark .barhop-auth-help,
body.dark-mode .barhop-auth-help {
  color: var(--text-muted) !important;
}

html.dark .barhop-shell a,
body.dark-mode .barhop-shell a,
html.dark .barhop-shell label,
body.dark-mode .barhop-shell label,
html.dark .barhop-shell h1,
body.dark-mode .barhop-shell h1,
html.dark .barhop-shell h2,
body.dark-mode .barhop-shell h2,
html.dark .barhop-shell h3,
body.dark-mode .barhop-shell h3,
html.dark .barhop-shell strong,
body.dark-mode .barhop-shell strong,
html.dark .barhop-section-title-v7 span,
body.dark-mode .barhop-section-title-v7 span,
html.dark .barhop-location-bar-v7 strong,
body.dark-mode .barhop-location-bar-v7 strong,
html.dark #barhop-location-status,
body.dark-mode #barhop-location-status {
  color: var(--text-main) !important;
}

html.dark .barhop-auth-form input,
body.dark-mode .barhop-auth-form input,
html.dark .barhop-shell input[type="email"],
body.dark-mode .barhop-shell input[type="email"],
html.dark .barhop-shell input[type="password"],
body.dark-mode .barhop-shell input[type="password"],
html.dark .barhop-shell input[type="text"],
body.dark-mode .barhop-shell input[type="text"] {
  background: var(--bg-input) !important;
  border-color: var(--border-color) !important;
  color: var(--text-main) !important;
}

html.dark .barhop-auth-form input::placeholder,
body.dark-mode .barhop-auth-form input::placeholder,
html.dark .barhop-shell input::placeholder,
body.dark-mode .barhop-shell input::placeholder {
  color: var(--text-muted) !important;
}


@media (max-width: 380px) {
  .barhop-search-wrap-v7 {
    gap: 0.5rem;
    padding: 0.68rem 0.72rem;
  }

  .barhop-search-v7 input {
    font-size: 0.9rem;
  }

  .barhop-search-v7 input::placeholder {
    font-size: 0.9rem;
  }

  .barhop-search-filter-btn-v7 {
    padding: 0.66rem 0.8rem;
    gap: 0.28rem;
  }

  .barhop-search-filter-label-v7 {
    font-size: 0.92rem;
  }
}

html.dark .barhop-filter-chip.is-active,
body.dark-mode .barhop-filter-chip.is-active {
  background: linear-gradient(180deg, #031642 0%, #041232 100%);
  border-color: #1e3a8a;
  color: #ffffff;
}

html.dark .barhop-filter-chip.is-active strong,
body.dark-mode .barhop-filter-chip.is-active strong {
  color: #ffffff !important;
}

html.dark .barhop-filter-chip.is-active small,
body.dark-mode .barhop-filter-chip.is-active small {
  color: rgba(255,255,255,0.82) !important;
}

/* =========================================
   PÁGINAS INTERNAS / CONTACTO
   ========================================= */
.barhop-page-shell {
    padding-top: 1rem;
    padding-bottom: 2rem;
}

.barhop-page-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    padding: 1.1rem 1rem 1.25rem;
}

.barhop-page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.25);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 0.9rem;
}

.barhop-page-header {
    margin-bottom: 1rem;
}

.barhop-page-title {
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.1;
    color: var(--text-main);
}

.barhop-page-content {
    color: var(--text-main);
}

.barhop-page-content > *:first-child {
    margin-top: 0;
}

.barhop-page-content h2,
.barhop-page-content h3,
.barhop-page-content h4 {
    color: var(--text-main);
    line-height: 1.2;
    margin: 1.35rem 0 0.7rem;
}

.barhop-page-content h2 {
    font-size: 1.18rem;
}

.barhop-page-content h3 {
    font-size: 1rem;
}

.barhop-page-content p,
.barhop-page-content li {
    font-size: 0.94rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.barhop-page-content ul,
.barhop-page-content ol {
    margin: 0.6rem 0 1rem 1.1rem;
    padding: 0;
}

.barhop-page-content li {
    margin-bottom: 0.45rem;
}

.barhop-page-content strong {
    color: var(--text-main);
}

.barhop-page-content a {
    color: inherit;
}

.barhop-contact-page .barhop-page-content h2 {
    position: relative;
    padding-bottom: 0.45rem;
    margin-top: 1.5rem;
}

.barhop-contact-page .barhop-page-content h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    border-radius: 999px;
    background: var(--accent-bg);
    margin-top: 0.45rem;
}

.barhop-contact-page .barhop-page-content h2:first-of-type {
    margin-top: 0.2rem;
}

.barhop-contact-page .barhop-page-content ul {
    list-style: none;
    margin-left: 0;
}

.barhop-contact-page .barhop-page-content ul li {
    position: relative;
    padding: 0.75rem 0.9rem 0.75rem 2.4rem;
    margin-bottom: 0.7rem;
    border: 1px solid var(--border-color);
    background: rgba(148, 163, 184, 0.08);
    border-radius: 16px;
    color: var(--text-main);
}

.barhop-contact-page .barhop-page-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0.9rem;
    top: 0.72rem;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.18);
    color: #b45309;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
}



body.dark-mode .barhop-page-card,
html.dark .barhop-page-card {
    background: var(--bg-card);
}

body.dark-mode .barhop-page-eyebrow,
html.dark .barhop-page-eyebrow {
    background: rgba(245, 158, 11, 0.16);
    color: #fde68a;
    border-color: rgba(245, 158, 11, 0.24);
}

body.dark-mode .barhop-contact-page .barhop-page-content ul li,
html.dark .barhop-contact-page .barhop-page-content ul li,
body.dark-mode .barhop-page-content div.wpforms-container-full,
html.dark .barhop-page-content div.wpforms-container-full {
    background: rgba(15, 23, 42, 0.45);
    box-shadow: none;
}

body.dark-mode .barhop-contact-page .barhop-page-content ul li::before,
html.dark .barhop-contact-page .barhop-page-content ul li::before {
    color: #facc15;
    background: rgba(245, 158, 11, 0.15);
}

/* ============================================================


/* ============================================================
   FORMULARIO DE CONTACTO — BarHop CR
   ============================================================ */

.bh-contact-form {
    margin-top: 1.5rem;
}

.bh-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 1rem;
}

.bh-field label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.bh-field label span {
    color: #ef4444;
    margin-left: 2px;
}

.bh-field input,
.bh-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: #111827;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.bh-field input:focus,
.bh-field textarea:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.bh-field textarea {
    resize: vertical;
    min-height: 120px;
}

.bh-contact-submit {
    width: 100%;
    margin-top: 0.5rem;
}

.bh-contact-note {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 0.75rem;
    text-align: center;
}

.bh-contact-success {
    background: #ecfdf5;
    border-left: 4px solid #10b981;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    color: #065f46;
    font-size: 15px;
}

.bh-contact-error {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    color: #991b1b;
    font-size: 14px;
}

/* ============================================================
   SLIDERS EVENTOS & PROMOS — single-bar.php + front-page.php
   ============================================================ */

.bh-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.bh-slider-label {
    font-size: 17px;
    font-weight: 500;
    color: #111827;
}

.bh-slider-count {
    font-size: 11px;
    color: #9ca3af;
}

.bh-hscroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.bh-hscroll::-webkit-scrollbar { display: none; }

/* Tarjeta de evento */
.bh-ev-card {
    flex: 0 0 265px;
    background: #1f2937;
    border-radius: 14px;
    overflow: hidden;
}

.bh-ev-img {
    height: 135px;
    background-color: #374151;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 10px 12px;
}

.bh-ev-placeholder {
    height: 0 !important;
    padding: 0 !important;
}

.bh-ev-body {
    padding: 8px 10px 10px;
}

.bh-ev-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 3px;
    line-height: 1.3;
}

.bh-ev-desc {
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.4;
    margin-bottom: 4px;
}

.bh-ev-fecha {
    font-size: 10px;
    color: #6b7280;
    margin-bottom: 4px;
}

.bh-ev-link {
    font-size: 11px;
    color: #f59e0b;
    font-weight: 500;
    text-decoration: none;
}

/* Badges de eventos */
.bh-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 500;
    padding: 2px 9px;
    border-radius: 20px;
}

.bh-badge-activo  { background: #f59e0b; color: #fff; }
.bh-badge-proximo { background: #6366f1; color: #fff; }

/* Tarjeta de promo */
.bh-pr-card {
    flex: 0 0 200px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    text-align: left;
}

.bh-pr-card-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bh-pr-card-link:hover {
    border-color: #d1d5db;
}

.bh-pr-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    align-self: flex-start;
    letter-spacing: 0.02em;
}

.bh-pr-yellow { background: #fef3c7; color: #92400e; }
.bh-pr-green  { background: #d1fae5; color: #065f46; }
.bh-pr-red    { background: #fee2e2; color: #991b1b; }

.bh-pr-bar {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 1px;
}

.bh-pr-title {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bh-pr-desc {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bh-pr-fecha {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
    font-weight: 500;
}

/* Acento de color por tipo */
.bh-pr-card:has(.bh-pr-yellow) { border-left: 3px solid #f59e0b; }
.bh-pr-card:has(.bh-pr-green)  { border-left: 3px solid #10b981; }
.bh-pr-card:has(.bh-pr-red)    { border-left: 3px solid #ef4444; }

/* Dark mode para promos */
html.dark .bh-pr-card,
body.dark-mode .bh-pr-card {
    background: #1e293b;
    border-color: #334155;
}

html.dark .bh-pr-title,
body.dark-mode .bh-pr-title,
html.dark .bh-pr-bar,
body.dark-mode .bh-pr-bar {
    color: #f1f5f9;
}

html.dark .bh-pr-desc,
body.dark-mode .bh-pr-desc {
    color: #94a3b8;
}

html.dark .bh-slider-label,
body.dark-mode .bh-slider-label {
    color: #f1f5f9;
}

/* ======================================================
   BarHop CR – Dark Mode Fix Completo
   Corrige badges, inputs ACF, labels y tarjetas de promo
====================================================== */

/* --- Badges de promo en dark mode --- */
html.dark .bh-pr-yellow,
body.dark-mode .bh-pr-yellow {
  background: rgba(245,158,11,0.18);
  color: #fcd34d;
}
html.dark .bh-pr-green,
body.dark-mode .bh-pr-green {
  background: rgba(16,185,129,0.18);
  color: #6ee7b7;
}
html.dark .bh-pr-red,
body.dark-mode .bh-pr-red {
  background: rgba(239,68,68,0.18);
  color: #fca5a5;
}

/* --- Texto secundario en tarjeta promo --- */
html.dark .bh-pr-bar,
body.dark-mode .bh-pr-bar {
  color: #94a3b8 !important;
}
html.dark .bh-pr-fecha,
body.dark-mode .bh-pr-fecha {
  color: #64748b !important;
}

/* --- ACF inputs completos en dark mode (editar-bar y editar-eventos) --- */
html.dark .barhop-shell input,
html.dark .barhop-shell textarea,
html.dark .barhop-shell select,
body.dark-mode .barhop-shell input,
body.dark-mode .barhop-shell textarea,
body.dark-mode .barhop-shell select {
  background: var(--bg-input) !important;
  border-color: var(--border-color) !important;
  color: var(--text-main) !important;
}

html.dark .barhop-shell input::placeholder,
html.dark .barhop-shell textarea::placeholder,
body.dark-mode .barhop-shell input::placeholder,
body.dark-mode .barhop-shell textarea::placeholder {
  color: var(--text-muted) !important;
}

/* --- Labels y texto ACF en dark mode --- */
html.dark .barhop-shell .acf-label label,
html.dark .barhop-shell .acf-label p,
html.dark .barhop-shell .acf-instructions,
body.dark-mode .barhop-shell .acf-label label,
body.dark-mode .barhop-shell .acf-label p,
body.dark-mode .barhop-shell .acf-instructions {
  color: var(--text-main) !important;
}

/* --- Fondo de campos ACF en dark mode --- */
html.dark .barhop-edit-eventos .acf-field,
body.dark-mode .barhop-edit-eventos .acf-field {
  background: rgba(255,255,255,0.04) !important;
  border-color: var(--border-color) !important;
}

/* --- Tarjeta de cada fila del repeater en dark mode --- */
html.dark .barhop-edit-eventos .acf-repeater .acf-table > tbody > tr,
body.dark-mode .barhop-edit-eventos .acf-repeater .acf-table > tbody > tr {
  background: var(--bg-card) !important;
  border-color: var(--border-color) !important;
}

/* --- Botón agregar fila en dark mode --- */
html.dark .barhop-edit-eventos .acf-actions .button,
body.dark-mode .barhop-edit-eventos .acf-actions .button {
  background: var(--bg-input) !important;
  color: var(--text-main) !important;
  border-color: var(--border-color) !important;
}

/* --- Selector de archivo en dark mode --- */
html.dark .barhop-shell .acf-file-uploader,
html.dark .barhop-shell .button.upload-button,
body.dark-mode .barhop-shell .acf-file-uploader,
body.dark-mode .barhop-shell .button.upload-button {
  background: var(--bg-input) !important;
  color: var(--text-main) !important;
  border-color: var(--border-color) !important;
}

/* --- Estrellas de calificación en dark mode --- */
html.dark .barhop-rating .star,
body.dark-mode .barhop-rating .star {
  color: #475569 !important;
}
html.dark .barhop-rating .star.active,
body.dark-mode .barhop-rating .star.active {
  color: #f59e0b !important;
}


/* ======================================================
   BarHop CR – Fix labels y campos en editar-eventos (dark)
====================================================== */

/* Fondo y borde de cada campo del repeater en dark */
html.dark .barhop-edit-eventos .acf-field,
body.dark-mode .barhop-edit-eventos .acf-field {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.1) !important;
}

/* Labels visibles en dark */
html.dark .barhop-edit-eventos .acf-label label,
body.dark-mode .barhop-edit-eventos .acf-label label {
  color: #f1f5f9 !important;
}

/* Inputs y textareas con borde visible en dark */
html.dark .barhop-edit-eventos .acf-input input[type="text"],
html.dark .barhop-edit-eventos .acf-input input[type="url"],
html.dark .barhop-edit-eventos .acf-input input[type="number"],
html.dark .barhop-edit-eventos .acf-input textarea,
html.dark .barhop-edit-eventos .acf-input select,
body.dark-mode .barhop-edit-eventos .acf-input input[type="text"],
body.dark-mode .barhop-edit-eventos .acf-input input[type="url"],
body.dark-mode .barhop-edit-eventos .acf-input input[type="number"],
body.dark-mode .barhop-edit-eventos .acf-input textarea,
body.dark-mode .barhop-edit-eventos .acf-input select {
  background: #1e293b !important;
  border-color: rgba(255,255,255,0.15) !important;
  color: #f1f5f9 !important;
}

/* Input de datetime picker (fecha/hora) */
html.dark .barhop-edit-eventos .acf-input input.input,
body.dark-mode .barhop-edit-eventos .acf-input input.input {
  background: #1e293b !important;
  border-color: rgba(255,255,255,0.15) !important;
  color: #f1f5f9 !important;
}

/* Tarjeta de fila del repeater */
html.dark .barhop-edit-eventos .acf-repeater .acf-table > tbody > tr,
body.dark-mode .barhop-edit-eventos .acf-repeater .acf-table > tbody > tr {
  background: #1e293b !important;
  border-color: rgba(255,255,255,0.08) !important;
}

/* Mensaje de confirmación (banner verde) en dark */
html.dark .barhop-shell [style*="background:#ecfdf5"],
body.dark-mode .barhop-shell [style*="background:#ecfdf5"] {
  background: rgba(16,185,129,0.15) !important;
  color: #6ee7b7 !important;
  border-color: #10b981 !important;
}


/* ======================================================
   Fix labels dentro del repeater de promos
====================================================== */
.barhop-edit-eventos .acf-repeater .acf-field > .acf-label,
.barhop-edit-eventos .acf-repeater .acf-field > .acf-label label {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  color: #111827 !important;
  margin-bottom: 4px !important;
}

html.dark .barhop-edit-eventos .acf-repeater .acf-field > .acf-label label,
body.dark-mode .barhop-edit-eventos .acf-repeater .acf-field > .acf-label label {
  color: #f1f5f9 !important;
}

/* ======================================================
   BarHop CR – Dark Mode Fixes (versión consolidada)
====================================================== */

/* --- Badges de promo --- */
html.dark .bh-pr-yellow, body.dark-mode .bh-pr-yellow { background: rgba(245,158,11,0.18); color: #fcd34d; }
html.dark .bh-pr-green,  body.dark-mode .bh-pr-green  { background: rgba(16,185,129,0.18); color: #6ee7b7; }
html.dark .bh-pr-red,    body.dark-mode .bh-pr-red    { background: rgba(239,68,68,0.18);  color: #fca5a5; }
html.dark .bh-pr-yellow-o, body.dark-mode .bh-pr-yellow-o { background: rgba(245,158,11,0.18); color: #fcd34d; }

/* --- Tarjeta de promo --- */
html.dark .bh-pr-card, body.dark-mode .bh-pr-card {
  background: #1e293b !important;
  border-color: rgba(255,255,255,0.08) !important;
}
html.dark .bh-pr-title, body.dark-mode .bh-pr-title { color: #f1f5f9 !important; }
html.dark .bh-pr-desc,  body.dark-mode .bh-pr-desc  { color: #94a3b8 !important; }
html.dark .bh-pr-bar,   body.dark-mode .bh-pr-bar   { color: #94a3b8 !important; }
html.dark .bh-pr-fecha, body.dark-mode .bh-pr-fecha { color: #64748b !important; }

/* --- Slider label --- */
html.dark .bh-slider-label, body.dark-mode .bh-slider-label { color: #f1f5f9; }

/* --- Avisos inline (bar activo/inactivo) --- */
html.dark [style*="background:#dcfce7"], body.dark-mode [style*="background:#dcfce7"] {
  background: rgba(16,185,129,0.15) !important;
  color: #6ee7b7 !important;
  border-color: #10b981 !important;
}
html.dark [style*="background:#fef3c7"], body.dark-mode [style*="background:#fef3c7"] {
  background: rgba(245,158,11,0.15) !important;
  color: #fcd34d !important;
  border-color: #f59e0b !important;
}

/* --- ACF inputs globales en dark (barhop-shell) --- */
html.dark .barhop-shell input,
html.dark .barhop-shell textarea,
html.dark .barhop-shell select,
body.dark-mode .barhop-shell input,
body.dark-mode .barhop-shell textarea,
body.dark-mode .barhop-shell select {
  background: var(--bg-input, #1e293b) !important;
  border-color: var(--border-color, rgba(255,255,255,0.15)) !important;
  color: var(--text-main, #f1f5f9) !important;
}
html.dark .barhop-shell input::placeholder,
html.dark .barhop-shell textarea::placeholder,
body.dark-mode .barhop-shell input::placeholder,
body.dark-mode .barhop-shell textarea::placeholder {
  color: var(--text-muted, #64748b) !important;
}

/* --- Labels ACF globales en dark (barhop-shell) --- */
html.dark .barhop-shell .acf-label label,
html.dark .barhop-shell .acf-label p,
body.dark-mode .barhop-shell .acf-label label,
body.dark-mode .barhop-shell .acf-label p {
  color: #f1f5f9 !important;
}

/* --- Editar eventos: labels, inputs, fondos --- */
html.dark .barhop-edit-eventos .acf-label label,
html.dark .barhop-edit-eventos .acf-label p,
html.dark .barhop-edit-eventos td.acf-fields .acf-field .acf-label label,
html.dark .barhop-edit-eventos .acf-block-fields .acf-field .acf-label label,
html.dark .barhop-edit-eventos .acf-field.collapsed-target .acf-label label,
body.dark-mode .barhop-edit-eventos .acf-label label,
body.dark-mode .barhop-edit-eventos .acf-label p,
body.dark-mode .barhop-edit-eventos td.acf-fields .acf-field .acf-label label,
body.dark-mode .barhop-edit-eventos .acf-block-fields .acf-field .acf-label label,
body.dark-mode .barhop-edit-eventos .acf-field.collapsed-target .acf-label label {
  color: #f1f5f9 !important;
  opacity: 1 !important;
}

html.dark .barhop-edit-eventos td.acf-fields,
body.dark-mode .barhop-edit-eventos td.acf-fields {
  background: transparent !important;
}

html.dark .barhop-edit-eventos .acf-field,
body.dark-mode .barhop-edit-eventos .acf-field {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.08) !important;
}

html.dark .barhop-edit-eventos .acf-repeater .acf-table > tbody > tr,
body.dark-mode .barhop-edit-eventos .acf-repeater .acf-table > tbody > tr {
  background: #1e293b !important;
  border-color: rgba(255,255,255,0.08) !important;
}

html.dark .barhop-edit-eventos .acf-input input,
html.dark .barhop-edit-eventos .acf-input input.input,
html.dark .barhop-edit-eventos .acf-input textarea,
html.dark .barhop-edit-eventos .acf-input select,
body.dark-mode .barhop-edit-eventos .acf-input input,
body.dark-mode .barhop-edit-eventos .acf-input input.input,
body.dark-mode .barhop-edit-eventos .acf-input textarea,
body.dark-mode .barhop-edit-eventos .acf-input select {
  background: #1e293b !important;
  border-color: rgba(255,255,255,0.15) !important;
  color: #f1f5f9 !important;
}

/* --- Botón agregar fila en dark --- */
html.dark .barhop-edit-eventos .acf-actions .button,
body.dark-mode .barhop-edit-eventos .acf-actions .button {
  background: #1e293b !important;
  color: #f1f5f9 !important;
  border-color: rgba(255,255,255,0.15) !important;
}

/* --- Estrellas en dark --- */
html.dark .barhop-rating .star, body.dark-mode .barhop-rating .star { color: #475569 !important; }
html.dark .barhop-rating .star.active, body.dark-mode .barhop-rating .star.active { color: #f59e0b !important; }

/* --- Evento en ficha del bar – más protagonismo --- */
.single-bar .bh-ev-card {
  flex: 0 0 300px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
}
.single-bar .bh-ev-body  { padding: 14px 16px 16px; }
.single-bar .bh-ev-title { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 6px; line-height: 1.3; }
.single-bar .bh-ev-desc  { font-size: 13px; color: #cbd5e1; line-height: 1.6; margin-bottom: 8px; }
.single-bar .bh-ev-fecha { font-size: 12px; color: #10b981; font-weight: 600; margin-bottom: 6px; }
.single-bar .bh-ev-link  { font-size: 13px; color: #f59e0b; font-weight: 600; }

/* --- Scrollbar visible en desktop --- */
@media (min-width: 768px) {
  .bh-hscroll {
    scrollbar-width: thin !important;
    scrollbar-color: #10b981 #e2e8f0;
    padding-bottom: 10px;
  }
  .bh-hscroll::-webkit-scrollbar { display: block !important; height: 6px; }
  .bh-hscroll::-webkit-scrollbar-track { background: #e2e8f0; border-radius: 99px; }
  .bh-hscroll::-webkit-scrollbar-thumb { background: #10b981; border-radius: 99px; }
  html.dark .bh-hscroll::-webkit-scrollbar-track,
  body.dark-mode .bh-hscroll::-webkit-scrollbar-track { background: #1e293b; }
}


/* ======================================================
   Badge verificado – Pro y Premium
====================================================== */
.bh-verified-badge {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 4px;
  position: relative;
  top: -1px;
}

.bh-verified-badge svg {
  display: block;
  filter: drop-shadow(0 1px 2px rgba(29,155,240,0.4));
}

.barhop-bar-title .bh-verified-badge svg {
  width: 16px;
  height: 16px;
}

.barhop-bar-title.single .bh-verified-badge svg,
.single-bar .barhop-bar-title .bh-verified-badge svg {
  width: 20px;
  height: 20px;
}


/* ======================================================
   Corazón favoritos – estado activo/inactivo
====================================================== */
.barhop-fav-pill {
  transition: background 0.2s, color 0.2s, transform 0.15s;
  cursor: pointer;
}

.barhop-fav-pill:hover {
  transform: scale(1.15);
}

/* Corazón vacío (no favorito) */
.barhop-fav-pill:not(.is-favorite) {
  color: #f9fafb;
  background: rgba(15,23,42,0.7);
}

/* Corazón lleno (favorito) */
.barhop-fav-pill.is-favorite {
  color: #ef4444;
  background: rgba(239,68,68,0.15);
}


/* ======================================================
   HORARIOS – Reorganización visual en tabla (CSS only)
   Para revertir: eliminar desde este comentario hasta
   el comentario "FIN HORARIOS CSS"
====================================================== */

/* Agrupar todos los campos de horario en un contenedor flex */
.acf-field[data-name="lunes_cerrado"],
.acf-field[data-name="lunes_apertura"],
.acf-field[data-name="lunes_cierre"],
.acf-field[data-name="martes_cerrado"],
.acf-field[data-name="martes_apertura"],
.acf-field[data-name="martes_cierre"],
.acf-field[data-name="miercoles_cerrado"],
.acf-field[data-name="miercoles_apertura"],
.acf-field[data-name="miercoles_cierre"],
.acf-field[data-name="jueves_cerrado"],
.acf-field[data-name="jueves_apertura"],
.acf-field[data-name="jueves_cierre"],
.acf-field[data-name="viernes_cerrado"],
.acf-field[data-name="viernes_apertura"],
.acf-field[data-name="viernes_cierre"],
.acf-field[data-name="sabado_cerrado"],
.acf-field[data-name="sabado_apertura"],
.acf-field[data-name="sabado_cierre"],
.acf-field[data-name="domingo_cerrado"],
.acf-field[data-name="domingo_apertura"],
.acf-field[data-name="domingo_cierre"] {
  display: inline-flex !important;
  flex-direction: column;
  margin: 0 !important;
  padding: 6px 8px !important;
  border: none !important;
  background: transparent !important;
  vertical-align: top;
}

/* Campos cerrado (checkbox) — columna angosta */
.acf-field[data-name$="_cerrado"] {
  width: 70px !important;
  align-items: center;
}

/* Campos apertura y cierre (hora) — columna más ancha */
.acf-field[data-name$="_apertura"],
.acf-field[data-name$="_cierre"] {
  width: 120px !important;
}

/* Labels más pequeños */
.acf-field[data-name$="_cerrado"] .acf-label label,
.acf-field[data-name$="_apertura"] .acf-label label,
.acf-field[data-name$="_cierre"] .acf-label label {
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 4px !important;
}

/* Inputs de hora más compactos */
.acf-field[data-name$="_apertura"] input,
.acf-field[data-name$="_cierre"] input {
  padding: 6px 8px !important;
  font-size: 13px !important;
  border-radius: 6px !important;
}

/* Etiqueta del día — mostrar antes del grupo */
.acf-field[data-name="lunes_cerrado"]::before    { content: "Lunes";     display: block; font-weight: 800; font-size: 12px; margin-bottom: 4px; color: var(--text-main, #111); }
.acf-field[data-name="martes_cerrado"]::before   { content: "Martes";    display: block; font-weight: 800; font-size: 12px; margin-bottom: 4px; color: var(--text-main, #111); }
.acf-field[data-name="miercoles_cerrado"]::before { content: "Miércoles"; display: block; font-weight: 800; font-size: 12px; margin-bottom: 4px; color: var(--text-main, #111); }
.acf-field[data-name="jueves_cerrado"]::before   { content: "Jueves";    display: block; font-weight: 800; font-size: 12px; margin-bottom: 4px; color: var(--text-main, #111); }
.acf-field[data-name="viernes_cerrado"]::before  { content: "Viernes";   display: block; font-weight: 800; font-size: 12px; margin-bottom: 4px; color: var(--text-main, #111); }
.acf-field[data-name="sabado_cerrado"]::before   { content: "Sábado";    display: block; font-weight: 800; font-size: 12px; margin-bottom: 4px; color: var(--text-main, #111); }
.acf-field[data-name="domingo_cerrado"]::before  { content: "Domingo";   display: block; font-weight: 800; font-size: 12px; margin-bottom: 4px; color: var(--text-main, #111); }

/* Separador visual entre días */
.acf-field[data-name="lunes_cierre"],
.acf-field[data-name="martes_cierre"],
.acf-field[data-name="miercoles_cierre"],
.acf-field[data-name="jueves_cierre"],
.acf-field[data-name="viernes_cierre"],
.acf-field[data-name="sabado_cierre"],
.acf-field[data-name="domingo_cierre"] {
  border-right: 1px solid rgba(0,0,0,0.08) !important;
  margin-right: 8px !important;
  padding-right: 16px !important;
}

/* Dark mode */
html.dark .acf-field[data-name="lunes_cerrado"]::before,
html.dark .acf-field[data-name="martes_cerrado"]::before,
html.dark .acf-field[data-name="miercoles_cerrado"]::before,
html.dark .acf-field[data-name="jueves_cerrado"]::before,
html.dark .acf-field[data-name="viernes_cerrado"]::before,
html.dark .acf-field[data-name="sabado_cerrado"]::before,
html.dark .acf-field[data-name="domingo_cerrado"]::before,
body.dark-mode .acf-field[data-name="lunes_cerrado"]::before,
body.dark-mode .acf-field[data-name="martes_cerrado"]::before,
body.dark-mode .acf-field[data-name="miercoles_cerrado"]::before,
body.dark-mode .acf-field[data-name="jueves_cerrado"]::before,
body.dark-mode .acf-field[data-name="viernes_cerrado"]::before,
body.dark-mode .acf-field[data-name="sabado_cerrado"]::before,
body.dark-mode .acf-field[data-name="domingo_cerrado"]::before {
  color: #f1f5f9;
}

/* Móvil — apilar verticalmente por día */
@media (max-width: 600px) {
  .acf-field[data-name="lunes_cerrado"],
  .acf-field[data-name="lunes_apertura"],
  .acf-field[data-name="lunes_cierre"],
  .acf-field[data-name="martes_cerrado"],
  .acf-field[data-name="martes_apertura"],
  .acf-field[data-name="martes_cierre"],
  .acf-field[data-name="miercoles_cerrado"],
  .acf-field[data-name="miercoles_apertura"],
  .acf-field[data-name="miercoles_cierre"],
  .acf-field[data-name="jueves_cerrado"],
  .acf-field[data-name="jueves_apertura"],
  .acf-field[data-name="jueves_cierre"],
  .acf-field[data-name="viernes_cerrado"],
  .acf-field[data-name="viernes_apertura"],
  .acf-field[data-name="viernes_cierre"],
  .acf-field[data-name="sabado_cerrado"],
  .acf-field[data-name="sabado_apertura"],
  .acf-field[data-name="sabado_cierre"],
  .acf-field[data-name="domingo_cerrado"],
  .acf-field[data-name="domingo_apertura"],
  .acf-field[data-name="domingo_cierre"] {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    width: 100% !important;
    padding: 6px 12px !important;
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
  }

  /* Nombre del día solo en el campo cerrado */
  .acf-field[data-name$="_cerrado"] {
    padding-top: 12px !important;
    border-top: 2px solid rgba(0,0,0,0.08) !important;
    margin-top: 4px !important;
  }

  /* Label a la izquierda */
  .acf-field[data-name$="_cerrado"] .acf-label,
  .acf-field[data-name$="_apertura"] .acf-label,
  .acf-field[data-name$="_cierre"] .acf-label {
    min-width: 80px;
    margin-bottom: 0 !important;
  }

  /* Input a la derecha */
  .acf-field[data-name$="_apertura"] .acf-input,
  .acf-field[data-name$="_cierre"] .acf-input {
    flex: 1;
  }

  .acf-field[data-name$="_apertura"] input,
  .acf-field[data-name$="_cierre"] input {
    width: 100% !important;
  }

  /* Quitar separador en móvil */
  .acf-field[data-name$="_cierre"] {
    border-right: none !important;
    margin-right: 0 !important;
    padding-right: 12px !important;
  }

  /* Nombre del día en móvil */
  .acf-field[data-name="lunes_cerrado"]::before,
  .acf-field[data-name="martes_cerrado"]::before,
  .acf-field[data-name="miercoles_cerrado"]::before,
  .acf-field[data-name="jueves_cerrado"]::before,
  .acf-field[data-name="viernes_cerrado"]::before,
  .acf-field[data-name="sabado_cerrado"]::before,
  .acf-field[data-name="domingo_cerrado"]::before {
    min-width: 70px;
    margin-bottom: 0;
    margin-right: 8px;
  }
}

/* FIN HORARIOS CSS */

