/* ==========================================================================
   1. VARIABLES GLOBALES Y RESET
   ========================================================================== */
:root {
	--primary: #00563B;         /* Verde Institucional CONALEP */
	--primary-hover: #003d29;
	--accent: #D4AF37;          /* Dorado institucional */
	--bg-gray: #f4f6f9;
	--card-bg: #ffffff;
	--text-color: #2c3e50;
	--text-muted: #7f8c8d;
	--radius: 12px;
	--shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
	--shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Inter', 'Poppins', sans-serif;
}

body {
	background-color: var(--bg-gray);
	color: var(--text-color);
	margin: 0;
	padding: 0;
}

/* ==========================================================================
   2. ESTILOS EXCLUSIVOS DEL LOGIN (login.xhtml)
   ========================================================================== */
body.login-body-page {
	display: flex;
	align-items: center;      /* Centrado vertical */
	justify-content: center; /* Centrado horizontal */
	min-height: 100vh;
	width: 100vw;
	margin: 0;
	padding: 20px;
	background: linear-gradient(135deg, #003d29 0%, var(--primary) 50%, #1e3c72 100%);
	overflow: hidden;
	box-sizing: border-box;
}

.login-wrapper {
	max-width: 450px;
	width: 100%;
	margin: auto;             /* Refuerzo para centrado en navegadores antiguos */
	background: rgba(255, 255, 255, 0.96);
	border-radius: 16px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
	backdrop-filter: blur(12px);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.3);
	animation: fadeInLogin 0.5s ease-in-out;
}

@keyframes fadeInLogin {
	from { opacity: 0; transform: translateY(15px); }
	to { opacity: 1; transform: translateY(0); }
}

.login-header {
	background: #ffffff;
	padding: 2rem 1.5rem 1rem 1.5rem;
	text-align: center;
	border-bottom: 1px solid #f1f5f9;
}

.login-header .logo-img {
	max-width: 260px;
	height: auto;
	object-fit: contain;
}

.login-sub-title {
	margin-top: 1rem;
	font-size: 1rem;
	font-weight: 700;
	color: var(--primary);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.login-body {
	padding: 2rem 2.2rem;
}

.input-row {
	position: relative;
	margin-bottom: 1.25rem;
	display: flex;
	align-items: center;
}

.input-row i {
	position: absolute;
	left: 15px;
	color: var(--primary);
	font-size: 1.1rem;
	z-index: 2;
	transition: color 0.3s ease;
}

/* Inputs de PrimeFaces en el Login */
.input-row .ui-inputfield {
	width: 100% !important;
	padding: 0.85rem 1rem 0.85rem 2.8rem !important;
	border-radius: 10px !important;
	border: 1.5px solid #cbd5e1 !important;
	font-size: 0.95rem !important;
	color: var(--text-color) !important;
	background: #f8fafc !important;
	box-shadow: none !important;
	transition: all 0.3s ease !important;
}

.input-row .ui-inputfield:focus {
	border-color: var(--primary) !important;
	background: #ffffff !important;
	box-shadow: 0 0 0 4px rgba(0, 86, 59, 0.12) !important;
}

.actions-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 1.2rem 0 1.8rem 0;
	font-size: 0.875rem;
}

.link-action {
	color: var(--primary) !important;
	font-weight: 600;
	text-decoration: none !important;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	transition: opacity 0.2s ease;
}

.link-action:hover {
	opacity: 0.8;
	text-decoration: underline !important;
}

.btn-submit-container {
	margin-top: 1rem;
}

.btn-submit-container .ui-button {
	width: 100% !important;
	padding: 0.75rem !important;
	background: var(--primary) !important;
	border: none !important;
	border-radius: 10px !important;
	font-size: 1.05rem !important;
	font-weight: 600 !important;
	color: #ffffff !important;
	box-shadow: 0 4px 12px rgba(0, 86, 59, 0.25) !important;
	transition: all 0.25s ease !important;
	cursor: pointer !important;
}

.btn-submit-container .ui-button:hover {
	background: var(--primary-hover) !important;
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 86, 59, 0.35) !important;
}

.btn-submit-container .ui-button .ui-button-text,
.btn-submit-container .ui-button .ui-icon {
	color: #ffffff !important;
}

/* ==========================================================================
   3. ESTILOS EXCLUSIVOS DEL PANEL PRINCIPAL (ecrear.xhtml)
   ========================================================================== */
.header-container {
	background: linear-gradient(135deg, var(--primary) 0%, #002e1f 100%);
	color: #fff;
	padding: 2rem 1.5rem;
	box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.header-content {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
}

.header-title h1 {
	font-size: 1.8rem;
	font-weight: 700;
	margin: 0;
}

.header-title p {
	font-size: 0.95rem;
	opacity: 0.85;
	margin: 0.3rem 0 0 0;
}

.nav-toolbar {
	max-width: 1200px;
	margin: -1.5rem auto 2rem auto;
	padding: 0 1rem;
}

.nav-card {
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(10px);
	border-radius: var(--radius);
	padding: 1rem 1.5rem;
	box-shadow: var(--shadow);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.app-links {
	display: flex;
	gap: 1rem;
	align-items: center;
	flex-wrap: wrap;
}

.app-btn {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.6rem 1.2rem;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	color: var(--text-color);
	text-decoration: none;
	font-weight: 500;
	font-size: 0.9rem;
	transition: all 0.25s ease;
	box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.app-btn:hover {
	background: var(--primary);
	color: #ffffff;
	transform: translateY(-2px);
}

.app-btn img {
	width: 24px;
	height: 24px;
	object-fit: contain;
}

.main-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem 3rem 1rem;
}

.section-title {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--primary);
}

.downloads-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 1.25rem; /* Ajuste suave del espacio entre tarjetas */
}

/* Tarjeta con un 25% menos de relleno */
.download-card {
	background: var(--card-bg);
	border-radius: var(--radius);
	padding: 1.15rem;           /* Moderado (original era 1.5rem) */
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: all 0.3s ease;
	border-top: 4px solid var(--primary);
}

.download-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-hover);
}

.card-info {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin-bottom: 1rem;
}

/* Icono ligeramente más estilizado */
.card-icon {
	background: #e6f0ed;
	color: var(--primary);
	width: 38px;               /* Moderado (original era 42px) */
	height: 38px;
	border-radius: 9px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	flex-shrink: 0;
}

/* Texto legible de tamaño equilibrado */
.card-text {
	font-size: 0.9rem;          /* Moderado (original era 0.95rem) */
	font-weight: 600;
	color: var(--text-color);
	line-height: 1.3;
}

.btn-download {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.525rem 0;        /* Moderado (original era 0.625rem) */
	background-color: var(--primary);
	color: #ffffff !important;
	border-radius: 6px;
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 500;
	transition: background 0.2s ease;
	border: none;
	cursor: pointer;
}

.btn-download:hover {
	background-color: var(--primary-hover);
}

/* Subida PUSH y Overrides de PrimeFaces */
.ui-fileupload-buttonbar {
	padding: 0 !important;
	background: transparent !important;
	border: none !important;
}

.ui-fileupload-choose {
	background: var(--primary) !important;
	border-color: var(--primary) !important;
	border-radius: 6px !important;
}

.uploader-minimalista .ui-fileupload-choose,
.uploader-minimalista .ui-fileupload-choose .ui-button-text,
.uploader-minimalista .ui-button,
.uploader-minimalista .ui-button-text {
	color: #ffffff !important;
}

#archivoX {
	color: #ffffff !important;
}

/* Redes Sociales Flotantes */
.social-bar {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	z-index: 100;
}

.social-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: var(--shadow);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--primary);
	text-decoration: none;
	transition: transform 0.2s ease;
}

.social-btn:hover {
	transform: scale(1.1);
	background: var(--primary);
	color: #ffffff;
}


/*para el reseteo de contra*/
.panel-grid-custom,
.panel-grid-custom .ui-panelgrid-cell {
	background: transparent !important;
	border: none !important;
	padding: 0.25rem 0 !important;
	width: 100% !important;
}

.panel-grid-custom .ui-inputfield {
	width: 100% !important;
	padding: 0.75rem 1rem !important;
	border-radius: 10px !important;
	border: 1.5px solid #cbd5e1 !important;
	font-size: 0.95rem !important;
	background: #f8fafc !important;
	box-shadow: none !important;
	transition: all 0.3s ease !important;
}

.panel-grid-custom .ui-inputfield:focus {
	border-color: var(--primary) !important;
	background: #ffffff !important;
	box-shadow: 0 0 0 4px rgba(0, 86, 59, 0.12) !important;
}