html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; }
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,footer, header, hgroup, menu, nav, section {display: block;}
body {line-height: 1;}
ol, ul {list-style: none;}
blockquote, q {quotes: none;}
blockquote:before, blockquote:after,q:before, q:after {content: '';content: none;}
table {border-collapse: collapse;border-spacing: 0;}
/*** FIN RESETEADOR ***/

:root {
	--bg: #f0f4f8;
	--surface: #ffffff;
	--primary: #4a6cf7;
	--primary-hover: #3b5de7;
	--danger: #e74c3c;
	--danger-hover: #c0392b;
	--success: #27ae60;
	--success-hover: #209150;
	--warning: #f39c12;
	--warning-hover: #de8e10;
	--text: #2c3e50;
	--text-light: #6b7c93;
	--border: #e0e6ed;
	--shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	--shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
	--radius: 10px;
	--radius-sm: 6px;
	--transition: 0.2s ease;
}

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

body {
	font-family: system-ui, -apple-system, sans-serif;
	background: var(--bg);
	color: var(--text);
	min-height: 100vh;
	line-height: 1.6;
}

table {
	margin: 0px;
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0 6px;
}

table, th, td { border: 1px solid #c0c0c0; }
th { background-color: #dce9f7; }
td { padding: 0 5px 0 5px; }

tbody tr:nth-child(even) {
  background-color: var(--bg);
}

textarea {
	display: block; width: 100%;
	box-sizing: border-box;
	resize: none;
	padding: 10px;
	border-radius: 5px;
	border: solid 1px #c0c0c0;
	font-size: 1.1em;
	font-family: system-ui, -apple-system, sans-serif;
}

input {
	padding: 5px 10px; border-radius: 5px; border: solid 1px #c0c0c0; font-size: 1.1em;
	height: 40px;
	font-family: system-ui, -apple-system, sans-serif;
	vertical-align: middle;
	display: inline-block;
}

select {
	background-color: #fff;;
	height: 40px;
	padding: 5px 10px; border-radius: 5px; border: solid 1px #c0c0c0; font-size: 1.1em;
	cursor: pointer;
}

label { margin-bottom: 20px; }

.container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0px 24px;
}

.main {
	background: var(--surface);
	border-radius: var(--radius);
	padding: 15px 15px;
	margin: 10px 0 0 0;
	box-shadow: var(--shadow);
	/*display: flex;*/
	gap: 16px;
}

/* Header */
.header {
	background: var(--surface);
	border-radius: var(--radius);
	padding: 10px 15px;
	margin: 10px 0 0 0;
	box-shadow: var(--shadow);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}
.header h1 {
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--primary);
	display: flex;
	align-items: center;
	gap: 10px;
}

td > a {
	text-decoration: none;
	color: black;
}
td > a:hover {
	color: blue;
}

/* Breadcrumbs */
.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 5px;
	font-size: 0.9rem;
	align-items: center;
}
.breadcrumbs a {
	color: var(--primary);
	text-decoration: none;
	font-weight: 500;
	padding: 4px 10px;
	border-radius: 4px;
	transition: var(--transition);
}
.breadcrumbs a:hover {
	background: rgba(74, 108, 247, 0.1);
}
.breadcrumbs .separator {
	color: var(--text-light);
	font-size: 0.8rem;
}
.breadcrumbs .current {
	color: var(--text);
	font-weight: 700;
	padding: 4px 10px;
	background: var(--border);
	border-radius: 4px;
}

/* Mensajes */
.alert {
	padding: 14px 20px;
	border-radius: var(--radius-sm);
	margin-top: 10px;
	margin-bottom: 10px;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 10px;
	animation: slideIn 0.3s ease;
}
@keyframes slideIn {
	from { opacity: 0; transform: translateY(-10px); }
	to { opacity: 1; transform: translateY(0); }
}
.alert-success {
	background: #d4edda;
	color: #155724;
	border-left: 4px solid var(--success);
}
.alert-error {
	background: #fce4e4;
	color: #721c24;
	border-left: 4px solid var(--danger);
}

.file-icon {
	font-size: 1.8rem;
	text-align: center;
}

/* Modal */
.modal-overlay {
	display: none;
	position: fixed;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background: rgba(0, 0, 0, 0.6);
	z-index: 1000;
	justify-content: center;
	align-items: center;
	animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-overlay.active { display: flex; }
.modal {
	background: var(--surface);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	padding: 28px;
	max-width: 90vw;
	max-height: 85vh;
	overflow-y: auto;
	animation: scaleIn 0.25s ease;
	position: relative;
}
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.modal-sm { width: 450px; }
.modal-lg { width: 800px; }
.modal h2 {
	margin-bottom: 20px;
	font-size: 1.3rem;
	color: var(--text);
}
.modal-close {
	position: absolute;
	top: 12px; right: 16px;
	background: none;
	border: none;
	font-size: 1.6rem;
	cursor: pointer;
	color: var(--text-light);
	transition: var(--transition);
	padding: 4px 8px;
	border-radius: 4px;
}
.modal-close:hover {
	color: var(--danger);
	background: rgba(231, 76, 60, 0.1);
}
.modal-body { margin-bottom: 20px; }
.modal-body img {
	max-width: 100%;
	max-height: 65vh;
	border: solid 1px #c0c0c0;
	border-radius: var(--radius-sm);
	display: block;
	margin: 0 auto;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.modal-body .file-info {
	text-align: center;
	padding: 20px;
}
.modal-body .file-info .big-icon {
	font-size: 5rem;
	display: block;
	margin-bottom: 15px;
}
.modal-footer {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
}

.extension-badge {
	display: inline-block;
	background: #e8ecf1;
	padding: 3px 8px;
	border-radius: 4px;
	font-weight: 700;
	font-size: 0.85rem;
	margin-left: 6px;
	color: var(--text-light);
}

.suspendido {background-color: #ffc0cb;}

/****** columnas ******/
.text-right { text-align: right; }

.row { display: flex; margin: 0px; flex-wrap: wrap; }

.col { display: inline-block; padding: 5px 5px; }
.col > h1 { font-size: 1.6rem; font-weight: 700; text-align: center; }
.col > h2 { font-size: 1.3rem; font-weight: 700; }
.col > h3 { font-size: 1.1rem; font-weight: 700; }

.col-1 { width: 10%; }
.col-2 { width: 20%; } 
.col-3 { width: 30%; }
.col-4 { width: 40%; }
.col-5 { width: 50%; }
.col-6 { width: 60%; }
.col-7 { width: 70%; }
.col-8 { width: 80%; }
.col-9 { width: 90%; }
.col-10 { width: 100%; }
.border { border: solid 1px #f00; }

.mt { margin-top: 10px;} 
.mb { margin-bottom: 10px;}

.boton {
	height: 40px;
	padding: 10px 18px;
	margin: 0px;
	border: none;
	border-radius: var(--radius-sm);
	gap: 10px;
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	transition: all var(--transition);
	white-space: nowrap;
	vertical-align: middle;
	width: 100%;
	display: block;
	text-align: center;
}
.boton img { height: 20px; }
.boton-danger { background: var(--danger); color: #fff; }
.boton-danger:hover { background: var(--danger-hover); transform: translateY(-1px); }
.boton-warning { background: var(--warning); color: #fff; }
.boton-warning:hover { background: var(--warning-hover); transform: translateY(-1px); }
.boton-success { background: var(--success); color: #fff; }
.boton-success:hover { background: var(--success-hover); transform: translateY(-1px); }
.boton-primary { background: var(--primary); color: #fff; }
.boton-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.boton-sm{ width: 30px; height: 30px; cursor: pointer; margin: 5px 0;}
.boton-sm:hover{ background: var(--primary-hover); } 
.boton-icon {
	font-size: 1.2rem;
	text-align: center;
}

/* .ocultar-a { display: none }; */
.block { width: 100%; }
/* .input-buscar { width: 300px; } */

/* Pantallas grandes (más de 768px) */
@media (min-width: 769px) {
  .ocultar-b { display: table-cell; }
  .ocultar-a { display: none; }
}
/* Pantallas pequeñas por defecto */
@media (max-width: 768px) {
	.col-1 { width: 100%; }
	.col-2 { width: 100%; }
	.col-3 { width: 100%; }
	.col-4 { width: 100%; }
	.col-5 { width: 100%; }
	.col-6 { width: 100%; }
	.col-7 { width: 100%; }
	.col-8 { width: 100%; }
	.col-9 { width: 100%; }
	.boton { 
	  width: 100%; /* Ocupa todo el ancho del div */
	  display: block; /* Viste al botón como bloque */
	  padding: 10px; margin: 0px;/* Espacio interno opcional */
	}
  
	.ocultar-b {
		display: none;
	}
	.ocultar-a {
		display: table-cell;
	}
  
  .file-span { display: none; }
  .file-name { width: 170px; }
  .file-actions { width: 150px; }
}
