/* ============================================================================
 * documentos.css — Estilos propios de la página Documentos (rediseño UNIEBEC).
 * Fuera del template original (style.css). Se carga vía $page_styles.
 * ========================================================================== */

.doc-regs {
	padding: 80px 0 90px;
}

.doc-regs__title {
	text-align: center;
	color: #1A3F79;
	font-weight: 700;
	font-size: 40px;
	margin-bottom: 55px;
	overflow-wrap: break-word;
}

/* Grilla de tarjetas: 4 columnas que se adaptan en pantallas chicas. */
.doc-cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 26px;
	max-width: 1200px;
	margin: 0 auto;
}

@media (max-width: 991px) {
	.doc-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
	.doc-cards { grid-template-columns: 1fr; }
	.doc-regs__title { font-size: 30px; }
}

/* Tarjeta */
.doc-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: #fff;
	border: 1.6px solid #1f4486;
	border-radius: 18px;
	padding: 36px 26px 32px;
}

.doc-card__icon {
	margin-bottom: 22px;
	min-height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.doc-card__icon img {
	height: 56px;
	width: auto;
	max-width: 80px;
	object-fit: contain;
}

.doc-card__icon i {
	font-size: 48px;
	color: #E4122C;
}

.doc-card__title {
	color: #1A3F79;
	font-weight: 700;
	font-size: 19px;
	line-height: 1.3;
	margin-bottom: 18px;
}

.doc-card__desc {
	color: #5b6b7b;
	font-size: 15px;
	line-height: 1.7;
	margin-bottom: 26px;
	flex-grow: 1;
}

.doc-card__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin-top: auto;
	width: 100%;
}

.doc-card__btn {
	display: inline-block;
	border-radius: 999px;
	font-weight: 600;
	font-size: 15px;
	padding: 10px 34px;
	text-align: center;
	min-width: 150px;
	transition: all .2s ease;
	cursor: pointer;
	text-decoration: none;
}

.doc-card__btn--outline {
	background: #fff;
	border: 1.5px solid #1A3F79;
	color: #1A3F79;
}

.doc-card__btn--outline:hover {
	background: #1A3F79;
	color: #fff;
}

.doc-card__btn--solid {
	background: #1A3F79;
	border: 1.5px solid #1A3F79;
	color: #fff;
}

.doc-card__btn--solid:hover {
	background: #16315f;
	border-color: #16315f;
	color: #fff;
}

/* ============================================================================
 * Sección: Cronogramas Escolares Anuales
 * ========================================================================== */

.doc-crono__head {
	text-align: center;
	background: #fff;
	padding: 20px 0 55px;
}

.doc-crono__pretitle {
	display: block;
	color: #8a9bb5;
	font-weight: 700;
	font-size: 17px;
	margin-bottom: 8px;
}

.doc-crono__title {
	color: #1A3F79;
	font-weight: 700;
	font-size: 44px;
	margin-bottom: 18px;
	overflow-wrap: break-word;
}

.doc-crono__subtitle {
	color: #5b6b7b;
	font-size: 17px;
	line-height: 1.6;
	max-width: 760px;
	margin: 0 auto;
}

/* Franja gris a todo el ancho con las tarjetas */
.doc-crono__band {
	background: #e8edf1;
	padding: 70px 0 90px;
}

.doc-crono__cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 34px;
	max-width: 1000px;
	margin: 0 auto;
}

@media (max-width: 767px) {
	.doc-crono__cards { grid-template-columns: 1fr; }
	.doc-crono__title { font-size: 32px; }
}

.crono-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(26, 63, 121, .08);
	padding: 46px 40px 40px;
}

.crono-card__icon {
	margin-bottom: 24px;
	min-height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.crono-card__icon img {
	height: 60px;
	width: auto;
	max-width: 90px;
	object-fit: contain;
}

.crono-card__icon i {
	font-size: 54px;
	color: #E4122C;
}

.crono-card__title {
	color: #1A3F79;
	font-weight: 700;
	font-size: 20px;
	line-height: 1.3;
	margin-bottom: 16px;
}

.crono-card__desc {
	color: #5b6b7b;
	font-size: 15px;
	line-height: 1.7;
	margin-bottom: 30px;
	flex-grow: 1;
}

.crono-card__btn {
	display: inline-block;
	background: #1A3F79;
	border: 1.5px solid #1A3F79;
	color: #fff;
	border-radius: 999px;
	font-weight: 600;
	font-size: 15px;
	padding: 13px 36px;
	text-decoration: none;
	transition: all .2s ease;
}

.crono-card__btn:hover {
	background: #16315f;
	border-color: #16315f;
	color: #fff;
}

.crono-card__btn--off {
	opacity: .5;
	cursor: not-allowed;
}

/* ---- Modal visor de documento / imagen (mismo diseño que el nivel-modal de Oferta Académica) ---- */
.doc-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 56px 16px 40px;
	overflow-y: auto;
}

.doc-modal[hidden] {
	display: none;
}

.doc-modal__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(18, 28, 56, 0.55);
}

.doc-modal__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 960px;
	margin-top: 18px;
	background-color: #fff;
	border-radius: 18px;
	border-top: 5px solid #e1232f;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
	padding: 26px 26px 28px;
}

/* Pestaña roja con la X (idéntica a Oferta Académica) */
.doc-modal__close {
	position: absolute;
	top: -1px;
	left: 50%;
	transform: translate(-50%, -100%);
	width: 70px;
	height: 38px;
	background: #e1232f;
	border: 0;
	border-radius: 14px 14px 0 0;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 3;
}

.doc-modal__close i {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #fff;
	color: #e1232f;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.9rem;
}

.doc-modal__head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 16px;
}

.doc-modal__title {
	flex: 1 1 auto;
	color: #1A3F79;
	font-weight: 600;
	font-size: 18px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.doc-modal__download {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #1A3F79;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: background 0.2s ease;
}

.doc-modal__download:hover {
	background: #16315f;
	color: #fff;
}

.doc-modal__stage {
	width: 100%;
	height: 76vh;
	background: #f1f4f9;
	border-radius: 10px;
	overflow: auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.doc-modal__stage iframe {
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 10px;
	background: #fff;
	display: block;
}

.doc-modal__stage img {
	max-width: 100%;
	max-height: 100%;
	display: block;
	border-radius: 8px;
}

@media only screen and (max-width:767px) {
	.doc-modal {
		padding: 48px 10px 24px;
	}

	.doc-modal__dialog {
		padding: 20px 16px 18px;
	}

	.doc-modal__title {
		font-size: 15px;
	}

	.doc-modal__stage {
		height: 68vh;
	}
}
