/* ============================================================
   THEME — Directorio Multitenant
   Sistema de diseño editorial (canvas cálido + acento por tenant)

   Se carga DESPUÉS de css/styles.css para poder reescribir sus
   utilidades marcadas con !important (misma especificidad, gana
   la última regla de la cascada).

   El acento (--accent) lo inyecta branding_css_variables() a
   partir de sites.primary_color. Aquí sólo hay fallbacks.
   ============================================================ */

:root {
    /* Superficies */
    --canvas:        #F7F5F0;
    --surface:       #FFFFFF;
    --placeholder:   #E8E5DD;
    --divider:       #F0EDE6;
    --line:          #E2DFD5;

    /* Tinta */
    --ink:           #16150F;
    --muted:         #56534A;
    --subtle:        #8C887C;

    /* Banda oscura */
    --dark:          #16150F;
    --on-dark:       #F7F5F0;
    --on-dark-muted: #B4AFA2;
    --on-dark-link:  #DCD8CE;
    --dark-line:     #34322A;

    /* Acento (sobrescrito por site) */
    --accent:        var(--color-primary, #C8412A);
    --accent-soft:   color-mix(in srgb, var(--accent) 8%, #FFFFFF);
    --accent-line:   color-mix(in srgb, var(--accent) 28%, var(--line));

    /* Geometría */
    --r-xs: 2px;
    --r-sm: 3px;
    --r-md: 4px;
    --r-pill: 99px;

    --container: 1240px;
    --gutter: 28px;
    --header-h: 74px;
}

/* ============================================================
   BASE
   ============================================================ */
html { -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Archivo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    background: var(--canvas) !important;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    letter-spacing: -.02em;
    color: var(--ink);
}

a { color: inherit; }

::selection { background: var(--accent); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--divider); }
::-webkit-scrollbar-thumb { background: var(--line) !important; border-radius: 0 !important; }
::-webkit-scrollbar-thumb:hover { background: var(--subtle) !important; }

/* ============================================================
   LAYOUT
   ============================================================ */
.dc-wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.dc-section { padding: 56px 0; }
.dc-section--tight { padding: 36px 0; }

.dc-surface { background: var(--surface); }
.dc-canvas  { background: var(--canvas); }

.dc-rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Cabecera de sección: eyebrow + título + acción */
.dc-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}
.dc-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--subtle);
    margin: 0 0 8px;
}
.dc-h2 {
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -.03em;
    font-weight: 700;
    margin: 0;
}
.dc-h2 em { font-style: italic; font-weight: 400; color: var(--accent); }
.dc-sub { color: var(--muted); font-size: 14px; margin: 6px 0 0; }

/* ============================================================
   HEADER
   ============================================================ */
.dc-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    background: var(--canvas);
    border-bottom: 1px solid var(--line);
}
.dc-header__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.dc-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.dc-brand__mark {
    width: 30px; height: 30px;
    background: var(--accent);
    border-radius: var(--r-xs);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 13px; font-weight: 700;
    flex-shrink: 0;
}
.dc-brand__name { font-size: 15px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.dc-brand__host { font-size: 10px; color: var(--subtle); letter-spacing: .06em; text-transform: uppercase; }

.dc-nav { display: flex; align-items: center; gap: 26px; }
.dc-nav a {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
    transition: color .15s, border-color .15s;
}
.dc-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.dc-nav a.is-active { color: var(--ink); border-bottom-color: var(--accent); }

.dc-header__actions { display: flex; align-items: center; gap: 14px; }

.dc-burger {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--r-xs);
    width: 34px; height: 34px;
    color: var(--ink);
    cursor: pointer;
}

.dc-mobilenav {
    display: none;
    background: var(--canvas);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
}
.dc-mobilenav.is-open { display: block; }
.dc-mobilenav a {
    display: block;
    padding: 11px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid var(--divider);
}
.dc-mobilenav a:last-child { border-bottom: 0; }

/* ============================================================
   BOTONES
   ============================================================ */
.dc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--r-sm);
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.dc-btn--dark   { background: var(--ink); color: var(--canvas); }
.dc-btn--dark:hover { background: #000; color: #fff; }
.dc-btn--accent { background: var(--accent); color: #fff; }
.dc-btn--accent:hover { filter: brightness(.92); }
.dc-btn--ghost  { background: transparent; color: var(--ink); border-color: var(--line); }
.dc-btn--ghost:hover { border-color: var(--ink); }
.dc-btn--link   { background: none; padding: 0; color: var(--muted); }
.dc-btn--link:hover { color: var(--accent); }
.dc-btn--block  { width: 100%; }
.dc-btn--lg     { padding: 13px 24px; font-size: 14px; }

/* ============================================================
   FORMULARIOS
   ============================================================ */
.dc-field { display: block; margin-bottom: 16px; }
.dc-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--subtle);
    margin-bottom: 6px;
}
.dc-input, .dc-select, .dc-textarea {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 11px 13px;
    font-family: inherit;
    font-size: 14px;
    color: var(--ink);
    outline: none;
    transition: border-color .15s;
}
.dc-input:focus, .dc-select:focus, .dc-textarea:focus { border-color: var(--accent); }
.dc-textarea { min-height: 140px; resize: vertical; }
.dc-input::placeholder, .dc-textarea::placeholder { color: var(--subtle); }

/* Campos de formulario */
.dc-field { margin-bottom: 16px; }
.dc-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--subtle);
    margin-bottom: 7px;
}
.dc-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13px; color: var(--muted); }
.dc-check input { margin-top: 2px; accent-color: var(--accent); width: 16px; height: 16px; flex: 0 0 auto; }

/* Avisos */
.dc-alert {
    border: 1px solid var(--line);
    border-left: 3px solid var(--ink);
    border-radius: var(--r-sm);
    background: var(--surface);
    padding: 14px 16px;
    font-size: 14px;
    color: var(--ink);
    margin-bottom: 22px;
}
.dc-alert--ok  { border-left-color: #1F6F6B; }
.dc-alert--err { border-left-color: var(--accent); }

/* Layout formulario + aparte */
.dc-split { display: grid; grid-template-columns: 1.25fr .75fr; gap: 30px; align-items: start; }
@media (max-width: 860px) { .dc-split { grid-template-columns: 1fr; gap: 22px; } }

/* Barra de búsqueda del hero */
.dc-searchbar {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    max-width: 620px;
}
.dc-searchbar input, .dc-searchbar select {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: none;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 14px;
    color: var(--ink);
    outline: none;
}
.dc-searchbar select { flex: 0 0 auto; border-left: 1px solid var(--line); max-width: 190px; }
.dc-searchbar button {
    flex: 0 0 auto;
    border: 0;
    background: var(--ink);
    color: var(--canvas);
    padding: 0 22px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.dc-searchbar button:hover { background: #000; }

/* Barra de filtros (buscador avanzado) */
.dc-filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 10px;
    align-items: stretch;
}
.dc-filters .dc-btn { justify-content: center; }
@media (max-width: 860px) {
    .dc-filters { grid-template-columns: 1fr; }
}

/* ============================================================
   HERO
   ============================================================ */
.dc-hero { padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.dc-hero__h1 {
    font-size: 58px;
    line-height: 1.02;
    letter-spacing: -.035em;
    font-weight: 800;
    margin: 0 0 16px;
}
.dc-hero__h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
.dc-hero__lead {
    font-size: 16px;
    line-height: 1.6;
    color: var(--muted);
    max-width: 620px;
    margin: 0 0 28px;
}

/* Página interior: cabecera compacta */
.dc-pagehead { padding: 40px 0 32px; border-bottom: 1px solid var(--line); }
.dc-pagehead__h1 {
    font-size: 40px;
    line-height: 1.06;
    letter-spacing: -.032em;
    font-weight: 800;
    margin: 0 0 10px;
}
.dc-pagehead__h1 em { font-style: italic; font-weight: 400; color: var(--accent); }

/* ============================================================
   STATS
   ============================================================ */
.dc-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.dc-stats--3 { grid-template-columns: repeat(3, 1fr); }
.dc-stat { padding: 20px 22px; border-left: 1px solid var(--line); }
.dc-stat:first-child { border-left: 0; padding-left: 0; }
.dc-stat__n { font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.dc-stat__l {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--subtle);
    margin-top: 7px;
}

/* ============================================================
   TARJETAS
   ============================================================ */
.dc-grid { display: grid; gap: 14px; }
.dc-grid--2 { grid-template-columns: repeat(2, 1fr); }
.dc-grid--3 { grid-template-columns: repeat(3, 1fr); }
.dc-grid--4 { grid-template-columns: repeat(4, 1fr); }
.dc-grid--5 { grid-template-columns: repeat(5, 1fr); }

.dc-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 17px;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, transform .15s;
}
.dc-card:hover { border-color: var(--accent); }
.dc-card__key, .dc-card__ico {
    width: 30px; height: 30px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: var(--r-xs);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
/* El icono del sector va al tamaño óptico del cuadro, no al de la letra */
.dc-card__ico { font-size: 14px; }
.dc-card:hover .dc-card__ico { background: var(--accent); color: #fff; }
.dc-card__t { font-size: 15px; font-weight: 600; letter-spacing: -.015em; margin: 0 0 4px; }
.dc-card__m { font-size: 12px; color: var(--subtle); margin: 0; }
.dc-card__n { font-size: 12px; color: var(--muted); font-weight: 600; }

/* Fila de listado (empresa, ciudad, provincia) */
.dc-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--divider);
    text-decoration: none;
    color: inherit;
}
.dc-row:last-child { border-bottom: 0; }
.dc-row__thumb {
    width: 74px; height: 74px;
    flex: 0 0 74px;
    background: var(--placeholder);
    border-radius: var(--r-sm);
    object-fit: cover;
    display: flex; align-items: center; justify-content: center;
    color: var(--subtle);
}
.dc-row__body { flex: 1 1 auto; min-width: 0; }
.dc-row__t { font-size: 16px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 3px; }
.dc-row:hover .dc-row__t { color: var(--accent); }
.dc-row__m { font-size: 13px; color: var(--muted); margin: 0; }
.dc-row__side { flex: 0 0 auto; text-align: right; }

/* Etiquetas / píldoras */
.dc-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    background: var(--surface);
}
.dc-tag:hover { border-color: var(--ink); color: var(--ink); }
.dc-tag--accent { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.dc-tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* Valoración */
.dc-rating { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.dc-rating i { color: var(--accent); font-size: 11px; }

/* ============================================================
   FICHA DE EMPRESA
   ============================================================ */
.dc-biz { display: grid; grid-template-columns: 400px 1fr; gap: 34px; align-items: start; }
@media (max-width: 900px) { .dc-biz { grid-template-columns: 1fr; gap: 22px; } }

.dc-media {
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--placeholder);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    position: relative;
}
.dc-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dc-media--empty { display: flex; align-items: center; justify-content: center; color: var(--subtle); font-size: 28px; }
a.dc-media:hover img { opacity: .92; }

.dc-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 20px 22px;
}
.dc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
@media (max-width: 560px) { .dc-actions { flex-direction: column; } .dc-actions .dc-btn { width: 100%; justify-content: center; } }

/* Bloque de datos de contacto */
.dc-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.dc-contact__item {
    display: block;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 17px 19px;
    text-decoration: none;
}
.dc-contact__item:hover { border-color: var(--ink); }
.dc-contact__l { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--subtle); margin-bottom: 5px; }
.dc-contact__v { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); word-break: break-word; }

/* Publicidad. Cuando AdSense no tiene anuncio para el hueco marca el <ins> con
   data-ad-status="unfilled" pero le deja la altura reservada, así que la banda
   entera se esconde para no dejar un rectángulo en blanco en mitad de la ficha.
   En navegadores sin :has() se queda como hasta ahora (hueco vacío). */
.dc-ad--band { padding: 20px 0 0; }
.dc-ad:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }

/* Píldoras sociales */
.dc-social { display: flex; flex-wrap: wrap; gap: 8px; }
/* La píldora va rellena con el color de la red (--brand, que pone la ficha) y
   el icono en blanco, para que se vean de un vistazo; sin --brand se cae al
   gris tinta del tema. */
.dc-social a {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid transparent; border-radius: var(--r-pill);
    background: var(--brand, var(--ink)); color: #fff; font-size: 15px;
    text-decoration: none;
    transition: opacity .15s;
}
/* Se aclara con opacidad y no con brightness: así también se nota en TikTok,
   que es negro y con brightness apenas cambiaría. */
.dc-social a:hover { opacity: .8; }

/* Estado de apertura (texto redactado por Google, color deducido) */
.dc-badge {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 12px 5px 10px;
    border: 1px solid var(--line); border-radius: var(--r-pill);
    background: var(--surface);
    font-size: 12px; font-weight: 500; color: var(--muted);
}
.dc-badge::before { content: ""; width: 7px; height: 7px; border-radius: var(--r-pill); background: var(--subtle); flex: 0 0 auto; }
.dc-badge--open::before   { background: #2F7A3D; }
.dc-badge--closed::before { background: #B3392B; }
.dc-badge--soon::before   { background: #C08A1E; }
.dc-badge--plain::before  { display: none; }
.dc-badge--plain { padding-left: 12px; }

/* Estrellas sueltas (reutilizable en opiniones) */
.dc-stars { display: inline-flex; gap: 2px; font-size: 11px; color: var(--accent); }
.dc-stars i.is-off { color: var(--line); }

/* Galería de fotos */
.dc-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.dc-gallery__i {
    display: block; aspect-ratio: 1 / 1; overflow: hidden;
    background: var(--placeholder);
    border: 1px solid var(--line); border-radius: var(--r-sm);
}
.dc-gallery__i img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dc-gallery__i:hover { border-color: var(--ink); }
.dc-gallery__i:hover img { opacity: .92; }

/* Horario semanal */
.dc-hours { max-width: 460px; }
.dc-hours__r {
    display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
    padding: 9px 0; border-bottom: 1px solid var(--divider);
}
.dc-hours__r:last-child { border-bottom: 0; }
.dc-hours__d { font-size: 13px; color: var(--muted); }
.dc-hours__t { font-size: 13px; font-weight: 500; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.dc-hours__r.is-today .dc-hours__d,
.dc-hours__r.is-today .dc-hours__t { color: var(--accent); font-weight: 600; }
.dc-hours__r.is-closed .dc-hours__t { color: var(--subtle); font-weight: 400; }

/* Atributos del negocio (about) */
.dc-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.dc-feat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; }
.dc-feat__h {
    display: flex; align-items: center; gap: 8px;
    margin: 0 0 12px; font-size: 11px; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; color: var(--subtle);
}
.dc-feat__l { list-style: none; margin: 0; padding: 0; }
.dc-feat__l li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.5; color: var(--ink); margin-bottom: 7px; }
.dc-feat__l li:last-child { margin-bottom: 0; }
.dc-feat__l i { font-size: 10px; margin-top: 4px; color: var(--accent); flex: 0 0 auto; }
.dc-feat__l li.is-off { color: var(--subtle); }
.dc-feat__l li.is-off i { color: var(--line); }

/* Resumen de valoraciones */
.dc-revsum { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: center; }
.dc-score { text-align: center; border-right: 1px solid var(--line); padding-right: 26px; }
.dc-score__n { font-size: 46px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.dc-score__l { font-size: 12px; color: var(--subtle); margin: 8px 0 0; }
.dc-bars { display: grid; gap: 7px; }
.dc-bar { display: grid; grid-template-columns: 46px 1fr 52px; align-items: center; gap: 12px; }
.dc-bar__l { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.dc-bar__l i { font-size: 9px; color: var(--accent); }
.dc-bar__track { height: 6px; background: var(--divider); border-radius: var(--r-pill); overflow: hidden; }
.dc-bar__fill { height: 100%; background: var(--accent); display: block; }
.dc-bar__n { font-size: 12px; color: var(--subtle); text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
    .dc-revsum { grid-template-columns: 1fr; gap: 20px; }
    .dc-score { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 18px; }
}

/* Opiniones */
.dc-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.dc-review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; }
.dc-review__top { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.dc-review__av {
    width: 34px; height: 34px; flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--r-pill); background: var(--placeholder);
    font-size: 13px; font-weight: 700; color: var(--muted);
}
.dc-review__n { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.dc-review__m { margin: 2px 0 0; font-size: 11px; color: var(--subtle); display: flex; align-items: center; gap: 7px; }
.dc-review__t { margin: 0; font-size: 14px; line-height: 1.65; color: var(--muted); }
.dc-review__ph {
    display: block; margin-top: 12px; max-height: 190px; overflow: hidden;
    border: 1px solid var(--line); border-radius: var(--r-sm);
}
.dc-review__ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dc-review__reply { margin-top: 14px; padding-left: 14px; border-left: 2px solid var(--accent-line); }
.dc-review__reply p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.dc-review__reply strong { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--subtle); margin-bottom: 5px; font-weight: 700; }

/* Pregunta destacada */
.dc-qa__q { margin: 0 0 10px; font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.dc-qa__a { margin: 0; font-size: 14px; line-height: 1.65; color: var(--muted); }
.dc-qa__by { margin: 10px 0 0; font-size: 11px; color: var(--subtle); }

/* Cuerpo de la ficha: columna principal + lateral fijo.
   El diseño no encadena secciones sueltas aquí: pone todos los bloques
   seguidos con 32px entre ellos y deja mapa, contacto y horario en un
   lateral que acompaña al scroll. */
.dc-detail {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
    align-items: start;
    padding: 22px 0 56px;
}
.dc-detail__main { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.dc-detail__side {
    display: flex; flex-direction: column; gap: 12px; min-width: 0;
    position: sticky; top: calc(var(--header-h) + 14px);
}
.dc-blk__h { font-size: 23px; line-height: 1.15; letter-spacing: -.025em; font-weight: 700; margin: 0 0 12px; }
.dc-blk__hd {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; margin-bottom: 12px;
}
.dc-blk__hd .dc-blk__h { margin: 0; }
@media (max-width: 980px) {
    .dc-detail { grid-template-columns: 1fr; gap: 26px; padding-bottom: 40px; }
    .dc-detail__side { position: static; }
}

/* Tarjetas del lateral */
.dc-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.dc-side__b { padding: 16px 18px; display: flex; flex-direction: column; gap: 13px; }
.dc-side__map { display: block; width: 100%; height: 150px; border: 0; }
.dc-side__i { display: block; text-decoration: none; }
.dc-side__l { display: block; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--subtle); margin-bottom: 3px; }
.dc-side__v { display: block; font-size: 14.5px; font-weight: 500; color: var(--ink); line-height: 1.45; word-break: break-word; }
a.dc-side__i:hover .dc-side__v { color: var(--accent); }
.dc-side .dc-hours { max-width: none; }
.dc-side .dc-hours__r { padding: 6px 0; }

/* Mosaico de fotos bajo la cabecera: la primera ocupa doble alto y el resto
   fluye en filas de 150px. Con menos de cinco fotos deja de haber hueco
   bajo la grande, así que se usa la variante plana. */
.dc-mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 150px; gap: 8px; }
.dc-mosaic__i {
    position: relative; display: block; overflow: hidden;
    background: var(--placeholder);
    border: 1px solid var(--line); border-radius: var(--r-md);
}
.dc-mosaic__i:first-child { grid-row: span 2; }
.dc-mosaic__i img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dc-mosaic__i:hover { border-color: var(--ink); }
.dc-mosaic__i:hover img { opacity: .92; }
.dc-mosaic__more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(22, 21, 15, .55); color: #fff; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.dc-mosaic--flat { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.dc-mosaic--flat .dc-mosaic__i:first-child { grid-row: auto; }
@media (max-width: 700px) {
    .dc-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; }
    .dc-mosaic--flat { grid-template-columns: 1fr 1fr; }
}

/* Visor de fotos (se abre desde la destacada, el mosaico o una opinión) */
.dc-lb {
    position: fixed; inset: 0; z-index: 110; padding: 16px;
    background: rgba(22, 21, 15, .92);
    display: none; align-items: center; justify-content: center;
}
.dc-lb.is-open { display: flex; }
.dc-lb__img {
    max-width: 100%; max-height: 88vh; display: block;
    border-radius: var(--r-md);
    /* La foto cierra el visor al pulsarla, igual que el fondo. */
    cursor: zoom-out;
}
.dc-lb__x, .dc-lb__nav {
    position: absolute; display: flex; align-items: center; justify-content: center;
    padding: 0; background: none; border: 0; color: #fff; cursor: pointer;
    line-height: 1; transition: opacity .15s;
}
.dc-lb__x:hover, .dc-lb__nav:hover { opacity: .65; }
.dc-lb__x { top: 8px; right: 12px; width: 44px; height: 44px; font-size: 34px; }
.dc-lb__nav { top: 50%; transform: translateY(-50%); width: 54px; height: 80px; font-size: 44px; }
.dc-lb__nav--prev { left: 4px; }
.dc-lb__nav--next { right: 4px; }
.dc-lb__n {
    position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
    color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .1em;
}
/* Con una sola foto no hay a dónde ir; en móvil se pasa deslizando y las
   flechas sólo taparían la foto. */
.dc-lb--solo .dc-lb__nav, .dc-lb--solo .dc-lb__n { display: none; }
@media (max-width: 700px) {
    .dc-lb__nav { display: none; }
}

/* ============================================================
   BANDA OSCURA
   ============================================================ */
.dc-dark { background: var(--dark); color: var(--on-dark); }
.dc-dark h1, .dc-dark h2, .dc-dark h3 { color: var(--on-dark); }
.dc-dark p { color: var(--on-dark-muted); }
.dc-dark a { color: var(--on-dark-link); }
.dc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.dc-step { border-top: 2px solid var(--accent); padding-top: 16px; }
.dc-step__n { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--on-dark-muted); }
.dc-step__t { font-size: 18px; font-weight: 600; letter-spacing: -.02em; margin: 8px 0 6px; }
.dc-step__d { font-size: 13px; line-height: 1.6; color: var(--on-dark-muted); margin: 0; }

/* ============================================================
   MIGAS
   ============================================================ */
.dc-crumbs {
    background: var(--canvas);
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
    font-size: 12px;
    color: var(--subtle);
}
.dc-crumbs a { color: var(--muted); text-decoration: none; }
.dc-crumbs a:hover { color: var(--accent); }
.dc-crumbs__sep { margin: 0 8px; color: var(--line); }

/* ============================================================
   PROSA (blog / legales)
   ============================================================ */
.dc-prose { max-width: 720px; font-size: 16px; line-height: 1.75; color: var(--ink); }
.dc-prose p { margin: 0 0 20px; color: var(--muted); }
/* h1 no debería aparecer en el cuerpo (el titular lo pone la plantilla),
   pero algunos posts importados lo traen: se degrada al nivel de h2. */
.dc-prose h1 { font-size: 26px; font-weight: 700; letter-spacing: -.03em; margin: 36px 0 12px; }
.dc-prose h2 { font-size: 24px; font-weight: 700; letter-spacing: -.025em; margin: 36px 0 12px; }
.dc-prose h3 { font-size: 18px; font-weight: 600; letter-spacing: -.02em; margin: 28px 0 10px; }
.dc-prose h4 { font-size: 15px; font-weight: 600; letter-spacing: -.015em; margin: 24px 0 8px; }
.dc-prose > :first-child { margin-top: 0; }
.dc-prose ul, .dc-prose ol { margin: 0 0 20px; padding-left: 20px; color: var(--muted); }
.dc-prose li { margin-bottom: 8px; }
.dc-prose a { color: var(--accent); }
.dc-prose strong { color: var(--ink); font-weight: 600; }
.dc-prose img { max-width: 100%; height: auto; border-radius: var(--r-md); }
.dc-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 24px;
    font-size: 14px;
}
.dc-prose th,
.dc-prose td {
    border: 1px solid var(--line);
    padding: 9px 12px;
    text-align: left;
    color: var(--muted);
}
.dc-prose th {
    background: var(--divider);
    color: var(--ink);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em;
}
.dc-tablewrap { overflow-x: auto; margin: 0 0 24px; }
.dc-tablewrap > table { margin: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.dc-footer { background: var(--dark); color: var(--on-dark); padding: 52px 0 0; }
.dc-footer__cols {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
.dc-footer__blurb { font-size: 13px; line-height: 1.7; color: var(--on-dark-muted); margin: 14px 0 18px; max-width: 320px; }
.dc-footer__h {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--on-dark-muted);
    margin: 0 0 14px;
}
.dc-footer__list { list-style: none; margin: 0; padding: 0; }
.dc-footer__list li { margin-bottom: 9px; }
.dc-footer__list a { font-size: 13px; color: var(--on-dark-link); text-decoration: none; }
.dc-footer__list a:hover { color: #fff; }
.dc-footer__bottom {
    border-top: 1px solid var(--dark-line);
    padding: 18px 0 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 12px;
    color: var(--on-dark-muted);
}
.dc-footer__bottom a { color: var(--on-dark-muted); text-decoration: none; }
.dc-footer__bottom a:hover { color: #fff; }
.dc-langs { display: flex; flex-wrap: wrap; gap: 6px; }
.dc-lang {
    padding: 4px 10px;
    border: 1px solid var(--dark-line);
    border-radius: var(--r-xs);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--on-dark-muted);
    text-decoration: none;
}
.dc-lang:hover, .dc-lang.is-active { border-color: var(--accent); color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .dc-grid--5 { grid-template-columns: repeat(3, 1fr); }
    .dc-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .dc-footer__cols { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 860px) {
    :root { --gutter: 18px; }
    .dc-nav { display: none; }
    .dc-burger { display: inline-flex; align-items: center; justify-content: center; }
    .dc-hero__h1 { font-size: 38px; }
    .dc-pagehead__h1 { font-size: 30px; }
    .dc-h2 { font-size: 24px; }
    .dc-section { padding: 40px 0; }
    .dc-grid--3, .dc-grid--5 { grid-template-columns: repeat(2, 1fr); }
    .dc-steps { grid-template-columns: 1fr; gap: 22px; }
    .dc-stats { grid-template-columns: repeat(2, 1fr); }
    .dc-stat { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
    .dc-stat:nth-child(-n+2) { border-top: 0; }
    .dc-head { flex-direction: column; align-items: flex-start; gap: 10px; }
    .dc-searchbar { flex-wrap: wrap; }
    .dc-searchbar select { max-width: none; border-left: 0; border-top: 1px solid var(--line); flex: 1 1 100%; }
    .dc-searchbar button { flex: 1 1 100%; padding: 13px; }
    .dc-footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
    /* Las dos acciones (acceder / dar de alta) ya están dentro del menú
       desplegable, así que en la barra se deja sólo la hamburguesa: con la
       marca al lado no caben y desbordaban el ancho de la pantalla. */
    .dc-header__actions .dc-btn { display: none; }
    .dc-hero__h1 { font-size: 32px; }
    .dc-grid--2, .dc-grid--3, .dc-grid--4, .dc-grid--5 { grid-template-columns: 1fr; }
    .dc-footer__cols { grid-template-columns: 1fr; }
}

/* ============================================================
   BANNER DE COOKIES + MODAL DE PREFERENCIAS
   ============================================================ */
.dc-cookie {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: var(--surface); border-top: 1px solid var(--line);
    transform: translateY(100%); transition: transform .4s ease;
}
.dc-cookie.is-open { transform: translateY(0); }
.dc-cookie__in {
    max-width: var(--container); margin: 0 auto; padding: 20px var(--gutter);
    display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
}
.dc-cookie__t { margin: 0 0 5px; font-size: 15px; font-weight: 700; letter-spacing: -.015em; color: var(--ink); }
.dc-cookie__p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 640px; }
.dc-cookie__p a { color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; }
.dc-cookie__btns { display: flex; gap: 9px; flex-wrap: wrap; }

.dc-modal {
    position: fixed; inset: 0; z-index: 100; padding: 20px;
    background: rgba(22, 21, 15, .55);
    display: none; align-items: center; justify-content: center;
}
.dc-modal.is-open { display: flex; }
.dc-modal__box {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
    width: 100%; max-width: 620px; max-height: 88vh; overflow-y: auto;
}
.dc-modal__head {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 24px; border-bottom: 1px solid var(--line);
}
.dc-modal__head h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.025em; color: var(--ink); }
.dc-modal__x {
    background: none; border: 0; cursor: pointer; padding: 4px;
    font-size: 20px; line-height: 1; color: var(--subtle);
}
.dc-modal__x:hover { color: var(--ink); }
.dc-modal__body { padding: 4px 24px; }
.dc-modal__foot {
    display: flex; gap: 10px; flex-wrap: wrap;
    padding: 18px 24px; border-top: 1px solid var(--line); background: var(--divider);
}
.dc-modal__foot > * { flex: 1; }

.dc-optrow { padding: 20px 0; border-bottom: 1px solid var(--divider); }
.dc-optrow:last-child { border-bottom: 0; }
.dc-optrow__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.dc-optrow__t { margin: 0 0 3px; font-size: 15px; font-weight: 600; letter-spacing: -.012em; color: var(--ink); }
.dc-optrow__s { margin: 0; font-size: 12px; color: var(--subtle); }
.dc-optrow__d { margin: 0; font-size: 13px; line-height: 1.65; color: var(--muted); }
.dc-pill {
    flex: 0 0 auto; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
    padding: 5px 11px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted);
}

.dc-switch { flex: 0 0 auto; position: relative; display: inline-block; width: 40px; height: 22px; cursor: pointer; }
.dc-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.dc-switch span {
    position: absolute; inset: 0; background: var(--placeholder);
    border: 1px solid var(--line); border-radius: 99px; transition: background .2s ease, border-color .2s ease;
}
.dc-switch span::after {
    content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
    background: var(--surface); border-radius: 99px; transition: transform .2s ease;
}
.dc-switch input:checked + span { background: var(--accent); border-color: var(--accent); }
.dc-switch input:checked + span::after { transform: translateX(18px); }
.dc-switch input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

@media (max-width: 700px) {
    .dc-cookie__in { flex-direction: column; align-items: flex-start; gap: 16px; }
    .dc-cookie__btns { width: 100%; }
    .dc-cookie__btns > * { flex: 1; justify-content: center; }
}

/* ============================================================
   CAPA DE COMPATIBILIDAD
   Reviste las utilidades Tailwind ya usadas en las ~26 plantillas
   públicas para que hereden el nuevo lenguaje visual sin tocar
   todavía cada archivo. Va al final para ganar a styles.css.
   ============================================================ */

/* Paleta gris -> paleta cálida */
.bg-gray-50  { background-color: var(--canvas) !important; }
.bg-gray-100 { background-color: var(--divider) !important; }
.bg-gray-200 { background-color: var(--placeholder) !important; }
.bg-gray-800,
.bg-gray-900 { background-color: var(--dark) !important; }
.text-gray-400 { color: var(--subtle) !important; }
.text-gray-500 { color: var(--subtle) !important; }
.text-gray-600 { color: var(--muted) !important; }
.text-gray-700 { color: var(--muted) !important; }
.text-gray-800,
.text-gray-900 { color: var(--ink) !important; }
.border-gray-100 { border-color: var(--divider) !important; }
.border-gray-200,
.border-gray-300 { border-color: var(--line) !important; }

/* Acento */
.text-primary   { color: var(--accent) !important; }
.bg-primary     { background-color: var(--accent) !important; }
.border-primary { border-color: var(--accent) !important; }
.text-secondary { color: var(--accent) !important; }
.bg-secondary   { background-color: var(--ink) !important; }
.hover\:text-primary:hover { color: var(--accent) !important; }
.hover\:bg-primary:hover   { background-color: var(--accent) !important; }
.hover\:bg-secondary:hover { background-color: var(--ink) !important; }
.text-yellow-400 { color: var(--accent) !important; }

/* Sin degradados: banda oscura editorial */
.hero-gradient,
.btn-gradient {
    background: var(--dark) !important;
    border-bottom: 2px solid var(--accent);
}
.btn-gradient { border-bottom: 0; }

/* Esquinas pequeñas */
.rounded      { border-radius: var(--r-xs) !important; }
.rounded-lg   { border-radius: var(--r-sm) !important; }
.rounded-xl,
.rounded-2xl,
.rounded-3xl  { border-radius: var(--r-md) !important; }
.rounded-full { border-radius: var(--r-pill) !important; }

/* Sombras -> filos */
.shadow-sm, .shadow, .shadow-md, .shadow-lg, .shadow-xl, .shadow-2xl {
    box-shadow: none !important;
    border: 1px solid var(--line);
}
.hover\:shadow-md:hover,
.hover\:shadow-lg:hover,
.hover\:shadow-xl:hover { box-shadow: none !important; border-color: var(--accent) !important; }
.card-hover:hover { transform: none !important; box-shadow: none !important; border-color: var(--accent) !important; }

/* La nav antigua no lleva sombra ni fondo blanco */
nav.bg-white.shadow-sm { background: var(--canvas) !important; border: 0; border-bottom: 1px solid var(--line); }

/* Subrayado de nav */
.nav-link::after { background: var(--accent) !important; }

/* Contenedor al ancho del diseño */
.container { max-width: var(--container) !important; }

/* Tipografía de titulares heredados */
.text-3xl { letter-spacing: -.03em; }
.text-2xl { letter-spacing: -.028em; }
.text-xl  { letter-spacing: -.022em; }
.font-bold { font-weight: 700 !important; }

/* Prosa antigua alineada con la nueva */
.prose strong { color: var(--ink) !important; }
.prose a { color: var(--accent); }

/* Corrige la utilidad rota de styles.css (flex-shrink- 0) */
.flex-shrink-0 { flex-shrink: 0 !important; }
