/* OneVisit - Paleta de colores corporativa ArguedasOne */
:root {
    --color-primary: #1d4ed8;
    --color-primary-dark: #1e40af;
    --color-primary-light: #3b82f6;
    --color-accent: #06b6d4;
    --color-success: #16a34a;
    --color-warning: #f59e0b;
    --color-danger: #dc2626;
    --color-info: #0ea5e9;
    --color-neutral: #64748b;

    --color-bg: #f1f5f9;
    --color-card: #ffffff;
    --color-text: #0f172a;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;

    --sidebar-bg: linear-gradient(180deg, #0b1d3a 0%, #1e3a8a 100%);
    --sidebar-text: #e2e8f0;
    --sidebar-active: rgba(255,255,255,0.16);

    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.12);
    --sidebar-w: 240px;
    --topbar-h: 60px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Shell ---- */
.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    grid-template-rows: var(--topbar-h) 1fr;
    grid-template-areas:
        "sidebar topbar"
        "sidebar main";
}

/* ---- Sidebar ---- */
.sidebar {
    grid-area: sidebar;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    padding: 18px 12px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 14px;
}

.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #fff;
    padding: 4px;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: 0.3px; }
.brand-sub { font-size: 11px; color: rgba(255,255,255,0.65); }

.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--sidebar-text);
    font-size: 14px;
    transition: background 0.15s;
}
.nav-link:hover { background: var(--sidebar-active); text-decoration: none; }
.nav-icon { width: 22px; text-align: center; }

.sidebar-foot { padding: 10px 8px; font-size: 11px; color: rgba(255,255,255,0.5); }

.brand-inst {
    padding: 6px 10px 12px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- Topbar ---- */
.topbar {
    grid-area: topbar;
    background: var(--color-card);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar-title { font-size: 17px; font-weight: 600; }

.topbar-user { display: flex; align-items: center; gap: 12px; }
.user-info { text-align: right; line-height: 1.1; }
.user-name { font-weight: 600; font-size: 13px; display: block; }
.user-role { font-size: 11px; color: var(--color-text-muted); }
.user-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.logout-form { margin: 0; }
.btn-logout {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    width: 36px; height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
}
.btn-logout:hover { background: var(--color-bg); color: var(--color-danger); }

/* ---- Main ---- */
.main { grid-area: main; padding: 22px 28px; }

.page-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px;
}
.page-header h2 { margin: 0; font-size: 22px; }

/* ---- Cards ---- */
.card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: var(--shadow);
    margin-bottom: 18px;
}
.card-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px;
}
.card-title { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--color-text); }

/* ---- Dashboard cards ---- */
.dash-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}
.dash-card {
    background: var(--color-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-left: 4px solid var(--color-primary);
}
.dash-card-icon { font-size: 28px; }
.dash-card-value { font-size: 26px; font-weight: 700; line-height: 1; }
.dash-card-label { font-size: 12px; color: var(--color-text-muted); margin-top: 4px; }
.dash-card--primary { border-left-color: var(--color-primary); }
.dash-card--success { border-left-color: var(--color-success); }
.dash-card--warning { border-left-color: var(--color-warning); }
.dash-card--info { border-left-color: var(--color-info); }
.dash-card--neutral { border-left-color: var(--color-neutral); }
.dash-card--accent { border-left-color: var(--color-accent); }

.dash-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
}
@media (max-width: 1000px) { .dash-grid { grid-template-columns: 1fr; } }

/* ---- Tables ---- */
.table, .table-mini {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.table th, .table-mini th {
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    border-bottom: 2px solid var(--color-border);
    padding: 10px 8px;
}
.table td, .table-mini td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}
.table tbody tr:hover { background: #f8fafc; }
.center { text-align: center; }
.muted { color: var(--color-text-muted); }
.small { font-size: 12px; }

/* ---- Filters ---- */
.filters-row {
    display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
    margin-bottom: 14px;
}
.filters-row .input { flex: 1; min-width: 180px; }

/* ---- Forms ---- */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group--full { grid-column: 1 / -1; }
.form-label { font-size: 13px; font-weight: 600; color: var(--color-text); }

.input, .login-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .login-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

textarea.input { resize: vertical; min-height: 60px; }

.field-error { color: var(--color-danger); font-size: 12px; }
.text-success { color: var(--color-success); }

/* ---- Input con botón de acción al lado ---- */
.input-with-action {
    display: flex;
    gap: 0;
    align-items: stretch;
}
.input-with-action .input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    flex: 1;
    min-width: 0;
}
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    background: var(--color-primary);
    color: #fff;
    border: 1px solid var(--color-primary);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: var(--radius-sm);
    border-bottom-right-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}
.btn-action:hover { background: var(--color-primary-dark); }
.btn-action:disabled { opacity: 0.6; cursor: wait; }
.btn-action-icon { font-size: 14px; }

@media (max-width: 480px) {
    .btn-action-text { display: none; }
    .btn-action { padding: 0 12px; }
}

.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.check input { width: 16px; height: 16px; }

.actions-row {
    display: flex; gap: 10px; justify-content: flex-end;
    margin-top: 8px;
}

/* ---- Buttons ---- */
.btn-primary, .btn-secondary, .btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    transition: all 0.15s;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); text-decoration: none; color: #fff; }
.btn-secondary { background: #fff; border-color: var(--color-border); color: var(--color-text); }
.btn-secondary:hover { background: var(--color-bg); text-decoration: none; }
.btn-danger { background: var(--color-danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-block { width: 100%; justify-content: center; }
.btn-link { background: transparent; border: none; color: var(--color-primary); cursor: pointer; padding: 4px 8px; font-size: 13px; font-family: inherit; }
.btn-link-danger { color: var(--color-danger); }
.btn-link:hover { text-decoration: underline; }

.actions { white-space: nowrap; }

/* ---- Banner de institución (en formulario de visitas) ---- */
.inst-banner {
    background: linear-gradient(90deg, #1e3a8a 0%, #1d4ed8 100%);
    color: #fff;
    padding: 12px 18px;
    border-radius: var(--radius);
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    box-shadow: var(--shadow);
}
.inst-banner-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.7px; opacity: 0.75; }
.inst-banner-name { font-size: 16px; font-weight: 700; }
.inst-banner-value { font-size: 14px; font-weight: 600; }

/* ---- Botones de exportación de reportes ---- */
.reporte-export { display: flex; gap: 8px; flex-wrap: wrap; }
.reporte-export .btn-secondary,
.reporte-export .btn-danger,
.reporte-export .btn-primary { padding: 8px 14px; }

/* ---- Modal de detalle (Reportes) ---- */
.detalle-modal {
    display: none;
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 9990;
    padding: 16px;
    align-items: center;
    justify-content: center;
}
.detalle-modal.open { display: flex; }
.detalle-modal-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    width: 100%;
    max-width: 880px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.detalle-modal-head {
    background: linear-gradient(90deg, #1e3a8a 0%, #1d4ed8 100%);
    color: #fff;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}
.detalle-modal-close {
    background: transparent;
    border: none;
    color: #fff;
    width: 32px; height: 32px;
    font-size: 22px;
    cursor: pointer;
    border-radius: 50%;
}
.detalle-modal-close:hover { background: rgba(255,255,255,0.18); }
.detalle-modal-body {
    padding: 18px 20px;
    overflow-y: auto;
    flex: 1;
}
.detalle-modal-foot {
    padding: 12px 18px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
}

.detalle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 14px;
}
.detalle-section-title {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--color-primary);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 4px;
}

@media (max-width: 600px) {
    .detalle-modal { padding: 0; }
    .detalle-modal-box { max-height: 100vh; border-radius: 0; }
    .detalle-grid { grid-template-columns: 1fr; }
}

/* ---- Badges ---- */
.badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    color: #fff;
}
.badge-success { background: var(--color-success); }
.badge-warning { background: var(--color-warning); }
.badge-info { background: var(--color-info); }
.badge-error { background: var(--color-danger); }
.badge-neutral { background: var(--color-neutral); }

/* ---- Alerts ---- */
.alert { padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 14px; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

.text-error { color: var(--color-danger); }
.mb-2 { margin-bottom: 8px; }

/* ---- Tipo selector ---- */
.tipo-selector { display: flex; gap: 14px; flex-wrap: wrap; }
.tipo-option input { display: none; }
.tipo-box {
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    padding: 18px 26px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    min-width: 140px;
}
.tipo-option input:checked + .tipo-box {
    border-color: var(--color-primary);
    background: rgba(29, 78, 216, 0.06);
    box-shadow: var(--shadow);
}
.tipo-icon { font-size: 32px; }
.tipo-label { font-weight: 600; margin-top: 6px; }

/* ---- Fotos (slots con cámara / archivo / quitar) ---- */
.fotos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.foto-slot {
    position: relative;
    aspect-ratio: 1;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s;
}
.foto-slot:hover { border-color: var(--color-primary); }
.foto-file { display: none; }
.foto-preview {
    display: none;
    width: 100%; height: 100%;
    object-fit: cover;
}
.foto-slot.has-image .foto-empty { display: none; }
.foto-slot.has-image { border-style: solid; border-color: var(--color-primary); }
.foto-slot.has-image .foto-preview { display: block; }
.foto-slot.has-image .foto-remove { display: flex; }

.foto-remove {
    display: none;
    position: absolute;
    top: 6px; right: 6px;
    width: 26px; height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(220, 38, 38, 0.92);
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.foto-remove:hover { background: #b91c1c; }

.foto-empty {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 8px;
    color: var(--color-text-muted); font-size: 13px;
    width: 100%;
}
.foto-empty-icon { font-size: 28px; }
.foto-empty-label { font-size: 12px; margin-bottom: 6px; }
.foto-actions { display: flex; flex-direction: column; gap: 4px; width: 100%; }

.btn-mini {
    background: #fff;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.15s;
}
.btn-mini:hover { border-color: var(--color-primary); background: var(--color-bg); }
.btn-cam:hover { background: rgba(29, 78, 216, 0.06); }

/* ---- Modal de cámara ---- */
.camera-modal {
    display: none;
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.78);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.camera-modal.open { display: flex; }
.camera-modal-box {
    background: #0b1d3a;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    max-width: 720px;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.camera-modal-head {
    background: #1e3a8a;
    color: #fff;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}
.camera-close {
    background: transparent;
    border: none;
    color: #fff;
    width: 32px; height: 32px;
    font-size: 22px;
    cursor: pointer;
    border-radius: 50%;
}
.camera-close:hover { background: rgba(255,255,255,0.15); }
.camera-stage {
    background: #000;
    position: relative;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.camera-stage video {
    width: 100%; height: 100%;
    object-fit: cover;
}
.camera-error {
    color: #fca5a5;
    padding: 24px;
    text-align: center;
    font-size: 14px;
}
.camera-modal-actions {
    padding: 14px 18px;
    background: #0b1d3a;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.camera-modal-actions .btn-primary,
.camera-modal-actions .btn-secondary { min-width: 130px; justify-content: center; }

.fotos-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}
.fotos-galeria img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

/* ---- Detail list ---- */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-list { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; margin: 0; font-size: 14px; }
.detail-list dt { color: var(--color-text-muted); font-weight: 600; }
.detail-list dd { margin: 0; }

/* ---- Hamburguesa + cerrar sidebar (sólo móvil) ---- */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px; height: 40px;
    border-radius: 8px;
    margin-right: 6px;
}
.hamburger:hover { background: var(--color-bg); }
.hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: var(--color-text);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.2s;
}
.sidebar-close {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    width: 36px; height: 36px;
    font-size: 26px;
    cursor: pointer;
    border-radius: 50%;
    margin-left: auto;
}
.sidebar-close:hover { background: rgba(255,255,255,0.15); }

.sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.25s;
}
.sidebar-overlay.open { display: block; opacity: 1; }

body.no-scroll { overflow: hidden; }

/* ---- Tablet ---- */
@media (max-width: 1024px) {
    .app-shell { --sidebar-w: 220px; }
    .main { padding: 18px 20px; }
    .form-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
    .topbar-title { font-size: 16px; }
}

/* ---- Móvil ---- */
@media (max-width: 768px) {
    .app-shell {
        grid-template-columns: 1fr;
        grid-template-areas: "topbar" "main";
    }

    .hamburger { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; }
    .sidebar-close { display: inline-flex; align-items: center; justify-content: center; }

    /* Drawer */
    .sidebar {
        position: fixed;
        top: 0; left: 0;
        width: 280px; max-width: 86vw;
        height: 100vh;
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.28s ease;
        box-shadow: 0 0 25px rgba(0,0,0,0.4);
    }
    .sidebar.open { transform: translateX(0); }

    .topbar {
        padding: 0 14px;
        height: 56px;
    }
    .topbar-title {
        font-size: 15px;
        flex: 1;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        margin: 0 8px;
    }
    .user-info { display: none; }
    .topbar-user { gap: 8px; }
    .user-avatar { width: 34px; height: 34px; font-size: 14px; }
    .btn-logout { width: 34px; height: 34px; font-size: 14px; }

    .main { padding: 14px 14px 80px; }

    /* Cards y forms */
    .card { padding: 14px 14px; margin-bottom: 14px; }
    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .page-header h2 { font-size: 18px; }
    .page-header > div { display: flex; flex-wrap: wrap; gap: 8px; }

    .form-grid { grid-template-columns: 1fr; }
    .actions-row { flex-direction: column-reverse; }
    .actions-row .btn-primary,
    .actions-row .btn-secondary,
    .actions-row .btn-danger { width: 100%; justify-content: center; }

    /* Filtros */
    .filters-row { flex-direction: column; }
    .filters-row .input { width: 100%; }

    /* Dashboard cards más compactas */
    .dash-cards { gap: 10px; grid-template-columns: repeat(2, 1fr); }
    .dash-card { padding: 12px; gap: 10px; }
    .dash-card-icon { font-size: 22px; }
    .dash-card-value { font-size: 20px; }
    .dash-card-label { font-size: 11px; }

    .dash-grid { grid-template-columns: 1fr; gap: 14px; }

    /* Tablas con scroll horizontal */
    .card .table,
    .card .table-mini { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }

    /* Tipo selector más amplio */
    .tipo-selector { gap: 10px; }
    .tipo-box { padding: 14px 18px; min-width: 0; flex: 1; }

    /* Fotos: 2 por fila en móvil */
    .fotos-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .foto-empty-icon { font-size: 22px; }
    .btn-mini { padding: 6px 4px; font-size: 11px; }

    /* Detail grid stack */
    .detail-grid { grid-template-columns: 1fr; }
    .detail-list { grid-template-columns: 110px 1fr; font-size: 13px; }

    /* Botones de exportación full width */
    .reporte-export { width: 100%; }
    .reporte-export a { flex: 1; justify-content: center; }
}

/* ---- Pantallas muy pequeñas ---- */
@media (max-width: 420px) {
    .dash-cards { grid-template-columns: 1fr; }
    .topbar-title { display: none; }
    .fotos-grid { grid-template-columns: 1fr; }
    .detail-list { grid-template-columns: 1fr; }
    .detail-list dt { padding-top: 6px; }
}
