
:root {
    --primary: #006994;
    --primary-dark: #004e70;
    --accent: #f59e0b;
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --border: #e2e8f0;
    --white: #ffffff;
    --radius: 14px;
    --shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.goog-te-banner-frame.skiptranslate, .goog-te-gadget-icon { display: none !important; }
body { top: 0px !important; }

/* Header */
.main-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand-logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--primary), #0ea5e9);
    color: #fff; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.logo-text strong { display: block; font-size: 1.15rem; color: var(--primary-dark); line-height: 1.2; }
.logo-text small { font-size: 0.78rem; color: var(--text-muted); }

.main-nav { display: flex; align-items: center; gap: 20px; }
.nav-link { font-weight: 600; color: var(--text-muted); transition: color .2s; }
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-btn-cta {
    background: var(--primary); color: #fff;
    padding: 9px 16px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; transition: background .2s;
}
.nav-btn-cta:hover { background: var(--primary-dark); }

.flag-lang-selector {
    display: flex; align-items: center; gap: 6px; padding-left: 8px; border-left: 1px solid var(--border);
}
.flag-btn {
    background: transparent; border: 2px solid transparent; border-radius: 6px;
    padding: 2px; cursor: pointer; display: flex; align-items: center; transition: transform .15s, border-color .15s;
}
.flag-btn img { width: 24px; height: 16px; object-fit: cover; border-radius: 3px; display: block; }
.flag-btn:hover { transform: scale(1.1); }
.flag-btn.active { border-color: var(--primary); }

.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text-dark); cursor: pointer; }

/* Hero */
.hero-section {
    background: linear-gradient(135deg, #004e70 0%, #0077b6 100%);
    color: #fff; padding: 54px 0 60px; text-align: center;
}
.hero-badge {
    display: inline-block; background: rgba(255,255,255,0.16);
    padding: 6px 14px; border-radius: 99px; font-size: 0.85rem; font-weight: 600; margin-bottom: 14px;
}
.hero-content h1 { font-size: 2.3rem; font-weight: 800; max-width: 780px; margin: 0 auto 12px; line-height: 1.2; }
.hero-content p { font-size: 1.06rem; opacity: 0.92; margin-bottom: 26px; }

.hero-search-form {
    max-width: 820px; margin: 0 auto; background: #fff; padding: 8px;
    border-radius: 14px; display: flex; gap: 8px; box-shadow: 0 12px 30px rgba(0,0,0,0.16);
}
.search-input-group { flex: 1; display: flex; align-items: center; padding: 0 12px; color: var(--text-muted); }
.search-input-group input { width: 100%; border: none; outline: none; padding: 10px; font-size: 0.98rem; font-family: inherit; }
.search-select {
    border: none; border-left: 1px solid var(--border); padding: 0 14px;
    font-family: inherit; font-size: 0.95rem; color: var(--text-dark); outline: none; background: transparent;
}
.btn-search {
    background: var(--accent); color: #0f172a; border: none;
    padding: 12px 26px; border-radius: 10px; font-weight: 700; font-size: 0.98rem; cursor: pointer;
}

/* Localidades desplazables */
.towns-bar-section { background: #fff; border-bottom: 1px solid var(--border); padding: 14px 0; }
.filter-pills-wrapper { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.pill-tab {
    white-space: nowrap; padding: 8px 16px; border-radius: 99px;
    background: var(--bg-light); border: 1px solid var(--border);
    font-size: 0.88rem; font-weight: 600; color: var(--text-muted); transition: all .2s;
}
.pill-tab:hover { border-color: var(--primary); color: var(--primary); }
.pill-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Barra de categorías desplazable horizontalmente */
.categories-section { padding: 22px 0 8px; }
.categories-scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}
.categories-scroll-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 2px 8px;
    scrollbar-width: thin;
    flex: 1;
}
.categories-scroll-track::-webkit-scrollbar { height: 6px; }
.categories-scroll-track::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }
.cat-card {
    flex: 0 0 auto;
    white-space: nowrap;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: all .2s;
}
.cat-card i { color: var(--primary); font-size: 1.05rem; }
.cat-card:hover, .cat-card.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.cat-card:hover i, .cat-card.active i { color: #fff; }

.scroll-arrow-btn {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--primary-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    transition: all .2s;
}
.scroll-arrow-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Directorio */
.main-directory { padding: 24px 20px 44px; }
.directory-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; flex-wrap: wrap; gap: 10px; }
.results-count { color: var(--text-muted); font-size: 0.92rem; }
.btn-reset { background: #e2e8f0; color: var(--text-dark); padding: 7px 14px; border-radius: 8px; font-size: 0.86rem; font-weight: 600; display: inline-block; }

.business-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.business-card {
    background: #fff; border-radius: var(--radius); border: 1px solid var(--border);
    overflow: hidden; box-shadow: var(--shadow); transition: transform .22s ease, box-shadow .22s ease;
}
.business-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(15, 23, 42, 0.11); }
.card-link-wrapper { display: flex; flex-direction: column; height: 100%; }
.card-image { position: relative; height: 195px; background: #cbd5e1; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.badge-featured {
    position: absolute; top: 12px; left: 12px; background: var(--accent); color: #0f172a;
    font-size: 0.76rem; font-weight: 700; padding: 4px 10px; border-radius: 99px;
}
.badge-town {
    position: absolute; bottom: 12px; left: 12px; background: rgba(15, 23, 42, 0.78); color: #fff;
    font-size: 0.78rem; font-weight: 600; padding: 4px 10px; border-radius: 8px;
}
.card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.card-category { font-size: 0.8rem; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.card-title { font-size: 1.18rem; font-weight: 700; margin-bottom: 8px; color: var(--text-dark); }
.card-excerpt { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 16px; flex: 1; }
.card-footer-action {
    border-top: 1px solid var(--border); padding-top: 12px;
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.card-address { font-size: 0.82rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-view-detail { font-size: 0.86rem; font-weight: 700; color: var(--primary); white-space: nowrap; }

.add-business-cta-banner {
    margin-top: 34px; background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    border: 1px solid #bae6fd; border-radius: var(--radius); padding: 24px 28px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cta-banner-text h3 { color: var(--primary-dark); font-size: 1.18rem; margin-bottom: 4px; }
.cta-banner-text p { color: var(--text-muted); font-size: 0.94rem; }
.btn-cta-highlight {
    background: var(--primary); color: #fff; padding: 12px 22px; border-radius: 10px;
    font-weight: 700; font-size: 0.95rem; white-space: nowrap; transition: background .2s;
}
.btn-cta-highlight:hover { background: var(--primary-dark); }

/* Home Eventos y Blog */
.home-section-alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 48px 0; }
.home-section-blog { padding: 48px 0 64px; }
.section-header-flex { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 26px; gap: 16px; flex-wrap: wrap; }
.section-kicker { display: block; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--primary); margin-bottom: 4px; }
.section-header-flex h2 { font-size: 1.65rem; font-weight: 800; color: var(--text-dark); }
.btn-section-more {
    font-weight: 700; color: var(--primary); font-size: 0.94rem; padding: 8px 16px;
    border: 1px solid var(--primary); border-radius: 8px; transition: all .2s;
}
.btn-section-more:hover { background: var(--primary); color: #fff; }

.home-events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.home-event-card {
    background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px; transition: transform .2s, box-shadow .2s;
}
.home-event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.event-top-row { display: flex; gap: 14px; align-items: center; }
.event-top-row h3 { font-size: 1.08rem; line-height: 1.3; margin-top: 2px; }
.home-event-desc { font-size: 0.9rem; color: var(--text-muted); flex: 1; }
.home-event-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 10px; margin-top: 12px; }

.blog-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 24px; }
.blog-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow); transition: transform .22s ease;
}
.blog-card:hover { transform: translateY(-4px); }
.blog-card-img { position: relative; height: 185px; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.badge-blog-cat { position: absolute; top: 12px; left: 12px; background: var(--primary); color: #fff; font-size: 0.76rem; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.blog-date { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 6px; }

/* Ficha de Negocio y Evento */
.detail-breadcrumb { background: #fff; border-bottom: 1px solid var(--border); padding: 12px 0; font-size: 0.88rem; color: var(--text-muted); }
.detail-breadcrumb span { margin: 0 8px; }
.detail-page { padding: 28px 20px 60px; }
.detail-hero-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 24px; }
.detail-cover { position: relative; height: 320px; }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-badges { position: absolute; bottom: 16px; left: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.detail-badges .badge-featured, .detail-badges .badge-town { position: static; }
.detail-header-info { padding: 24px; }
.detail-header-info h1 { font-size: 2rem; margin: 6px 0 8px; }
.detail-lead { font-size: 1.08rem; color: var(--text-muted); margin-bottom: 20px; }
.detail-quick-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.action-btn { padding: 10px 18px; border-radius: 10px; font-weight: 700; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 8px; }
.btn-call { background: var(--primary); color: #fff; }
.btn-whatsapp { background: #16a34a; color: #fff; }
.btn-web { background: #0f172a; color: #fff; }
.btn-map { background: #e2e8f0; color: var(--text-dark); }

.detail-content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.detail-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 20px; }
.detail-box h2, .detail-box h3 { margin-bottom: 14px; color: var(--primary-dark); }
.detail-description { color: var(--text-dark); font-size: 1rem; }
.detail-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.detail-gallery img { width: 100%; height: 140px; object-fit: cover; border-radius: 10px; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.contact-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.94rem; }
.contact-list i { color: var(--primary); margin-top: 4px; }
.btn-back-directory { display: block; text-align: center; padding: 12px; border-radius: 10px; background: #e2e8f0; font-weight: 700; }

/* Eventos, Formularios y Admin */
.page-banner { background: var(--primary-dark); color: #fff; padding: 36px 0; text-align: center; }
.events-grid { display: grid; gap: 18px; }
.event-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; gap: 20px; align-items: flex-start; }
.event-date-badge { background: var(--primary); color: #fff; min-width: 66px; text-align: center; padding: 10px; border-radius: 12px; }
.event-date-badge .day { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1; }
.event-date-badge .month { text-transform: uppercase; font-size: 0.78rem; font-weight: 700; }
.event-town { font-size: 0.82rem; font-weight: 700; color: var(--primary); display: inline-block; }
.event-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.88rem; color: var(--text-muted); margin: 6px 0 10px; }

.form-container { max-width: 780px; padding: 36px 20px; }
.public-form { background: #fff; padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border);
    border-radius: 8px; font-family: inherit; font-size: 0.95rem;
}
.file-upload-box { border: 2px dashed #cbd5e1; border-radius: 10px; padding: 14px; background: var(--bg-light); }
.btn-primary { background: var(--primary); color: #fff; border: none; padding: 12px 22px; border-radius: 8px; font-weight: 700; cursor: pointer; display: inline-block; }
.alert-success { background: #dcfce7; color: #166534; padding: 14px; border-radius: 8px; margin-bottom: 18px; }
.alert-error { background: #fee2e2; color: #991b1b; padding: 14px; border-radius: 8px; margin-bottom: 18px; }
.empty-state { text-align: center; padding: 50px 20px; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); }
.empty-state i { font-size: 2.5rem; color: var(--primary); margin-bottom: 12px; }

/* Footer */
.main-footer { background: #0f172a; color: #cbd5e1; padding-top: 44px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; padding-bottom: 34px; }
.footer-grid h3, .footer-grid h4 { color: #fff; margin-bottom: 12px; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-bottom { border-top: 1px solid #1e293b; padding: 16px 0; text-align: center; font-size: 0.85rem; }

/* Admin */
.admin-login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-card { background: #fff; padding: 32px; border-radius: var(--radius); width: 100%; max-width: 380px; box-shadow: var(--shadow); }
.admin-header { background: #0f172a; color: #fff; }
.admin-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 0.9rem; }
.admin-table th, .admin-table td { padding: 10px; border-bottom: 1px solid var(--border); text-align: left; }
.badge-active { background: #dcfce7; color: #166534; padding: 3px 8px; border-radius: 6px; font-size: 0.8rem; }
.badge-pending { background: #fef3c7; color: #92400e; padding: 3px 8px; border-radius: 6px; font-size: 0.8rem; font-weight: 700; }

@media (max-width: 860px) {
    .mobile-menu-btn { display: block; }
    .main-nav {
        display: none; position: absolute; top: 74px; left: 0; right: 0;
        background: #fff; flex-direction: column; padding: 20px; border-bottom: 1px solid var(--border);
    }
    .main-nav.open { display: flex; }
    .flag-lang-selector { border-left: none; padding-left: 0; padding-top: 8px; }
    .hero-search-form { flex-direction: column; }
    .search-select { border-left: none; border-top: 1px solid var(--border); padding: 10px; }
    .detail-content-grid, .footer-grid, .form-row, .admin-grid { grid-template-columns: 1fr; }
    .scroll-arrow-btn { display: none; }
}


/* Tarjetas de Eventos con Imagen */
.home-event-card.has-image {
    padding: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
}
.events-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.event-card-visual {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .22s ease, box-shadow .22s ease;
}
.event-card-visual:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.11);
}
.event-card-cover {
    position: relative;
    height: 195px;
    background: #cbd5e1;
    overflow: hidden;
}
.event-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.event-card-visual:hover .event-card-cover img,
.home-event-card.has-image:hover .event-card-cover img {
    transform: scale(1.04);
}
.event-date-badge.overlay-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    right: auto;
    min-width: 58px;
    padding: 8px 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 4;
}


/* Botón Cerca de mí y Mapa Interactivo Leaflet */
.btn-near-me {
    background: #0ea5e9;
    color: #fff;
    border: none;
    padding: 0 18px;
    height: 48px;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: background .2s, transform .15s;
}
.btn-near-me:hover { background: #0284c7; }

.pill-tab.pill-near {
    border-color: #bae6fd;
    color: #0369a1;
    background: #f0f9ff;
    font-family: inherit;
    cursor: pointer;
}
.pill-tab.pill-near.active {
    background: #0284c7;
    color: #fff;
    border-color: #0284c7;
}

.btn-map-toggle {
    background: #fff;
    color: var(--primary-dark);
    border: 1.5px solid var(--primary);
    padding: 8px 15px;
    border-radius: 9px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all .18s;
}
.btn-map-toggle:hover, .btn-map-toggle.active {
    background: var(--primary);
    color: #fff;
}

.directory-map-panel {
    display: none;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 28px;
}
.directory-map-panel.open {
    display: block;
}
.directory-map-canvas {
    width: 100%;
    height: 410px;
    z-index: 1;
}
.map-legend-bar {
    padding: 10px 16px;
    background: #f8fafc;
    border-top: 1px solid var(--border);
    font-size: 0.83rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.user-loc-tag {
    background: #dcfce7;
    color: #166534;
    padding: 3px 10px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.78rem;
}

.badge-distance {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(22, 101, 52, 0.92);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 99px;
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.badge-distance-inline {
    background: #dcfce7;
    color: #166534;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 99px;
    align-items: center;
    gap: 5px;
}

/* Pines personalizados en Leaflet */
.custom-map-pin {
    width: 32px;
    height: 32px;
    background: #006994;
    color: #fff;
    border: 2.5px solid #fff;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}
.custom-map-pin i {
    transform: rotate(45deg);
    font-size: 13px;
}
.custom-map-pin.featured {
    background: #d97706;
}
.user-pulse-dot {
    width: 16px;
    height: 16px;
    background: #2563eb;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.28);
}

@media (max-width: 768px) {
    .btn-near-me { width: 100%; justify-content: center; height: 44px; }
    .directory-map-canvas { height: 320px; }
}


/* Sistema de Reseñas Verificadas y Valoración Rápida */
.star-rating-icons {
    color: #f59e0b;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.card-rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
}
.card-rating-pill i { color: #f59e0b; font-size: 0.75rem; }
.card-rating-pill small { font-weight: 500; color: #b45309; }

.detail-rating-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 6px 0 12px;
    font-size: 0.92rem;
}
.rating-count-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}
.rating-empty-hint {
    color: var(--text-muted);
    font-size: 0.86rem;
}
.rating-empty-hint a { color: var(--primary); font-weight: 600; }

.reviews-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.reviews-overview-box {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 20px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 20px;
    align-items: center;
}
.reviews-big-score {
    text-align: center;
    border-right: 1px solid var(--border);
    padding-right: 14px;
}
.reviews-big-score .big-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.05;
    color: var(--text-dark);
}
.reviews-big-score small {
    display: block;
    margin-top: 4px;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.reviews-bars-col { display: flex; flex-direction: column; gap: 6px; }
.rating-bar-row {
    display: grid;
    grid-template-columns: 36px 1fr 28px;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
}
.rating-bar-track {
    height: 8px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
}
.rating-bar-fill {
    height: 100%;
    background: #f59e0b;
    border-radius: 99px;
}

.quick-review-form {
    display: none;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 22px;
}
.quick-review-form.open { display: block; }
.quick-review-form h4 {
    margin-bottom: 12px;
    color: var(--primary-dark);
    font-size: 1.02rem;
}
.star-picker-group { margin-bottom: 14px; }
.star-picker-group > label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 6px;
}
.star-picker {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.star-option {
    cursor: pointer;
    font-size: 1.55rem;
    color: #cbd5e1;
    transition: transform .12s, color .12s;
}
.star-option input { display: none; }
.star-option.active { color: #f59e0b; }
.star-option:hover { transform: scale(1.12); }
.star-picker-label {
    margin-left: 8px;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.reviews-list { display: flex; flex-direction: column; gap: 14px; }
.review-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    background: #fff;
}
.review-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.review-author-info { display: flex; align-items: center; gap: 10px; }
.review-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}
.badge-verified-review {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dcfce7;
    color: #166534;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
    margin-left: 6px;
}
.review-date { font-size: 0.76rem; color: var(--text-muted); }
.review-body { font-size: 0.93rem; color: var(--text-dark); line-height: 1.6; }
.review-owner-reply {
    margin-top: 10px;
    padding: 10px 14px;
    background: #f8fafc;
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
    font-size: 0.87rem;
}
.review-owner-reply strong { display: block; color: var(--primary-dark); margin-bottom: 3px; }

@media (max-width: 640px) {
    .reviews-overview-box { grid-template-columns: 1fr; }
    .reviews-big-score { border-right: none; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: 12px; }
}


/* Reclamar Ficha y Sello Negocio Verificado */
.badge-owner-verified {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 99px;
}

.claim-owner-box {
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
    border: 1.5px solid #fde68a;
}
.claim-owner-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fef3c7;
    color: #b45309;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.claim-owner-box h3 {
    font-size: 1.02rem;
    margin-bottom: 6px;
    color: #78350f;
}
.claim-owner-box p {
    font-size: 0.86rem;
    color: #92400e;
    margin-bottom: 14px;
    line-height: 1.5;
}
.btn-claim-ficha {
    width: 100%;
    background: #d97706;
    color: #fff;
    border: none;
    border-radius: 9px;
    padding: 10px 14px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .18s;
}
.btn-claim-ficha:hover { background: #b45309; }

.claimed-status-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
}
.claimed-status-box i {
    color: #0284c7;
    font-size: 1.25rem;
    margin-top: 2px;
}
.claimed-status-box strong {
    display: block;
    font-size: 0.9rem;
    color: #0c4a6e;
}
.claimed-status-box small {
    display: block;
    font-size: 0.8rem;
    color: #0369a1;
    line-height: 1.4;
}

/* Modal Reclamar Ficha */
.claim-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(3px);
    z-index: 9999;
    padding: 20px;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}
.claim-modal-backdrop.open { display: flex; }
.claim-modal-card {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    padding: 24px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
    animation: modalPop .18s ease-out;
}
@keyframes modalPop {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.claim-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
    margin-bottom: 16px;
}
.claim-kicker {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #d97706;
}
.claim-modal-header h3 {
    font-size: 1.18rem;
    color: var(--text-dark);
}
.claim-modal-close {
    background: #f1f5f9;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted);
}
.claim-modal-close:hover { background: #e2e8f0; color: var(--text-dark); }
.claim-modal-form label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
}
.claim-modal-form input,
.claim-modal-form select,
.claim-modal-form textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
}


/* Botón Compartir en Ficha y Barra Flotante Inferior en Móvil */
.btn-share-action {
    background: #f1f5f9;
    color: var(--text-dark);
    border: 1px solid var(--border);
    cursor: pointer;
    font-family: inherit;
}
.btn-share-action:hover {
    background: #e2e8f0;
}

.mobile-sticky-cta-bar {
    display: none;
}

.gmm-toast {
    position: fixed;
    bottom: 86px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #0f172a;
    color: #fff;
    padding: 11px 18px;
    border-radius: 99px;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
    z-index: 10000;
    white-space: nowrap;
}
.gmm-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.gmm-toast i { color: #22c55e; }

@media (max-width: 768px) {
    body.has-mobile-cta-bar .main-footer {
        padding-bottom: 78px;
    }
    .mobile-sticky-cta-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--border);
        box-shadow: 0 -6px 22px rgba(15, 23, 42, 0.10);
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
        gap: 8px;
        z-index: 950;
    }
    .m-cta-item {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        height: 44px;
        border-radius: 11px;
        font-family: inherit;
        font-weight: 700;
        font-size: 0.9rem;
        border: none;
        cursor: pointer;
        text-decoration: none;
        transition: transform .12s, opacity .15s;
    }
    .m-cta-item:active {
        transform: scale(0.97);
    }
    .m-cta-call {
        background: var(--primary);
        color: #fff;
    }
    .m-cta-wa {
        background: #16a34a;
        color: #fff;
    }
    .m-cta-map {
        background: #0284c7;
        color: #fff;
    }
    .m-cta-share {
        background: #f1f5f9;
        color: var(--text-dark);
        border: 1px solid #cbd5e1;
        flex: 0.85;
    }
}


/* ============================================================================
   GALERÍA AMPLIABLE (LIGHTBOX) Y REPRODUCTOR DE VÍDEO
   ============================================================================ */
.detail-cover-zoomable {
    cursor: zoom-in;
}
.cover-zoom-pill {
    position: absolute;
    right: 16px;
    bottom: 16px;
    background: rgba(15, 23, 42, 0.74);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.gallery-thumb-btn {
    position: relative;
    padding: 0;
    border: none;
    background: #0f172a;
    border-radius: 10px;
    overflow: hidden;
    cursor: zoom-in;
    display: block;
    width: 100%;
}
.gallery-thumb-btn img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.gallery-thumb-btn:hover img {
    transform: scale(1.04);
    opacity: 0.9;
}
.gallery-thumb-zoom {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 0.76rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gmm-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.94);
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.gmm-lightbox.open {
    display: flex;
}
.lb-stage {
    max-width: 92vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lb-stage img {
    max-width: 92vw;
    max-height: 78vh;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    object-fit: contain;
}
.lb-caption-bar {
    margin-top: 12px;
    color: #e2e8f0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
}
#lbCounterText {
    background: rgba(255, 255, 255, 0.14);
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
}
.lb-close {
    position: fixed;
    top: 16px;
    right: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10060;
}
.lb-close:hover {
    background: rgba(255, 255, 255, 0.28);
}
.lb-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10060;
}
.lb-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

.video-responsive-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
}
.video-responsive-wrap.video-vertical-wrap {
    max-width: 360px;
    padding-bottom: 640px;
    margin: 0 auto;
}
.video-responsive-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* ============================================================================
   FAVORITOS
   ============================================================================ */
.business-card {
    position: relative;
}
.fav-heart-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 6;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    color: #475569;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
    transition: transform 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.fav-heart-btn:hover {
    transform: scale(1.1);
    color: #e11d48;
}
.fav-heart-btn.is-fav {
    color: #e11d48;
    background: #fff1f2;
}

.btn-fav-detail {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
    cursor: pointer;
    font-family: inherit;
}
.btn-fav-detail:hover {
    background: #ffe4e6;
}
.btn-fav-detail.is-fav {
    background: #e11d48;
    color: #ffffff;
    border-color: #e11d48;
}

.nav-fav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
    padding: 7px 12px;
    border-radius: 99px;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}
.nav-fav-btn:hover {
    background: #ffe4e6;
}
.fav-count-badge {
    background: #be123c;
    color: #fff;
    font-size: 0.74rem;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.shared-fav-banner {
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    border: 1px solid #fecdd3;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.shared-fav-banner strong {
    color: #be123c;
    font-size: 1rem;
    display: block;
    margin-bottom: 3px;
}
.shared-fav-banner p {
    color: #334155;
    font-size: 0.86rem;
    margin: 0;
}

.fav-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 9990;
}
.fav-drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}
.fav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(410px, 100vw);
    background: #ffffff;
    box-shadow: -10px 0 35px rgba(15, 23, 42, 0.18);
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 9995;
    display: flex;
    flex-direction: column;
}
.fav-drawer.open {
    transform: translateX(0);
}
.fav-drawer-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.fav-drawer-header h3 {
    margin: 0;
    font-size: 1.08rem;
}
.fav-drawer-header small {
    color: var(--text-muted);
    font-size: 0.8rem;
}
.fav-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #f8fafc;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-dark);
}
.fav-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.fav-empty-state {
    text-align: center;
    padding: 46px 20px;
    color: var(--text-muted);
}
.fav-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff1f2;
    color: #e11d48;
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.fav-item-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
}
.fav-item-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.fav-item-info {
    flex: 1;
    min-width: 0;
}
.fav-item-title {
    display: block;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fav-item-title:hover {
    color: var(--primary);
}
.fav-item-meta {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fav-remove-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.fav-remove-btn:hover {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
}
.fav-drawer-footer {
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: #f8fafc;
}
.fav-footer-actions {
    display: flex;
    gap: 8px;
}
.fav-clear-link {
    display: block;
    width: 100%;
    text-align: center;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 10px;
    cursor: pointer;
}
.fav-clear-link:hover {
    color: #dc2626;
}


/* ============================================================================
   FAVORITOS EN EVENTOS Y BLOG + PESTAÑAS DEL PANEL
   ============================================================================ */
.event-card-visual,
.blog-card {
    position: relative;
}
.fav-filter-tabs {
    display: flex;
    gap: 6px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    background: #f8fafc;
    overflow-x: auto;
}
.fav-tab-btn {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: var(--text-dark);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 99px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.fav-tab-btn span {
    background: #e2e8f0;
    color: #334155;
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: 99px;
}
.fav-tab-btn.active {
    background: #be123c;
    border-color: #be123c;
    color: #ffffff;
}
.fav-tab-btn.active span {
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
}
.fav-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.fav-type-negocio {
    background: #e0f2fe;
    color: #0369a1;
}
.fav-type-evento {
    background: #fef3c7;
    color: #b45309;
}
.fav-type-blog {
    background: #ede9fe;
    color: #6d28d9;
}
