/* ============================================================
   OPINIONESCRIPTO - Main Stylesheet
   Theme: Dark crypto aesthetic with amber accents
   ============================================================ */

:root {
    --bg: #121212;
    --surface: #1a1a1a;
    --surface2: #212121;
    --surface3: #2a2a2a;
    --text: #f5f5f5;
    --text2: #a1a1aa;
    --text3: #71717a;
    --accent: #f59e0b;
    --accent2: #fbbf24;
    --accent-light: rgba(245,158,11,0.1);
    --border: #303030;
    --success: #10b981;
    --success-light: rgba(16,185,129,0.12);
    --warning: #f59e0b;
    --warning-light: rgba(245,158,11,0.12);
    --error: #ef4444;
    --error-light: rgba(239,68,68,0.12);
    --info: #3b82f6;
    --info-light: rgba(59,130,246,0.12);
    --purple: #8b5cf6;
    --purple-light: rgba(139,92,246,0.12);
    --dark: #121212;
    --dark2: #181818;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
    --font: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-mono: 'DM Mono', monospace;
    --transition: all 0.25s ease;

    --star-empty: var(--surface3);
    --star-filled: var(--warning);

    /* Brand identity */
    --logo-icon-bg: linear-gradient(135deg, #f59e0b, #d97706);
    --logo-icon-text: #fff;
    --logo-text-color: var(--accent);
    --accent-gradient: linear-gradient(135deg, var(--accent), var(--accent2));

    /* Navbar */
    --navbar-bg: rgba(18, 18, 18, 0.92);

    /* Hero */
    --hero-bg: linear-gradient(135deg, #121212 0%, #181818 50%, #121212 100%);
    --hero-bg-overlay: radial-gradient(circle at 30% 50%, rgba(245,158,11,0.08) 0%, transparent 60%);
    --hero-text: #fff;
    --hero-text-muted: #a1a1aa;
    --hero-h1-em: #fbbf24;
    --hero-badge-bg: rgba(245,158,11,0.15);
    --hero-badge-text: #fbbf24;
    --hero-badge-border: transparent;
    --hero-stat-number: #fbbf24;
    --hero-stat-label: #71717a;

    /* Buttons */
    --btn-primary-text: #000;
    --btn-base-hover-shadow: none;
    --btn-primary-hover-shadow: none;

    /* CTA dark section */
    --cta-dark-bg: linear-gradient(135deg, #121212, #181818);
    --cta-dark-h2: #fff;
    --cta-dark-p: #a1a1aa;

    /* Footer */
    --footer-bg: var(--dark);
    --footer-text: #a1a1aa;
    --footer-title: #fff;
    --footer-link: #a1a1aa;
    --footer-link-hover: var(--accent2);
    --footer-border: #2a2a2a;

    /* Cookie banner */
    --cookie-banner-bg: var(--surface);
    --cookie-banner-border: var(--border);
    --cookie-banner-text: var(--text2);

    /* Step number */
    --step-number-text: #000;

    /* Cards */
    --card-shadow: none;
    --card-hover-shadow: 0 4px 12px rgba(245, 158, 11, 0.06);
    --card-clickable-hover-shadow: 0 8px 30px rgba(245, 158, 11, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; }
::selection { background: var(--accent); color: var(--btn-primary-text); }
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); }

/* Skip link (a11y): oculto hasta recibir foco con Tab */
.skip-link {
    position: absolute;
    left: 8px;
    top: -48px;
    z-index: 2000;
    padding: 10px 16px;
    background: var(--accent);
    color: var(--btn-primary-text);
    font-weight: 700;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 8px;
    color: var(--btn-primary-text);
    outline: 2px solid #fff;
    outline-offset: 2px;
}
#content:focus { outline: none; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    background: var(--navbar-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
}
.navbar-inner {
    display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon {
    font-size: 26px; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
    background: var(--logo-icon-bg); border-radius: 10px; color: var(--logo-icon-text);
}
.logo-img { height: 44px; width: auto; max-width: 220px; object-fit: contain; }
.logo-text { font-family: var(--font-serif); font-weight: 700; font-size: 20px; color: var(--logo-text-color); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-user-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text2);
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 4px;
}
.nav-link {
    padding: 8px 14px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
    color: var(--text2); transition: var(--transition); text-decoration: none;
}
.nav-link:hover { background: var(--accent-light); color: var(--accent); }
.mobile-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text); }

/* Navbar search ----------------------------------------------------------- */
.navbar-search {
    flex: 1;
    max-width: 420px;
    margin: 0 24px;
    position: relative;
    display: flex;
    align-items: center;
}
.navbar-search-icon {
    position: absolute;
    left: 12px;
    font-size: 14px;
    color: var(--text3);
    pointer-events: none;
    line-height: 1;
}
.navbar-search-input {
    width: 100%;
    padding: 8px 14px 8px 36px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font: inherit;
    font-size: 13px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.navbar-search-input::placeholder { color: var(--text3); }
.navbar-search-input:focus {
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 0 0 3px var(--accent-light);
}
.navbar-search-results {
    display: none;
    position: absolute;
    top: calc(100% + 6px); left: 0; right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    max-height: 70vh;
    overflow-y: auto;
    z-index: 110;
}
.navbar-search-results.open { display: block; }
.navbar-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: background-color .12s ease;
}
.navbar-search-item:last-of-type { border-bottom: none; }
.navbar-search-item:hover,
.navbar-search-item.is-active { background: var(--accent-light); }
.navbar-search-item-logo {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: var(--surface2);
    overflow: hidden;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px; color: var(--text2);
}
.navbar-search-item-logo img {
    width: 100%; height: 100%;
    object-fit: contain; padding: 3px;
}
.navbar-search-item-fallback { text-transform: uppercase; }
.navbar-search-item-body {
    display: flex; flex-direction: column; gap: 2px;
    min-width: 0; flex: 1;
}
.navbar-search-item-name {
    font-size: 13px; font-weight: 600; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.navbar-search-item-badge {
    font-size: 11px; color: var(--success);
    margin-left: 4px;
}
.navbar-search-item-meta {
    font-size: 11px; color: var(--text2);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.navbar-search-item-cat { color: var(--text3); }
.navbar-search-empty {
    padding: 16px; text-align: center;
    font-size: 13px; color: var(--text3);
}
.navbar-search-seeall {
    display: block;
    padding: 10px 12px;
    text-align: center;
    font-size: 12px; font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    border-top: 1px solid var(--border);
    background: var(--surface2);
    transition: background-color .12s ease;
}
.navbar-search-seeall:hover { background: var(--accent-light); }

@media (max-width: 1024px) {
    .navbar-search { max-width: 280px; margin: 0 16px; }
}

/* Navbar dropdown (MAS) */
.nav-dropdown { position: relative; display: inline-flex; }
.nav-dropdown-toggle {
    display: inline-flex; align-items: center; gap: 4px;
    background: none; border: none; cursor: pointer; font-family: inherit;
}
.nav-dropdown-caret { font-size: 10px; opacity: 0.7; transition: transform var(--transition, .2s); }
.nav-dropdown:hover .nav-dropdown-caret,
.nav-dropdown.open .nav-dropdown-caret { transform: translateY(1px) rotate(180deg); }
.nav-dropdown-menu {
    display: none; position: absolute; top: calc(100% + 6px); right: 0;
    min-width: 200px; padding: 6px; z-index: 110;
    background: var(--surface, #1a1a1a); border: 1px solid var(--border);
    border-radius: var(--radius-sm); box-shadow: 0 12px 32px rgba(0,0,0,.45);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
    color: var(--text2); text-decoration: none; transition: var(--transition);
}
.nav-dropdown-item:hover { background: var(--accent-light); color: var(--accent); }
.nav-dropdown-icon { font-size: 16px; line-height: 1; flex-shrink: 0; }

@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .navbar-inner {
        flex-wrap: wrap;
        height: auto;
        padding-top: 10px;
        padding-bottom: 14px;
        row-gap: 10px;
    }
    .navbar-search {
        order: 3;
        flex: 0 0 100%;
        max-width: none;
        margin: 4px 0 0;
    }
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--surface); border-bottom: 1px solid var(--border);
        flex-direction: column; align-items: stretch; gap: 4px; padding: 12px;
        max-height: 70vh; overflow-y: auto;
    }
    .nav-links.open { display: flex; }
    /* Todos los elementos top-level del menú móvil ocupan todo el ancho */
    .nav-links > .nav-link,
    .nav-links > .btn {
        width: 100%; text-align: center; justify-content: center;
        padding: 12px 16px;
    }
    .nav-links > .nav-dropdown { width: 100%; flex-direction: column; }
    .nav-dropdown-toggle {
        width: 100%; justify-content: center; gap: 8px;
        padding: 12px 16px; text-align: center;
    }
    .nav-dropdown-menu {
        position: static; min-width: 0; box-shadow: none; border: none;
        background: transparent; padding: 4px 0;
    }
    .nav-dropdown-item { justify-content: center; padding: 10px 12px; }
    .nav-dropdown:hover .nav-dropdown-menu { display: none; }
    .nav-dropdown.open .nav-dropdown-menu { display: block; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px;
    border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
    cursor: pointer; transition: var(--transition); border: none; text-decoration: none;
    font-family: var(--font);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--btn-base-hover-shadow); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-primary { background: var(--accent); color: var(--btn-primary-text); }
.btn-primary:hover {
    background: var(--accent2);
    color: var(--btn-primary-text);
    box-shadow: var(--btn-primary-hover-shadow);
}
.btn-outline { background: none; border: 1px solid var(--border); color: var(--text2); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.btn-dark { background: var(--surface2); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; transition: var(--transition); box-shadow: var(--card-shadow);
}
.card:hover { box-shadow: var(--card-hover-shadow); }
.card-clickable:hover { transform: translateY(-3px); box-shadow: var(--card-clickable-hover-shadow); cursor: pointer; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background: var(--hero-bg);
    padding: 80px 24px; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: var(--hero-bg-overlay);
}
.hero-content { position: relative; max-width: 700px; margin: 0 auto; }
.hero-badge {
    display: inline-block;
    background: var(--hero-badge-bg);
    color: var(--hero-badge-text);
    border: 1px solid var(--hero-badge-border);
    padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: 700;
    letter-spacing: 1.5px; margin-bottom: 20px; text-transform: uppercase;
}
.hero h1 {
    font-family: var(--font-serif); font-size: clamp(32px, 5vw, 52px);
    color: var(--hero-text); line-height: 1.15; margin-bottom: 20px;
}
.hero h1 em { color: var(--hero-h1-em); font-style: italic; }
.hero p { color: var(--hero-text-muted); font-size: 17px; line-height: 1.6; margin-bottom: 32px; }
.hero-search {
    display: flex; max-width: 500px; margin: 0 auto;
    background: rgba(255,255,255,0.06); border-radius: var(--radius);
    overflow: hidden; border: 1px solid rgba(255,255,255,0.08);
}
.hero-search input {
    flex: 1; padding: 14px 18px; background: transparent; border: none;
    color: var(--hero-text); font-size: 15px; outline: none; font-family: var(--font);
}
.hero-search input::placeholder { color: var(--hero-stat-label); }
.hero-search button { background: var(--accent); color: var(--btn-primary-text); border: none; padding: 14px 24px; cursor: pointer; font-weight: 600; }
.hero-stats { display: flex; justify-content: center; gap: 48px; margin-top: 40px; }
.hero-stat-number { color: var(--hero-stat-number); font-weight: 800; font-size: 26px; font-family: var(--font-mono); }
.hero-stat-label { color: var(--hero-stat-label); font-size: 12px; margin-top: 2px; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 60px 0; }
.section-alt { background: var(--surface2); }
.section-label {
    color: var(--accent); font-size: 12px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
}
.section-title {
    font-family: var(--font-serif); font-size: 30px; margin-top: 4px; margin-bottom: 32px;
}
.section-title em { color: var(--accent); font-style: italic; }

/* ============================================================
   GRID
   ============================================================ */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
/* Listados de empresas: auto-fill mantiene tamaño constante de tarjeta aunque
   haya pocos resultados (no estiramos una sola card a todo el ancho). */
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
/* Pricing y KPIs del dashboard: auto-fit colapsa tracks vacíos para que las
   tarjetas llenen el ancho del contenedor sin dejar hueco a la derecha. */
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.grid-6 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

/* ============================================================
   SCORE & RATINGS
   ============================================================ */
.score-badge {
    display: inline-block; padding: 4px 10px; border-radius: var(--radius-sm);
    font-weight: 800; font-family: var(--font-mono); font-size: 16px; color: #fff;
}
.score-badge.lg { font-size: 28px; padding: 10px 16px; border-radius: var(--radius); }
.score-excellent { background: var(--success); }
.score-good { background: var(--info); }
.score-average { background: var(--warning); color: #000; }
.score-poor { background: var(--error); }
.score-new { background: var(--surface2); color: var(--text2); font-family: var(--font-base); font-weight: 700; font-size: 12px; }

.stars { display: inline-flex; gap: 2px; }
.stars .star { color: var(--star-empty); font-size: 16px; position: relative; }
.stars .star.filled { color: var(--star-filled); }
.stars .star.half::before {
    content: "★";
    position: absolute;
    left: 0; top: 0;
    width: 50%;
    overflow: hidden;
    color: var(--star-filled);
    pointer-events: none;
}
.stars.interactive .star { cursor: pointer; transition: color 0.15s; }

.rating-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.rating-bar-label { font-size: 13px; color: var(--text2); width: 75px; }
.rating-bar-track { flex: 1; height: 8px; background: var(--surface3); border-radius: 4px; overflow: hidden; }
.rating-bar-fill { height: 100%; background: var(--warning); border-radius: 4px; transition: width 0.6s; }
.rating-bar-pct { font-size: 12px; color: var(--text3); width: 35px; text-align: right; }

/* Histograma clickeable: cada barra es un enlace para filtrar las reseñas */
.rating-bar-link {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 8px; margin: 0 -8px 2px;
    border-radius: 8px;
    cursor: pointer; text-decoration: none;
    transition: background-color .15s ease;
}
.rating-bar-link:hover { background: var(--surface2); }
.rating-bar-link:hover .rating-bar-track { background: var(--surface3); }
.rating-bar-link.is-active {
    background: var(--surface2);
    box-shadow: inset 0 0 0 1px var(--accent);
}
.rating-bar-link.is-active .rating-bar-label { color: var(--text); font-weight: 600; }
.rating-bar-link.is-active .rating-bar-pct { color: var(--text); font-weight: 600; }

.rating-distribution-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 6px;
}
.rating-clear {
    font-size: 12px; color: var(--accent); text-decoration: none;
    padding: 4px 8px; border-radius: 6px;
}
.rating-clear:hover { background: var(--surface2); }
.rating-hint { margin-bottom: 12px; }

.reviews-heading {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
    font-size: 18px; font-weight: 700;
    margin-bottom: 16px; scroll-margin-top: 80px;
}
.reviews-clear-inline {
    font-size: 12px; font-weight: 500; color: var(--accent); text-decoration: none;
    padding: 4px 10px; border-radius: 6px;
    background: var(--surface2);
}
.reviews-clear-inline:hover { background: var(--surface3); }

#reviews-list { transition: opacity .15s ease; }

/* ============================================================
   BADGES & TAGS
   ============================================================ */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700;
}
.badge-verified { background: var(--success-light); color: var(--success); }
.badge-premium { background: var(--purple-light); color: var(--purple); }
.badge-plus { background: var(--info-light); color: var(--info); }
.badge-enterprise { background: var(--warning-light); color: var(--warning); }
.badge-new { background: var(--warning-light); color: var(--warning); }
.badge-pending { background: var(--warning-light); color: var(--warning); }
.badge-ad { background: var(--surface2); color: var(--text3); font-size: 9px; padding: 2px 6px; }

/* ============================================================
   BUSINESS LISTING — layout sidebar + filtros colapsables
   ============================================================ */
.list-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: start;
}
#filter-form { position: sticky; top: 70px; }

/* `<details>` semántico para los filtros. En desktop: summary oculto,
    panel siempre abierto. En móvil: summary visible y panel colapsable. */
.filters-panel { width: 100%; }
.filters-summary { display: none; }
.filters-title-desktop { display: block; }

@media (max-width: 768px) {
    .list-layout { grid-template-columns: 1fr; gap: 16px; }
    #filter-form { position: static; }
    .filters-summary {
        display: flex; align-items: center; justify-content: space-between;
        padding: 12px 16px; cursor: pointer; user-select: none;
        background: var(--surface); border: 1px solid var(--border);
        border-radius: var(--radius-sm); font-weight: 700; font-size: 14px;
        list-style: none;
    }
    .filters-summary::-webkit-details-marker { display: none; }
    .filters-summary::after {
        content: '▾'; font-size: 12px; transition: transform .2s;
    }
    details[open] > .filters-summary::after { transform: rotate(180deg); }
    .filters-body { margin-top: 8px; }
    .filters-title-desktop { display: none; }
}

/* ============================================================
   BUSINESS CARD
   ============================================================ */
.business-card { position: relative; overflow: hidden; }
.business-card .plan-badge {
    position: absolute; top: 12px; right: 12px;
}
.business-header { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.business-logo {
    width: 48px; height: 48px; border-radius: 10px; background: var(--surface2);
    display: flex; align-items: center; justify-content: center; font-size: 24px;
    overflow: hidden; flex-shrink: 0;
}
.business-logo img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 4px;
}
.business-logo.biz-header-logo img { padding: 6px; }
.business-logo.business-logo-sm img { padding: 3px; }
.business-name { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 6px; }
.business-category { color: var(--text2); font-size: 12px; }
.business-rating { display: flex; align-items: center; gap: 10px; }
.business-desc { color: var(--text2); font-size: 13px; line-height: 1.5; margin: 10px 0; }

/* Cabecera de la página de detalle de empresa (/empresa/<slug>/) */
.biz-header {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    margin-top: 16px;
    margin-bottom: 24px;
}
.biz-header-logo-wrap { position: relative; flex-shrink: 0; }
.biz-header-logo { width: 120px; height: 120px; font-size: 56px; border-radius: 16px; }
.biz-header-info { flex: 1 1 220px; min-width: 0; }
.biz-header-title-row {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.biz-header-title { font-size: 28px; line-height: 1.2; word-break: break-word; }
.biz-header-phone { margin-top: 12px; }
.biz-header-cta { margin-top: 14px; }
.biz-header-rating { text-align: center; flex-shrink: 0; }

@media (max-width: 640px) {
    .biz-header { gap: 14px; }
    .biz-header-logo { width: 88px; height: 88px; font-size: 38px; border-radius: 14px; }
    .biz-header-info { flex: 1 1 100%; min-width: 0; }
    .biz-header-title { font-size: 22px; }
    .biz-header-rating {
        order: 3;
        width: 100%;
        background: var(--surface2);
        border-radius: 12px;
        padding: 12px;
    }
    .biz-header-cta .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   REVIEW CARD
   ============================================================ */
.review-card { margin-bottom: 14px; }
.review-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.review-author { display: flex; gap: 12px; align-items: center; }
.review-avatar {
    width: 40px; height: 40px; border-radius: 10px; display: flex;
    align-items: center; justify-content: center; font-weight: 800; font-size: 16px;
}
.review-author-name { font-weight: 600; font-size: 14px; }
.review-date { color: var(--text2); font-size: 12px; }
.review-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.review-content { color: var(--text2); font-size: 13px; line-height: 1.6; }
.review-actions { display: flex; gap: 16px; margin-top: 12px; }
.review-action {
    background: none; border: none; color: var(--text2); cursor: pointer;
    font-size: 12px; display: flex; align-items: center; gap: 4px;
    font-family: var(--font); transition: color 0.2s;
}
.review-action:hover { color: var(--accent); }
.review-reply {
    margin-top: 14px; background: var(--surface2); border-radius: 10px;
    padding: 16px; border-left: 3px solid var(--accent);
}
.review-reply-author { font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.review-reply-content { font-size: 13px; color: var(--text2); line-height: 1.5; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text2); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); font-size: 14px; outline: none;
    font-family: var(--font); transition: border-color 0.2s; background: var(--surface2); color: var(--text);
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); }
.form-textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-help { font-size: 11px; color: var(--text3); margin-top: 4px; }
.form-error { color: var(--error); font-size: 12px; margin-top: 4px; }

/* ============================================================
   ALERTS
   ============================================================ */
.messages-container { max-width: 1200px; margin: 0 auto; padding: 12px 24px; }
.alert {
    padding: 12px 20px; border-radius: var(--radius-sm); margin-bottom: 8px;
    font-size: 14px; display: flex; justify-content: space-between; align-items: center; cursor: pointer;
}
.alert-success { background: var(--success-light); color: var(--success); }
.alert-warning { background: var(--warning-light); color: var(--warning); }
.alert-error, .alert-danger { background: var(--error-light); color: var(--error); }
.alert-info { background: var(--info-light); color: var(--info); }
.alert-close { font-size: 18px; opacity: 0.6; }

/* ============================================================
   PLANS / PRICING
   ============================================================ */
.plan-card { position: relative; text-align: center; display: flex; flex-direction: column; }
.plan-card.popular { border: 2px solid var(--accent); }
.plan-popular-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: var(--btn-primary-text); font-size: 11px; padding: 4px 14px;
    border-radius: 20px; font-weight: 700; white-space: nowrap;
}
.plan-icon { font-size: 36px; margin-bottom: 12px; }
.plan-name { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.plan-price { text-align: center; }
.plan-price .amount { font-size: 36px; font-weight: 900; font-family: var(--font-mono); }
.plan-price .period { color: var(--text2); font-size: 14px; }
.plan-features { list-style: none; margin: 20px 0 24px; padding: 0; text-align: left; }
.plan-features li {
    font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--surface3);
    display: flex; align-items: flex-start; gap: 8px;
}
.plan-features li .check { color: var(--success); font-size: 12px; flex-shrink: 0; margin-top: 2px; }
.plan-features li.highlighted { font-weight: 700; color: var(--accent); }
/* Empuja el botón al fondo de la tarjeta para alinear los CTA en planes con
   distinto número de features. */
.plan-card .btn-block { margin-top: auto; }

/* Toggle Mensual / Anual encima de la grilla de pricing
   ----------------------------------------------------------------- */
.pricing-toggle-wrap { display: flex; justify-content: center; margin-bottom: 28px; }
.pricing-toggle {
    display: inline-flex; gap: 4px; padding: 4px;
    background: var(--surface2); border: 1px solid var(--surface3);
    border-radius: 999px;
}
.pt-btn {
    padding: 8px 20px; border: 0; background: transparent; cursor: pointer;
    font-weight: 600; font-size: 13px; border-radius: 999px;
    color: var(--text2); transition: background 0.18s ease, color 0.18s ease;
    font-family: inherit; display: inline-flex; align-items: center; gap: 6px;
}
.pt-btn:hover { color: var(--text); }
.pt-btn.active { background: var(--accent); color: var(--btn-primary-text); }
.pt-discount {
    font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 999px;
    background: rgba(0, 0, 0, 0.18);
}
.pt-btn:not(.active) .pt-discount { background: var(--success); color: #fff; }

/* Visibilidad de los bloques de precio según el ciclo elegido */
.plan-card .price-monthly,
.plan-card .price-yearly { display: none; }
[data-pricing-root][data-cycle='monthly'] .plan-card .price-monthly { display: block; }
[data-pricing-root][data-cycle='yearly']  .plan-card .price-yearly  { display: block; }
.plan-card .price-static { display: block; }

.plan-price .price-strike {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-bottom: 4px; font-size: 13px;
}
.plan-price .price-strike s { color: var(--text2); }
.plan-price .badge-discount {
    background: var(--success); color: #fff; font-size: 11px; font-weight: 700;
    padding: 2px 8px; border-radius: 999px;
}
.plan-price .price-billing-note {
    font-size: 11px; color: var(--text2); margin-top: 4px;
}
.plan-price .price-custom {
    font-size: 22px; font-weight: 700; color: var(--text2);
}

/* ============================================================
   DASHBOARD
   ============================================================ */
.dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.dash-tabs { display: flex; gap: 6px; margin-bottom: 24px; overflow-x: auto; padding-bottom: 4px; }
.dash-tab {
    display: flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: var(--radius-sm);
    border: none; cursor: pointer; font-size: 13px; font-weight: 600;
    white-space: nowrap; transition: var(--transition); font-family: var(--font);
    background: var(--surface); color: var(--text2); text-decoration: none;
}
.dash-tab:hover { color: var(--accent); }
.dash-tab.active { background: var(--accent); color: var(--btn-primary-text); }

.stat-card { text-align: left; }
.stat-icon { font-size: 24px; margin-bottom: 4px; }
.stat-value { font-size: 28px; font-weight: 900; font-family: var(--font-mono); }
.stat-label { font-size: 13px; color: var(--text2); }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-dark {
    background: var(--cta-dark-bg);
    border-radius: 20px; padding: 50px 30px; text-align: center;
    border: 1px solid var(--border);
}
.cta-dark h2 { font-family: var(--font-serif); font-size: 28px; color: var(--cta-dark-h2); margin-bottom: 12px; }
.cta-dark p { color: var(--cta-dark-p); margin-bottom: 28px; font-size: 15px; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.layout-detail { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.sidebar { position: sticky; top: 80px; }
@media (max-width: 900px) { .layout-detail { grid-template-columns: 1fr; } .sidebar { position: static; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--footer-bg); color: var(--footer-text); padding: 50px 0 30px; }
.footer-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px; margin-bottom: 30px;
}
.footer-desc { font-size: 13px; line-height: 1.6; margin-top: 12px; }
.footer-title { color: var(--footer-title); font-size: 13px; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.footer a { display: block; color: var(--footer-link); font-size: 13px; margin-bottom: 8px; transition: color 0.2s; text-decoration: none; }
.footer a:hover { color: var(--footer-link-hover); }
.footer-bottom {
    border-top: 1px solid var(--footer-border); padding-top: 20px;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12px;
}
.footer-links { display: flex; gap: 16px; }
.footer-links a { display: inline; margin: 0; }

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-stats { gap: 24px; }
    .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.5s ease forwards; }

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.text-muted { color: var(--text2); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-mono { font-family: var(--font-mono); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; }
.flex { display: flex; } .flex-between { justify-content: space-between; } .flex-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.inline-flex { display: inline-flex; }
.font-serif { font-family: var(--font-serif); }
.font-bold { font-weight: 700; }

/* ============================================================
   ADMIN BUTTON
   ============================================================ */
.btn-accent-gradient {
    background: var(--accent-gradient);
    color: var(--btn-primary-text);
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--cookie-banner-bg); border-top: 1px solid var(--cookie-banner-border);
    padding: 16px 24px; z-index: 9999;
}
.cookie-banner-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
}
.cookie-banner-text {
    font-size: 13px; color: var(--cookie-banner-text); flex: 1; min-width: 200px; margin: 0;
}
.cookie-banner-actions { display: flex; gap: 8px; }

/* ============================================================
   REVIEW CARDS
   ============================================================ */
.badge-xs { font-size: 10px; }
.stars-sm .star { font-size: 14px; }
.btn-translate {
    background: none; border: 1px solid var(--border); border-radius: 6px;
    padding: 4px 10px; font-size: 11px; color: var(--text2);
    cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
}
.detail-ratings-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px;
}
.detail-rating-cell {
    background: var(--surface2); padding: 6px; border-radius: 6px;
    text-align: center; font-size: 11px;
}

/* ============================================================
   AD SPACE
   ============================================================ */
.ad-space { margin: 16px 0; text-align: center; }
.ad-label {
    font-size: 9px; color: var(--text3); text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 4px;
}
.ad-banner-img { max-width: 100%; border-radius: var(--radius-sm); }
.ad-promo-card {
    display: block; background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; padding: 14px; text-decoration: none; color: inherit; text-align: left;
}
.ad-promo-title { font-weight: 700; font-size: 14px; }
.ad-promo-desc { font-size: 12px; color: var(--text2); }

/* ============================================================
   LOGO DISCLAIMER
   ============================================================ */
.logo-info-wrap {
    position: absolute; bottom: -4px; right: -4px;
    cursor: help; outline: none;
}
.logo-info-btn {
    width: 18px; height: 18px;
    background: #1f2937; color: #fff;
    border: 2px solid var(--bg, #fff); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; font-style: italic;
    font-family: 'Times New Roman', Georgia, serif;
    line-height: 1; user-select: none;
    transition: background .15s ease, transform .15s ease;
}
.logo-info-wrap:hover .logo-info-btn,
.logo-info-wrap:focus .logo-info-btn,
.logo-info-wrap:focus-within .logo-info-btn {
    background: #111827; transform: scale(1.05);
}
.logo-disclaimer {
    visibility: hidden; opacity: 0;
    position: absolute; top: calc(100% + 10px);
    left: 50%; transform: translate(-50%, 4px);
    background: rgba(17, 24, 39, 0.96);
    color: #fff; border-radius: 8px;
    padding: 12px 14px; font-size: 12px; font-weight: 600;
    width: 260px; max-width: 80vw; line-height: 1.5;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 30; pointer-events: none;
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}
.logo-disclaimer::before {
    content: ""; position: absolute; top: -6px; left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(17, 24, 39, 0.96);
}
.logo-info-wrap:hover .logo-disclaimer,
.logo-info-wrap:focus .logo-disclaimer,
.logo-info-wrap:focus-within .logo-disclaimer {
    visibility: visible; opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 480px) {
    .logo-disclaimer { left: 0; transform: translate(0, 4px); }
    .logo-disclaimer::before { left: 12px; transform: none; }
    .logo-info-wrap:hover .logo-disclaimer,
    .logo-info-wrap:focus .logo-disclaimer,
    .logo-info-wrap:focus-within .logo-disclaimer {
        transform: translate(0, 0);
    }
}

/* ============================================================
   CLAIM BUSINESS CTA (sidebar)
   Uses brand accent (same color as .btn-primary) with white CTA
   ============================================================ */
.claim-cta {
    background: var(--accent);
    color: #fff;
    text-align: center;
    padding: 22px 18px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}
.claim-cta-title {
    font-size: 16px; font-weight: 700; color: #fff;
    margin-bottom: 8px; line-height: 1.3;
}
.claim-cta-desc {
    font-size: 13px; color: rgba(255, 255, 255, 0.9);
    line-height: 1.5; margin-bottom: 16px;
}
.claim-cta-btn {
    display: inline-block;
    background: #fff; color: var(--accent);
    padding: 10px 24px; border-radius: 8px;
    font-weight: 700; font-size: 13px;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, color .15s ease;
}
.claim-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    color: var(--accent);
}

/* ============================================================
   BUSINESS CARDS
   ============================================================ */
.card-clickable { text-decoration: none; color: inherit; cursor: pointer; }
.flex-1 { flex: 1; }
.verified-check { color: var(--success); font-size: 14px; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
    font-size: 13px; color: var(--text3);
    display: flex; align-items: center; gap: 6px;
}
.breadcrumb a { color: var(--text3); }
.breadcrumb-current { color: var(--text); }

/* ============================================================
   STARS SIZES
   ============================================================ */
.stars-center { justify-content: center; }
.star-md { font-size: 18px; }
.stars-xs .star { font-size: 10px; }

/* ============================================================
   SIDEBAR BUSINESS LINKS
   ============================================================ */
.sidebar-biz-link {
    display: flex; gap: 10px; align-items: center; padding: 10px 0;
    border-bottom: 1px solid var(--border); text-decoration: none; color: inherit;
}
.sidebar-biz-name { font-weight: 600; font-size: 13px; }
.business-logo-sm { width: 36px; height: 36px; font-size: 16px; border-radius: 8px; }

/* ============================================================
   HOME
   ============================================================ */
.cat-icon { font-size: 32px; margin-bottom: 10px; }
.cat-name { font-weight: 600; font-size: 14px; }
.cta-emoji { font-size: 40px; margin-bottom: 12px; }
.btn-glass {
    background: rgba(255,255,255,0.1); color: var(--text);
    border: 1px solid rgba(255,255,255,0.2);
}
.btn-glass:hover { background: rgba(255,255,255,0.18); }

/* ============================================================
   STEP NUMBERS (transparency, how-it-works)
   ============================================================ */
.step-number {
    width: 28px; height: 28px; border-radius: 8px;
    background: var(--accent); color: var(--step-number-text);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 13px; flex-shrink: 0;
}

/* ============================================================
   ALERT / STATUS BADGES
   ============================================================ */
.alert-error-box {
    display: none; background: var(--error-light);
    border: 1px solid rgba(239,68,68,0.2); border-radius: var(--radius-sm);
    padding: 10px; margin-bottom: 14px; font-size: 13px; color: var(--error);
}
.badge-success-light {
    display: inline-block; background: var(--success-light); color: var(--success);
    font-size: 11px; padding: 4px 8px; border-radius: 4px; margin-top: 6px;
}
.badge-warning-light {
    display: inline-block; background: var(--warning-light); color: var(--warning);
    font-size: 11px; padding: 4px 8px; border-radius: 4px; margin-top: 6px;
}
.badge-danger-light {
    display: inline-block; background: var(--error-light); color: var(--error);
    font-size: 11px; padding: 4px 8px; border-radius: 4px; margin-top: 6px;
}
.btn-xs { padding: 6px 12px; font-size: 12px; }
.btn-danger-light {
    background: var(--error-light); color: var(--error);
    border: none; border-radius: 4px; cursor: pointer; font-weight: 500;
}

/* ============================================================
   STAR INPUT (reviews/submit)
   ============================================================ */
.star-btn {
    font-size: 40px; color: var(--text3); transition: all 0.15s; cursor: pointer;
}

/* ============================================================
   NEWSLETTER CTA CARD (blog)
   ============================================================ */
.cta-newsletter-card {
    text-align: center; padding: 30px;
    background: linear-gradient(135deg, var(--accent-light), rgba(217,119,6,0.05));
    border: 1px solid rgba(245,158,11,0.2);
}

/* ============================================================
   STAR INPUT (active state)
   ============================================================ */
.star-btn-active { color: var(--accent); }

/* ============================================================
   FEATURE BOX (pricing glass cards)
   ============================================================ */
.feature-box-glass {
    background: rgba(255,255,255,0.05); border-radius: var(--radius); padding: 18px;
}
.feature-box-title {
    color: var(--text); font-weight: 700; font-size: 14px; margin-top: 8px;
}
.feature-box-desc {
    color: var(--text3); font-size: 12px; margin-top: 4px;
}

/* ============================================================
   FILTER PILLS & RISK CHIPS
   ============================================================ */
.filter-pill-danger {
    padding: 5px 12px; border-radius: 6px; font-size: 12px;
    border: 1px solid var(--error-light); color: var(--text3); text-decoration: none;
}
.filter-pill-danger.active { color: var(--error); }
.badge-danger-overlay {
    position: absolute; top: 12px; left: 12px;
    background: var(--error-light); color: var(--error);
    font-size: 10px; padding: 2px 8px; border-radius: 4px; font-weight: 700;
}
.risk-chip { font-size: 11px; padding: 2px 8px; border-radius: 4px; }
.risk-low { background: var(--success-light); color: var(--success); }
.risk-medium { background: var(--warning-light); color: var(--warning); }
.risk-high { background: var(--error-light); color: var(--error); }

/* ============================================================
   ALERT INFO BOX
   ============================================================ */
.alert-info-box {
    background: var(--info-light); border: 1px solid rgba(59,130,246,0.2);
    border-radius: var(--radius-sm); padding: 12px; margin-bottom: 16px;
    font-size: 13px; color: var(--info);
}

/* Descripción empresa: ignorar estilos pegados desde Word/Docs */
.business-description-html span,
.business-description-html font,
.business-description-html h1,
.business-description-html h2,
.business-description-html h3,
.business-description-html h4,
.business-description-html h5,
.business-description-html h6 {
    font-family: inherit !important;
    font-size: inherit !important;
    color: inherit !important;
    line-height: inherit !important;
    font-weight: inherit;
}
.business-description-html strong,
.business-description-html b { font-weight: 700; }
.business-description-html em,
.business-description-html i { font-style: italic; }
.business-description-html u { text-decoration: underline; }
