* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Image download protection */
img,
.folder-thumbnail,
.file-thumb,
.photo-thumb {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    pointer-events: auto;
}

img {
    -webkit-user-drag: none;
    user-drag: none;
}

:root {
    --bg-dark: #f8fafc;
    --bg-main: #ffffff;
    --bg-card: #ffffff;
    --bg-hover: #f1f5f9;
    --bg-input: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --primary: #3b82f6;
    --director-oro: #ffcc00;
    --primary-light: #dbeafe;
    --primary-hover: #2563eb;
    --primary-text: #ffffff;
    --success: #10b981;
    --success-light: #d1fae5;
    --error: #ef4444;
    --error-light: #fef2f2;
    --warning: #f59e0b;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --radius: 6px;
    --radius-sm: 4px;
    --radius-lg: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
}


/* las cajas de búsqueda y los combos se ven igual que las cajas de texto (Safari
   las redondea): borde gris fino, esquinas redondeadas y, al usarlos, un anillo gris suave. Sin especificidad, para que manden
   los estilos propios de cada pantalla */
input[type="search"] {
    -webkit-appearance: none;
    appearance: none;
}
:where(input[type="search"]) {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-input);
    color: var(--text-primary);
}
:where(select) {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--bg-input);
    color: var(--text-primary);
}
:where(select):focus,
:where(select):focus-visible,
:where(input[type="search"]):focus,
:where(input[type="search"]):focus-visible {
    outline: none;
    border-color: var(--text-muted);
    box-shadow: 0 0 0 3px var(--border-light);
}

/* corona de la selección del director (iconoDirector en utilidades.js) */
.icono-director { width: 1.05em; height: 1.05em; vertical-align: -0.15em; fill: var(--director-oro); flex: none; }
