/* ============================================
   RESPONSIVE.CSS — Media queries
   Dashboard Clientes — Acelera tu CRM
   ============================================ */

/* --- Global overflow protection (aplica siempre) --- */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.app-layout,
.main-content,
.content {
    min-width: 0;
    max-width: 100%;
}

.content {
    overflow-x: hidden;
}

/* Flex/grid children don't grow past their container */
.chart-card,
.card,
.scorecard,
.bento-item,
.scorecard-grid > *,
.grid-2 > *,
.grid-3 > *,
.grid-2-1 > *,
.grid-1-2 > *,
.bento-grid > * {
    min-width: 0;
    max-width: 100%;
}

/* Charts nunca desbordan su card */
.chart-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.chart-container .apexcharts-canvas,
.chart-container svg {
    max-width: 100% !important;
}

/* Tablas: scroll interno, nunca empujan el layout */
.data-table-wrapper {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* --- Tablet (≤1024px) --- */
@media (max-width: 1024px) {
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }

    .scorecard-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-item.span-3,
    .bento-item.span-4 { grid-column: span 2; }
}

/* --- Mobile (≤768px) --- */
@media (max-width: 768px) {
    /* Sidebar hidden by default */
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    /* Show hamburger */
    .menu-toggle {
        display: flex;
    }

    /* Show overlay when sidebar open */
    .sidebar-overlay.active {
        display: block;
    }

    /* Main content full width */
    .main-content {
        margin-left: 0;
        width: 100%;
    }

    /* Compact top bar */
    .top-bar {
        padding: var(--space-sm) var(--space-md);
        padding-left: 56px;
        flex-wrap: wrap;
        gap: var(--space-sm);
    }

    .top-bar-left {
        flex-direction: column;
        gap: 2px;
        min-width: 0;
        flex: 1;
    }

    .top-bar-right {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .section-title {
        font-size: var(--font-size-md);
    }

    /* Filters scroll horizontally within their bar */
    .filters-bar {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
    }

    .filter-date {
        width: 200px;
        flex-shrink: 0;
    }

    .filter-select {
        flex-shrink: 0;
    }

    /* Hide preset pills on mobile to save space */
    .pill-tabs {
        display: none;
    }

    /* Hide top bar branding on mobile */
    .top-bar-brand {
        display: none;
    }

    /* Content padding reduced */
    .content {
        padding: var(--space-md);
    }

    /* Scorecards: 2 columns */
    .scorecard-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--space-sm);
    }

    .scorecard {
        padding: var(--space-md);
    }

    .scorecard-value {
        font-size: var(--font-size-lg);
        word-break: break-word;
    }

    .scorecard-label {
        font-size: var(--font-size-xs);
    }

    /* Charts smaller */
    .chart-container {
        min-height: 220px;
    }

    /* Grids: all collapse to 1 col */
    .grid-2, .grid-3, .grid-2-1, .grid-1-2 {
        grid-template-columns: 1fr !important;
        gap: var(--space-md);
    }

    /* Tables */
    .data-table {
        font-size: var(--font-size-xs);
    }

    .data-table th,
    .data-table td {
        padding: var(--space-xs) var(--space-sm);
    }

    /* Card padding compact */
    .card, .chart-card {
        padding: var(--space-md);
    }

    /* Chart card headers wrap */
    .chart-card-header {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }

    .chart-card-title {
        font-size: var(--font-size-sm);
    }

    /* Bento grid: 1 col */
    .bento-grid {
        grid-template-columns: 1fr !important;
    }

    .bento-item.span-2,
    .bento-item.span-3,
    .bento-item.span-4 { grid-column: span 1 !important; }

    /* Funnel vertical */
    .funnel-step {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-xs);
    }

    .funnel-step-info {
        text-align: left;
        min-width: auto;
        display: flex;
        gap: var(--space-sm);
        flex-wrap: wrap;
    }

    .funnel-with-cumulative {
        flex-direction: column;
    }

    .funnel-cumulative {
        width: 100%;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    /* Any inline grids dentro de secciones */
    [class*="grid-"] {
        grid-template-columns: 1fr !important;
    }

    /* Forms vs Landing / tablas comparativas flex */
    .comparison-row,
    .split-row {
        flex-direction: column;
        gap: var(--space-sm);
    }

    /* Tabs sticky con scroll */
    .tabs-nav,
    .tab-bar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    /* Bloquea cualquier min-width accidental en children */
    .chart-card *,
    .card * {
        max-width: 100%;
    }

    /* Imágenes siempre fluid */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* --- Small Mobile (≤480px) --- */
@media (max-width: 480px) {
    .scorecard-grid {
        grid-template-columns: 1fr !important;
    }

    .top-bar {
        padding-left: 48px;
    }

    .filter-select {
        font-size: 11px;
        padding: 5px 24px 5px 8px;
    }

    .filter-date {
        width: 170px;
        font-size: 11px;
    }

    .chart-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    .chart-container {
        min-height: 200px;
    }

    .content {
        padding: var(--space-sm);
    }

    /* Scorecards smaller padding en super-pequeño */
    .scorecard {
        padding: var(--space-sm) var(--space-md);
    }

    .scorecard-value {
        font-size: var(--font-size-md);
    }

    /* Section title truncate si es necesario */
    .section-title {
        font-size: var(--font-size-sm);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100vw - 80px);
    }
}

/* =====================================================================================
   VISTA MÓVIL (Pablo 2026-07-08) — enfoque de los mejores SaaS web: barra compacta con
   hamburguesa (drawer), FILTROS en panel inferior (bottom-sheet), KPIs 2 por fila.
   Frontera dura: todo lo específico de móvil vive aquí; el escritorio no entra.
   ===================================================================================== */

/* Backdrops (drawer del menú + sheet de filtros) */
.sidebar-backdrop, .sheet-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 210;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.sidebar-backdrop.show, .sheet-backdrop.show { opacity: 1; pointer-events: auto; }
.sheet-backdrop { z-index: 230; }

/* Botón hamburguesa + botón "Filtros" de la barra móvil */
.mob-burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex-shrink: 0; border: 1px solid var(--border-color);
  border-radius: 10px; background: var(--bg-input); color: var(--text-primary); cursor: pointer;
}
.mob-filtros-btn {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; position: relative;
  padding: 9px 14px; border: 1px solid var(--border-color); border-radius: 10px;
  background: var(--bg-input); color: var(--text-primary); font-size: 13px; font-weight: 600; cursor: pointer;
}
.mob-filtros-badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--color-primary);
  color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}

/* Bottom-sheet de filtros (sube desde abajo) */
.filters-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 240;
  background: var(--bg-card); border-top-left-radius: 18px; border-top-right-radius: 18px;
  box-shadow: 0 -8px 40px rgba(0,0,0,.4); max-height: 82vh; display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform .28s cubic-bezier(.32,.72,0,1);
}
.filters-sheet.open { transform: translateY(0); }
.sheet-grip { width: 40px; height: 4px; border-radius: 2px; background: var(--border-color); margin: 10px auto 2px; flex-shrink: 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 18px 10px; font-size: 16px; font-weight: 700; color: var(--text-primary); border-bottom: 1px solid var(--border-color); flex-shrink: 0; }
.sheet-x { background: transparent; border: 0; color: var(--text-muted); cursor: pointer; padding: 4px; }
.sheet-body { padding: 16px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.sheet-body > select, .sheet-body > .drp, .sheet-body > .sv { width: 100%; }
.sheet-body select { width: 100%; padding: 12px; font-size: 15px; border-radius: 10px; background: var(--bg-input); color: var(--text-primary); border: 1px solid var(--border-color); }
.sheet-body .drp-trigger { width: 100%; justify-content: space-between; padding: 12px; font-size: 15px; }
.sheet-foot { display: flex; gap: 10px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border-color); flex-shrink: 0; }
.sheet-apply { flex: 1; background: var(--color-primary); color: #fff; border: 0; border-radius: 10px; padding: 13px; font-size: 15px; font-weight: 700; cursor: pointer; }

@media (max-width: 768px) {
  /* Sidebar = drawer (ya es position:fixed): oculto, se muestra con .open */
  .sidebar { transform: translateX(-100%); width: 82vw; max-width: 320px; z-index: 220; }
  .sidebar.open { transform: translateX(0); box-shadow: 0 0 40px rgba(0,0,0,.55); }
  .main-content { margin-left: 0 !important; width: 100% !important; }
  .app-layout.collapsed .main-content { margin-left: 0 !important; }
  .sidebar-collapse-btn { display: none; }

  /* Cabecera móvil: hamburguesa + título + Filtros + tema. Con aire (antes iba comprimida). */
  /* Sticky-reveal: pinned arriba; .hdr-hidden la sube fuera de vista al bajar, reaparece al subir. */
  .top-bar.top-bar-mobile { flex-wrap: nowrap; gap: 10px; padding: 13px 14px; align-items: center; min-height: 60px;
    position: sticky; top: 0; z-index: 50; transition: transform .22s ease; will-change: transform; }
  .top-bar.top-bar-mobile.hdr-hidden { transform: translateY(-100%); }
  .top-bar-mobile .top-bar-left { flex: 1 1 auto; min-width: 0; padding-right: 8px; }
  /* 18px (no 20) + ellipsis: los títulos largos ("Embudo Meta (entrega)") ya no quedan pegados/tapados por Filtros */
  .top-bar-mobile .section-title { font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .top-bar-mobile .top-bar-actions { flex-shrink: 0; margin-left: 0; gap: 8px; }
  .top-bar-mobile .btn-tema { width: 42px; height: 42px; justify-content: center; }
  .top-bar-mobile .mob-burger { width: 42px; height: 42px; }
  .top-bar-mobile .mob-filtros-btn { padding: 10px 15px; font-size: 14px; }

  /* KPIs: 2 por fila, compactos (gana al viejo bento-grid:1fr !important) */
  .bento-grid:has(> .scorecard) { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .bento-grid:has(> .scorecard) .scorecard { min-height: 92px; padding: 12px 14px; }
  .bento-grid:has(> .scorecard) .scorecard-value { font-size: clamp(1.25rem, 6.5vw, 2rem); }

  /* Densidad general */
  .content { padding: 14px 12px 40px; }
  .section { gap: 14px; }
  .chart-container { min-height: 240px; }
}

/* Tablas drill → LISTA DE TARJETAS en móvil (Fase 4). Cada campaña/creativo = una card
   con nombre + métricas apiladas (sin scroll horizontal). Solo se renderiza en ≤768. */
.drill-cards { display: flex; flex-direction: column; gap: 10px; }
.drill-card { border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-card); padding: 12px 13px; cursor: pointer; }
.drill-card.sel { border-color: var(--color-primary); background: rgba(var(--color-primary-rgb,20,107,255),.06); }
.drill-card .dc-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 11px; }
.drill-card .dc-name { font-weight: 700; font-size: 14px; color: var(--text-primary); line-height: 1.3; word-break: break-word; }
.drill-card .dc-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px 8px; }
.drill-card .dc-m { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.drill-card .dc-m-l { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drill-card .dc-m-v { font-size: 15px; font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.drill-card .dc-m-v.strong { color: var(--color-primary); }
.drill-card .dc-m-v.muted { color: var(--text-muted); font-weight: 600; }
.drill-card .dc-m-sub { font-size: 10px; color: var(--text-muted); }
.drill-card .dc-head .drill-chk { flex-shrink: 0; margin-top: 1px; }

/* =========================================================================
   RENDIMIENTO MÓVIL (Pablo 2026-07-09: "va a tirones, lentísimo")
   Fuera lo caro en móvil: fondo animado (SVG sparks + starfield) y backdrop-filter.
   ========================================================================= */
@media (max-width: 768px) {
  /* Fondo animado FUERA (repinta a pantalla completa en cada scroll = tirones) */
  #bg-circuit, .bg-circuit, .starfield, canvas { display: none !important; }
  /* backdrop-filter blur es carísimo en móvil → fondo sólido */
  .top-bar, .sidebar { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .top-bar.top-bar-mobile { background: var(--bg-sidebar) !important; }
  .sidebar { background: var(--bg-sidebar) !important; }
  /* Cinturón anti-desbordamiento horizontal (nada empuja el ancho → sin zoom-out) */
  html, body { overflow-x: hidden !important; max-width: 100vw; }
  .app-layout, .main-content, .content, .section { max-width: 100vw; overflow-x: clip; }
}

/* Tablas secundarias dentro de ChartCard (p.ej. "Rendimiento por formato"): que hagan
   SCROLL horizontal DENTRO de su tarjeta en móvil, no que estiren la página. (Pablo 2026-07-09) */
@media (max-width: 768px) {
  .table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .chart-card, .chart-container, .chart-container > * { min-width: 0; max-width: 100%; }
}

/* Tablas drill en MÓVIL = misma tabla que escritorio pero GIRABLE (swipe izq/dcha).
   Pablo 2026-07-09: prefiere esto a las tarjetas. (MOBILE_DRILL='table' en More.jsx) */
@media (max-width: 768px) {
  .drill-tabwrap .table-wrap { max-height: none !important; overflow-y: hidden; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* Nombre acotado: si no, la 1ª columna se come el ancho y no ves métricas sin girar */
  .drill-tabwrap .data-table th:nth-child(2), .drill-tabwrap .data-table td:nth-child(2) { max-width: 42vw; }
  .drill-tabwrap .data-table td:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* Celdas algo más compactas → caben más métricas por pantalla */
  .drill-tabwrap .data-table th, .drill-tabwrap .data-table td { padding: 8px 10px; font-size: 13px; }
}

/* Pestañas del drill (Cuenta/Campañas/Conjuntos/Anuncios) en UNA fila deslizable en móvil
   (antes se iban a 2 filas). Pablo 2026-07-09 */
@media (max-width: 768px) {
  .drill-tabs { flex-wrap: nowrap !important; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .drill-tabs::-webkit-scrollbar { display: none; }
  .drill-tab { flex-shrink: 0 !important; white-space: nowrap; }
}

/* Drill móvil MODO LISTA (Pablo 2026-07-09): fila = nombre completo + métricas clave;
   toca → panel de detalle con todas. Solo scroll vertical, sin girar. */
@media (max-width: 768px) {
  .drill-list { display: flex; flex-direction: column; }
  .drill-lrow { display: flex; align-items: center; gap: 11px; padding: 13px 4px; border-bottom: 1px solid var(--border-color); cursor: pointer; }
  .drill-lrow:last-child { border-bottom: none; }
  .drill-lrow.sel { background: rgba(var(--color-primary-rgb,20,107,255),.06); border-radius: 8px; }
  .drill-lrow .dl-main { flex: 1; min-width: 0; }
  .drill-lrow .dl-name { font-weight: 700; font-size: 14px; color: var(--text-primary); line-height: 1.3; margin-bottom: 3px; word-break: break-word; }
  .drill-lrow .dl-keys { display: flex; flex-wrap: wrap; gap: 1px 12px; font-size: 12.5px; color: var(--text-muted); }
  .drill-lrow .dl-keys b { color: var(--text-primary); font-weight: 700; }
  .drill-lrow .dl-chevron { color: var(--text-muted); font-size: 24px; flex-shrink: 0; line-height: 1; }
}
/* Panel de detalle: métricas en 2 columnas, más grandes (solo se renderiza en móvil) */
.drill-detail-sheet .dc-metrics { grid-template-columns: repeat(2, 1fr); gap: 16px 14px; }
.drill-detail-sheet .dc-m-v { font-size: 18px; }
.drill-detail-sheet .dc-m-l { font-size: 11px; }

/* Drill móvil ACORDEÓN (Pablo 2026-07-09): toca la fila y se despliega DEBAJO (en el sitio),
   empujando las siguientes. El coste/lead va pequeñito junto a Leads. */
@media (max-width: 768px) {
  .drill-litem { border-bottom: 1px solid var(--border-color); }
  .drill-litem:last-child { border-bottom: none; }
  .drill-litem.open { background: rgba(var(--color-primary-rgb,20,107,255),.04); border-radius: 10px; }
  .drill-list .drill-lrow { border-bottom: none; }
  .drill-lrow .dl-keys .dl-sub { font-style: normal; color: var(--text-muted); font-weight: 500; }
  .drill-lrow .dl-chevron { transition: transform .18s ease; }
  .drill-lrow .dl-chevron.up { transform: rotate(90deg); }
  .dl-detail { padding: 2px 6px 14px 40px; animation: dl-open .16s ease; }
  .dl-detail .dc-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px 12px; }
  .dl-detail .dc-m { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
  .dl-detail .dc-m-l { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--text-muted); }
  .dl-detail .dc-m-v { font-size: 16px; font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; }
  .dl-detail .dc-m-v.strong { color: var(--color-primary); }
  .dl-detail .dc-m-v.muted { color: var(--text-muted); font-weight: 600; }
  .dl-detail .dc-m-sub { font-size: 10px; color: var(--text-muted); }
  @keyframes dl-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
}

/* Drill móvil = CAJA como en escritorio (Pablo 2026-07-09): las pestañas (Cuenta/Campañas/
   Conjuntos/Anuncios) quedan ANCLADAS arriba y SOLO la lista scrollea por dentro. */
@media (max-width: 768px) {
  .drill-list { max-height: 60vh; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
}

/* Diseño móvil — más grande y visible (Pablo 2026-07-09): títulos/subtítulos de tarjetas,
   y el título del drill ("Rendimiento por…") que salía gris y pequeño. */
@media (max-width: 768px) {
  .chart-card-title { font-size: 16.5px; }
  .card-title { font-size: 14px; color: var(--text-primary); letter-spacing: .02em; }
  .chart-card-subtitle { font-size: 13px; color: var(--text-secondary); line-height: 1.45; margin-top: 4px; }
  .drill-legend { font-size: 12.5px; line-height: 1.5; }
  .ai-summary-card { font-size: 14px; }
}

/* Controles de filtro de sección: en móvil la barra scrollea en horizontal y los controles no se encogen */
@media (max-width: 768px) {
  .filters-bar > * { flex-shrink: 0; }
}

/* Embudos en móvil: las etiquetas largas (Embudo Meta) se cortaban en una línea → que ENVUELVAN
   centradas, fuente algo menor y fila más alta para que quepan. Pablo 2026-07-09 */
@media (max-width: 768px) {
  .funnelx-row { height: 86px; }
  .funnelx-text { padding: 4px 12px; }
  .fx-label { font-size: 11px; white-space: normal; text-align: center; line-height: 1.16; }
  .fx-val { font-size: 11.5px; text-align: center; }
  .fx-pct { display: block; margin-top: 1px; }
}

/* Global móvil (Pablo 2026-07-09): (a) margen inferior generoso para poder bajar más y dejar
   el último gráfico centrado; (b) "Filtros" solo icono → el título largo ("Embudo de ventas",
   "Embudo Meta (entrega)") ya no queda tapado por el botón. */
@media (max-width: 768px) {
  .content { padding-bottom: 28vh !important; }   /* un tercio menos que 42vh (Pablo 2026-07-09) */
  .top-bar-mobile .mob-filtros-btn > span:not(.mob-filtros-badge) { display: none; }
  .top-bar-mobile .mob-filtros-btn { padding: 10px 12px; }
}

/* Desglose por propiedad (Estado del lead, Razón de pérdida) en móvil (Pablo 2026-07-09):
   la barra horizontal Apex con una categoría dominante (99% "sin rellenar") dejaba el eje X
   solapado y los valores pequeños ilegibles. En móvil → lista rankeada: nombre + valor + %
   siempre legibles, con barra de proporción de fondo. */
@media (max-width: 768px) {
  .dp-list { display: flex; flex-direction: column; gap: 3px; }
  .dp-row { position: relative; display: flex; align-items: center; justify-content: space-between;
            gap: 10px; padding: 10px 11px; border-radius: 8px; overflow: hidden;
            background: var(--bg-input, rgba(148,163,184,.06)); }
  .dp-row .dp-fill { position: absolute; left: 0; top: 0; bottom: 0; opacity: .16; border-radius: 8px; z-index: 0; }
  .dp-row .dp-k { position: relative; z-index: 1; flex: 1; min-width: 0; font-size: 13px;
                  color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dp-row .dp-v { position: relative; z-index: 1; font-size: 13.5px; font-weight: 700;
                  color: var(--text-primary); white-space: nowrap; }
  .dp-row .dp-v em { font-style: normal; font-weight: 600; opacity: .55; margin-left: 6px; font-size: 12px; }
}

/* MobileTableList (Pablo 2026-07-09): tablas anchas → lista+acordeón en móvil. El nombre largo
   (formularios, campañas) se muestra REDUCIDO a 2 líneas en la fila; al expandir, completo arriba. */
@media (max-width: 768px) {
  .drill-lrow .dl-name.mtl-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
  .dl-detail .mtl-full { font-size: 13px; font-weight: 700; color: var(--text-primary); line-height: 1.35;
                         margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border-color); word-break: break-word; }
}
