/**
 * Extras compartidos de las landings por modo de operación
 * (/control-de-personal-en-campo, /gestion-de-turnos-rotativos,
 * /control-horario-multiples-sucursales, /horas-trabajadas-por-cliente
 * y próximas: 24 hs).
 * Se carga DESPUÉS de comercio.css (bloques cm-*). Acá solo van piezas
 * que no existen en las landings de rubro: evidencia anti-fraude, modos
 * de fichaje, placeholder del panel y tarjetas de audiencia hacia /rubros/*.
 */

/* Hero video: póster en alta (webp) y tope de ancho para no estirarlo en mobile. */
.op-hero-video {
    position: relative;
    cursor: pointer;
    aspect-ratio: 16 / 9;
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.op-hero-video img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Showcase / plat-grid con 2 o 3 ítems: el default de comercio.css asume 4 columnas. */
.cm-showcase-tabs--3 {
    grid-template-columns: repeat(3, 1fr);
}
.cm-showcase-tabs--2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 400px;
}
.cm-plat-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}
.cm-plat-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
    margin-inline: auto;
    width: 100%;
}

/* Hero solo imagen (sin video): misma caja visual que el póster. */
.op-hero-shot {
    margin: 0;
    aspect-ratio: 16 / 9;
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.op-hero-shot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Captura ancha de producto (p. ej. grilla de ciclos): no recortar laterales. */
.op-hero-shot--wide {
    aspect-ratio: 1024 / 390;
    max-width: 560px;
    background: var(--gray-50);
}
.op-hero-shot--wide img {
    object-fit: contain;
}
/* Panel Vista general (crop angosto ~16:10): más zoom legible en hero. */
.op-hero-shot--panel {
    aspect-ratio: 1024 / 639;
    max-width: 560px;
    background: var(--gray-50);
}
.op-hero-shot--panel img {
    object-fit: contain;
}

/* ── Evidencia foto/audio (banda propia) ───────────────── */
.op-evidence {
    padding: var(--spacing-3xl) 0;
    background: var(--blue-900);
    color: var(--bg-white);
}
.op-evidence-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}
.op-evidence-badge {
    display: inline-block;
    padding: 6px 14px;
    margin-bottom: var(--spacing-lg);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.op-evidence h2 {
    margin: 0 0 var(--spacing-lg);
    font-size: 2rem;
    line-height: 1.2;
    color: var(--bg-white);
}
.op-evidence p {
    margin: 0 0 var(--spacing-lg);
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--bg-white);
    opacity: 0.9;
}
.op-evidence p strong { color: var(--bg-white); }
.op-evidence-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}
.op-evidence-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    line-height: 1.5;
}
.op-evidence-item img {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}
.op-evidence-figure {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.op-evidence-figure img {
    display: block;
    width: auto;
    max-width: 220px;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
}

/* ── Placeholder captura panel (multisucursal) ─────────── */
.op-panel-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin: 0;
    padding: var(--spacing-xl);
    text-align: center;
    background: var(--gray-50);
    border: 2px dashed var(--gray-200);
    border-radius: var(--border-radius-xl);
    color: var(--text-muted);
    box-sizing: border-box;
}
.op-panel-placeholder--hero {
    aspect-ratio: 2 / 1;
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
    box-shadow: var(--shadow-lg);
}
.op-panel-placeholder--full {
    aspect-ratio: 2 / 1;
    width: 100%;
    max-width: 1100px;
    margin-inline: auto;
    min-height: 280px;
}
.op-panel-placeholder-kicker {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--blue-500);
}
.op-panel-placeholder-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-default);
}
.op-panel-placeholder-meta,
.op-panel-placeholder-alt {
    font-size: 0.875rem;
    line-height: 1.45;
    max-width: 36rem;
}
.op-panel-placeholder-alt {
    margin-top: var(--spacing-sm);
    opacity: 0.85;
}

/* Cuando llegue la captura: <picture> desktop 2:1 + crop mobile. */
.op-panel-shot {
    margin: 0;
    width: 100%;
    max-width: 1100px;
    margin-inline: auto;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    background: var(--gray-50);
    aspect-ratio: 1024 / 639;
}
.op-panel-shot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.op-panel-shot--hero {
    max-width: 560px;
}
/* Captura de UI completa (sin cropeo de .cm-plat-banner height:340px). */
.op-panel-shot--contain {
    aspect-ratio: auto;
    max-width: 1100px;
}
.op-panel-shot--contain img {
    height: auto;
    object-fit: unset;
}

/* ── Dos / tres modos de fichaje ───────────────────────── */
.op-modes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
}
.op-modes--3 {
    grid-template-columns: repeat(3, 1fr);
}
.op-mode {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    padding: var(--spacing-xl);
    background: var(--bg-white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-sm);
}
.op-mode h3 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.3;
}
.op-mode p { margin: 0; }
.op-mode-meta {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.op-mode-link {
    margin-top: auto;
    font-weight: 700;
    color: var(--blue-500);
    text-decoration: none;
}
.op-mode-link:hover { text-decoration: underline; }
.op-mode-visual {
    margin: 0;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--gray-50);
}
.op-mode-visual img {
    display: block;
    width: 100%;
    height: auto;
}
/* Mockups de celular Lite: asset 300×600 con fondo transparente; no upscalear. */
.op-mode-visual--phone {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-lg) 0;
    background: transparent;
    overflow: visible;
}
.op-mode-visual--phone img {
    width: auto;
    max-width: 220px;
    height: auto;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.12));
}

/* ── Audiencia → rubros ────────────────────────────────── */
.op-audience {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}
a.op-audience-card {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    background: var(--bg-white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-sm);
    color: inherit;
    text-decoration: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
a.op-audience-card:hover {
    border-color: var(--blue-200);
    box-shadow: var(--shadow-md);
}
.op-audience-card h3 {
    margin: 0;
    font-size: 1.05rem;
}
.op-audience-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}
.op-audience-card img {
    width: 28px;
    height: 28px;
}

/* Enlaces de títulos en la banda de gestión operativa */
.cm-plat-item h3 a {
    color: inherit;
    text-decoration: none;
}
.cm-plat-item h3 a:hover {
    color: var(--blue-500);
    text-decoration: underline;
}

@media (max-width: 900px) {
    .op-evidence-grid,
    .op-modes,
    .op-modes--3 { grid-template-columns: 1fr; }
    .op-audience { grid-template-columns: repeat(2, 1fr); }
    .op-panel-placeholder--full { aspect-ratio: 4 / 3; min-height: 220px; }
}

@media (max-width: 560px) {
    .op-audience { grid-template-columns: 1fr; }
}
