/* Portada nueva (Economía con Inma) */
.eci {
	max-width: 1100px;
	margin: 0 auto;
	color: #2b2b2b;
	font-size: 17px;
	line-height: 1.55;
}

.eci * {
	box-sizing: border-box;
}

.eci a {
	text-decoration: none;
	color: inherit;
	box-shadow: none;
	border-bottom: 0;
}

.eci-hero {
	text-align: center;
	padding: 24px 0 28px;
}

.eci-hero h2 {
	font-size: 34px;
	margin: 0 0 10px;
	line-height: 1.2;
}

.eci-hero p {
	margin: 0 auto 22px;
	max-width: 640px;
	color: #5f6b6b;
}

.eci-quick {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.eci .eci-quick a {
	border: 2px solid #0d7a77;
	color: #0d7a77;
	border-radius: 999px;
	padding: 8px 16px;
	font-size: 15px;
	font-weight: 700;
	transition: .15s;
}

.eci .eci-quick a:hover,.eci .eci-quick a:focus {
	background: #0d7a77;
	color: #fff;
}

.eci-level {
	margin: 34px 0;
}

.eci-level h3 {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 22px;
	margin: 0 0 14px;
	padding-bottom: 8px;
	border-bottom: 2px solid #dfe7e7;
}

.eci-level h3 span {
	background: #0d7a77;
	color: #fff;
	font-size: 13px;
	border-radius: 6px;
	padding: 3px 9px;
	letter-spacing: .04em;
}

.eci-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill,minmax(250px,1fr));
	gap: 16px;
}

.eci .eci-card {
	display: flex;
	flex-direction: column;
	border: 1px solid #dfe7e7;
	border-radius: 14px;
	padding: 20px;
	background: #fff;
	transition: .15s;
	height: 100%;
}

.eci .eci-card:hover,.eci .eci-card:focus {
	border-color: #0d7a77;
	box-shadow: 0 6px 18px rgba(15,138,135,.15);
	transform: translateY(-2px);
}

.eci-ico {
	font-size: 30px;
	line-height: 1;
	margin-bottom: 10px;
}

.eci-card strong {
	font-size: 18px;
	line-height: 1.3;
	margin-bottom: 6px;
}

.eci-card small {
	color: #5f6b6b;
	font-size: 15px;
	flex: 1;
}

.eci-card em {
	font-style: normal;
	color: #0d7a77;
	font-weight: 700;
	font-size: 14px;
	margin-top: 12px;
}

.eci-pau {
	background: #e8f6f5;
	border-radius: 16px;
	padding: 24px;
	margin: 34px 0;
}

.eci-pau h3 {
	border: none;
	margin-bottom: 6px;
}

.eci-pau p {
	margin: 0 0 16px;
	color: #5f6b6b;
}

.eci-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.eci .eci-chips a {
	background: #fff;
	border: 1px solid #dfe7e7;
	border-radius: 10px;
	padding: 8px 12px;
	font-size: 15px;
}

.eci .eci-chips a:hover,.eci .eci-chips a:focus {
	border-color: #0d7a77;
	color: #0d7a77;
}

.eci-social {
	text-align: center;
	padding: 30px 0 40px;
	border-top: 2px solid #dfe7e7;
	margin-top: 40px;
}

.eci-social p {
	margin: 0 0 14px;
}

.eci .eci-social a {
	display: inline-block;
	margin: 4px 6px;
	padding: 10px 20px;
	border-radius: 999px;
	color: #fff;
	font-weight: 700;
	font-size: 15px;
}

.eci .eci-yt {
	background: #d62020;
}

.eci .eci-ig {
	background: #b1338f;
}

@media (max-width:600px) {
	.eci {
		font-size: 16px;
	}
	
	.eci-hero h2 {
		font-size: 26px;
	}
	
	.eci-pau {
		padding: 18px;
	}
}

/* Portada: sin carrusel ni título "Página de inicio" */
.home #featured-content {
	display: none;
}

.home .entry-header {
	display: none;
}

/* Páginas de asignatura (Economía con Inma) */
.ecs {
	color: #2b2b2b;
	font-size: 17px;
	line-height: 1.6;
}

.ecs * {
	box-sizing: border-box;
}

.ecs a {
	text-decoration: none;
	box-shadow: none;
	border-bottom: 0;
}

.ecs-crumbs {
	font-size: 14px;
	color: #5f6b6b;
	margin: 0 0 14px;
}

.ecs .ecs-crumbs a {
	color: #0d7a77;
}

.ecs-intro {
	background: #e8f6f5;
	border-radius: 16px;
	padding: 22px 24px;
	margin: 0 0 28px;
}

.ecs-intro p {
	margin: 0 0 14px;
}

.ecs-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ecs-tags span {
	background: #fff;
	border: 1px solid #cfe3e2;
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 14px;
	color: #0d7a77;
	font-weight: 700;
}

.ecs h2.ecs-h {
	font-size: 22px;
	margin: 34px 0 14px;
	padding-bottom: 8px;
	border-bottom: 2px solid #dfe7e7;
}

.ecs-res {
	display: grid;
	grid-template-columns: repeat(auto-fill,minmax(230px,1fr));
	gap: 12px;
}

.ecs .ecs-res a {
	display: flex;
	gap: 12px;
	align-items: center;
	border: 1px solid #dfe7e7;
	border-radius: 12px;
	padding: 14px 16px;
	color: #2b2b2b;
	background: #fff;
	transition: .15s;
}

.ecs .ecs-res a:hover,.ecs .ecs-res a:focus {
	border-color: #0d7a77;
	box-shadow: 0 4px 14px rgba(15,138,135,.15);
}

.ecs-res b {
	display: block;
	font-size: 16px;
	line-height: 1.3;
}

.ecs-res small {
	color: #5f6b6b;
	font-size: 14px;
}

.ecs-res i {
	font-style: normal;
	font-size: 26px;
}

.ecs-index {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ecs .ecs-index a {
	border: 2px solid #0d7a77;
	color: #0d7a77;
	border-radius: 999px;
	padding: 5px 13px;
	font-size: 14px;
	font-weight: 700;
	transition: .15s;
}

.ecs .ecs-index a:hover,.ecs .ecs-index a:focus {
	background: #0d7a77;
	color: #fff;
}

.ecs-block {
	margin: 38px 0 0;
}

.ecs .ecs-block h2 {
	font-size: 15px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #0d7a77;
	margin: 0 0 4px;
}

.ecs-block > p {
	margin: 0 0 16px;
	font-size: 20px;
	line-height: 1.35;
	font-weight: 700;
}

.ecs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill,minmax(300px,1fr));
	gap: 18px;
}

.ecs-ud {
	border: 1px solid #dfe7e7;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
}

.ecs .ecs-ud img {
	display: block;
	width: 100%;
	height: 170px;
	object-fit: cover;
	margin: 0;
}

.ecs-body {
	padding: 16px 18px 18px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.ecs-num {
	align-self: flex-start;
	background: #0d7a77;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	border-radius: 6px;
	padding: 2px 9px;
	margin-bottom: 8px;
}

.ecs .ecs-ud h3 {
	font-size: 19px;
	line-height: 1.3;
	margin: 0 0 8px;
}

.ecs-ud p {
	margin: 0 0 10px;
	font-size: 15px;
	color: #4a5555;
}

.ecs-ud details {
	margin: 0 0 14px;
	font-size: 15px;
	color: #4a5555;
}

.ecs-ud summary {
	cursor: pointer;
	color: #0d7a77;
	font-weight: 700;
	font-size: 14px;
}

.ecs-ud details p,.ecs-ud details ul {
	margin: 10px 0 0;
}

.ecs-ud details li {
	margin: 2px 0;
}

.ecs .ecs-go {
	margin-top: auto;
	display: block;
	text-align: center;
	background: #0d7a77;
	color: #fff;
	border-radius: 10px;
	padding: 10px;
	font-weight: 700;
	font-size: 15px;
	transition: .15s;
}

.ecs .ecs-go:hover,.ecs .ecs-go:focus {
	background: #0b6f6c;
	color: #fff;
}

.ecs-foot {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin: 44px 0 10px;
	padding-top: 24px;
	border-top: 2px solid #dfe7e7;
}

.ecs .ecs-foot a {
	border: 2px solid #0d7a77;
	color: #0d7a77;
	border-radius: 999px;
	padding: 8px 16px;
	font-size: 15px;
	font-weight: 700;
}

.ecs .ecs-foot a.ecs-yt {
	background: #d62020;
	border-color: #d62020;
	color: #fff;
}

.ecs .ecs-foot a.ecs-ig {
	background: #b1338f;
	border-color: #b1338f;
	color: #fff;
}

@media (max-width:600px) {
	.ecs {
		font-size: 16px;
	}
	
	.ecs-intro {
		padding: 18px;
	}
	
	.ecs-grid {
		grid-template-columns: 1fr;
	}
}

/* Asignaturas: botón PDF y notas */
.ecs-btns {
	margin-top: auto;
	display: flex;
	gap: 8px;
}

.ecs-btns .ecs-go {
	flex: 1;
	margin-top: 0;
}

.ecs .ecs-pdf {
	display: flex;
	align-items: center;
	border: 2px solid #0d7a77;
	color: #0d7a77;
	border-radius: 10px;
	padding: 8px 12px;
	font-weight: 700;
	font-size: 15px;
	white-space: nowrap;
}

.ecs .ecs-pdf:hover,.ecs .ecs-pdf:focus {
	background: #e8f6f5;
	color: #0d7a77;
}

.ecs-ud ul {
	padding-left: 20px;
}

.ecs-note {
	border-left: 4px solid #0d7a77;
	background: #f6faf9;
	padding: 12px 16px;
	border-radius: 8px;
	margin: 16px 0;
	font-size: 15px;
}

/* ===== Estilo global de todas las páginas ===== */
.hero .entry-thumbnail img {
	width: 100%;
	height: 260px;
	object-fit: cover;
}

.entry-content img {
	max-width: 100%;
	height: auto;
}

.entry-content .wp-block-image img {
	border-radius: 10px;
}

.entry-content .wp-block-image figcaption {
	font-size: 14px;
	color: #5f6b6b;
	text-align: center;
}

.entry-content .wp-block-image a img {
	transition: .15s;
}

.entry-content .wp-block-image a:hover img {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0,0,0,.18);
}

.entry-content hr.wp-block-coblocks-dynamic-separator {
	height: 28px !important;
}

.entry-content .wp-block-button__link {
	background-color: #0d7a77 !important;
	color: #fff !important;
	border-radius: 10px !important;
	font-weight: 700;
	box-shadow: none;
}

.entry-content .wp-block-button__link:hover,.entry-content .wp-block-button__link:focus {
	background-color: #0b6f6c !important;
}

.entry-content .wp-block-file {
	background: #f6faf9;
	border: 1px solid #dfe7e7;
	border-radius: 12px;
	padding: 12px 14px;
}

.entry-content .wp-block-file__embed {
	height: 520px !important;
	border-radius: 8px;
	margin-bottom: 10px;
}

.entry-content .wp-block-file .wp-block-file__button {
	background: #0d7a77;
	color: #fff;
	border-radius: 8px;
	padding: 6px 14px;
}

.entry-content iframe {
	max-width: 100%;
}

.entry-content > h2.wp-block-heading {
	border-bottom: 2px solid #dfe7e7;
	padding-bottom: 6px;
}

@media (max-width:781px) {
	.hero .entry-thumbnail img {
		height: 160px;
	}
	
	.entry-content .wp-block-columns:has(.wp-block-image):not(:has(p,ul,ol,h1,h2,h3,h4,.wp-block-buttons,.wp-block-file,iframe,table)) {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}
	
	.entry-content .wp-block-columns:has(.wp-block-image):not(:has(p,ul,ol,h1,h2,h3,h4,.wp-block-buttons,.wp-block-file,iframe,table)) > .wp-block-column {
		display: contents;
	}
	
	.entry-content .wp-block-columns:has(.wp-block-image):not(:has(p,ul,ol,h1,h2,h3,h4,.wp-block-buttons,.wp-block-file,iframe,table)) hr {
		display: none;
	}
	
	.entry-content .wp-block-columns:has(.wp-block-image):not(:has(p,ul,ol,h1,h2,h3,h4,.wp-block-buttons,.wp-block-file,iframe,table)) .wp-block-image {
		margin: 0;
	}
}

/* Páginas de unidad */
.ecs-pn {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	margin: 0 0 20px;
}

.ecs .ecs-pn a {
	border: 1px solid #dfe7e7;
	border-radius: 10px;
	padding: 8px 12px;
	font-size: 14px;
	color: #0d7a77;
	background: #fff;
	max-width: 48%;
	line-height: 1.3;
}

.ecs .ecs-pn a:hover,.ecs .ecs-pn a:focus {
	border-color: #0d7a77;
}

.ecs-secs {
	display: grid;
	grid-template-columns: repeat(auto-fill,minmax(230px,1fr));
	gap: 10px;
}

.ecs .ecs-secs a {
	display: flex;
	gap: 10px;
	align-items: center;
	border: 1px solid #dfe7e7;
	border-left: 5px solid #0d7a77;
	border-radius: 10px;
	padding: 12px 14px;
	background: #fff;
	color: #2b2b2b;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.3;
	transition: .15s;
}

.ecs .ecs-secs a:hover,.ecs .ecs-secs a:focus {
	border-color: #0d7a77;
	box-shadow: 0 4px 14px rgba(15,138,135,.15);
}

.ecs-secs b {
	color: #0d7a77;
	min-width: 38px;
}

.ecs-saber {
	border: 1px solid #dfe7e7;
	border-radius: 12px;
	padding: 12px 16px;
	background: #fbfdfd;
	margin: 0 0 10px;
}

.ecs-saber summary {
	cursor: pointer;
	font-weight: 700;
	color: #0d7a77;
}

.ecs-saber li {
	margin: 8px 0;
	font-size: 15px;
}

.ecs .ecs-kahoot a {
	background: #46178f;
	border-color: #46178f;
	color: #fff;
}

.ecs .ecs-kahoot a:hover,.ecs .ecs-kahoot a:focus {
	background: #2f0f61;
	color: #fff;
}

/* Infografía resumen al final de cada apartado */
.ecs-info {
	margin: 40px 0 12px;
	border: 2px solid #0d7a77;
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 4px 14px rgba(15,138,135,.12);
}

.ecs-info-h {
	background: linear-gradient(135deg,#0d7a77,#0d7a77);
	color: #fff;
	padding: 16px 20px;
}

.ecs-info-h small {
	display: block;
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
	opacity: .9;
	margin-bottom: 2px;
}

.ecs-info-h b {
	display: block;
	font-size: 22px;
	line-height: 1.25;
}

.ecs-info-c {
	padding: 18px 20px 20px;
}

.ecs-info-c p {
	margin: 0;
}

.ecs-info-idea {
	background: #fff7e0;
	border-left: 5px solid #f2b705;
	border-radius: 8px;
	padding: 12px 14px;
	margin: 0 0 16px !important;
	font-size: 16px;
	line-height: 1.55;
}

.ecs-info-steps {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 8px;
	align-items: center;
	justify-content: center;
	margin: 0 0 16px;
}

.ecs-info-steps span {
	background: #0d7a77;
	color: #fff;
	border-radius: 999px;
	padding: 7px 14px;
	font-size: 15px;
	font-weight: 600;
}

.ecs-info-steps em {
	font-style: normal;
	color: #0d7a77;
	font-weight: 700;
	font-size: 20px;
}

.ecs-info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit,minmax(210px,1fr));
	gap: 12px;
}

.ecs-info-grid>div {
	background: #eef8f7;
	border: 1px solid #d6eeec;
	border-radius: 12px;
	padding: 12px 14px;
}

.ecs-info-grid i {
	display: block;
	font-style: normal;
	font-size: 28px;
	line-height: 1.1;
}

.ecs-info-grid b {
	display: block;
	color: #0b5f5d;
	margin: 6px 0 3px;
	font-size: 16px;
	line-height: 1.3;
}

.ecs-info-grid span {
	display: block;
	font-size: 14.5px;
	line-height: 1.5;
	color: #2f3b3b;
}

.ecs-info-pau {
	margin: 16px 0 0 !important;
	background: #fdeef1;
	border-left: 5px solid #d6455d;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 15px;
	line-height: 1.55;
}

.ecs-info-q {
	margin-top: 16px;
}

.ecs-info-q>p {
	margin-bottom: 6px !important;
}

.ecs-info-q details {
	border: 1px solid #dfe7e7;
	border-radius: 10px;
	padding: 9px 12px;
	margin: 6px 0;
	background: #fafcfc;
}

.ecs-info-q summary {
	cursor: pointer;
	font-weight: 600;
	color: #1f4f4e;
}

.ecs-info-q details p {
	margin-top: 8px !important;
	color: #2f3b3b;
}

@media (max-width:600px) {
	.ecs-info-h b {
		font-size: 19px;
	}
	
	.ecs-info-c {
		padding: 14px;
	}
}

/* Buscador de vídeos */
.ecs-hbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	margin: 32px 0 12px;
}

.ecs-hbar .ecs-h {
	margin: 0 !important;
	flex: 1 1 auto;
}

a.ecs-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #0d7a77;
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 700;
	border-radius: 999px;
	padding: 10px 18px;
	box-shadow: 0 2px 6px rgba(15,138,135,.25);
}

a.ecs-btn:hover {
	background: #0b6f6c;
}

.ecs-tip {
	background: #fff7e0;
	border-left: 5px solid #f2b705;
	border-radius: 8px;
	padding: 12px 14px;
	margin: 0 0 18px;
}

.ecs-az {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 18px;
}

.ecs-az a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	border: 2px solid #0d7a77;
	border-radius: 8px;
	font-weight: 700;
	color: #0d7a77 !important;
	text-decoration: none !important;
}

.ecs-az a:hover {
	background: #0d7a77;
	color: #fff !important;
}

.ecs-letter {
	font-size: 26px;
	font-weight: 700;
	color: #0d7a77;
	border-bottom: 2px solid #d6eeec;
	margin: 26px 0 10px;
	padding-bottom: 4px;
}

.ecs-vlist {
	display: grid;
	gap: 10px;
}

.ecs-v {
	display: flex;
	gap: 12px;
	align-items: center;
	border: 1px solid #dfe7e7;
	border-radius: 12px;
	padding: 8px;
	background: #fff;
}

.ecs-v img {
	width: 128px;
	height: 72px;
	object-fit: cover;
	border-radius: 8px;
	flex: none;
	margin: 0 !important;
}

.ecs-v div {
	min-width: 0;
}

.ecs-v b {
	display: block;
	line-height: 1.3;
}

.ecs-v b a {
	color: #1f2a2a !important;
	text-decoration: none !important;
}

.ecs-v small {
	display: block;
	color: #5f6b6b;
	font-size: 13.5px;
	margin-top: 3px;
}

@media (max-width:520px) {
	.ecs-v img {
		width: 96px;
		height: 54px;
	}
}

/* Desplegable de PAU de otras comunidades */
.ecs-more summary {
	display: flex;
	gap: 12px;
	align-items: center;
	border: 1px solid #dfe7e7;
	border-radius: 12px;
	padding: 14px 16px;
	background: #fff;
	color: #2b2b2b;
	cursor: pointer;
	list-style: none;
	transition: .15s;
}

.ecs-more summary::-webkit-details-marker {
	display: none;
}

.ecs-more summary:hover,.ecs-more summary:focus-visible {
	border-color: #0d7a77;
	box-shadow: 0 4px 14px rgba(15,138,135,.15);
}

.ecs-more summary::after {
	content: "▸";
	margin-left: auto;
	color: #0d7a77;
	font-size: 18px;
	transition: transform .15s;
}

.ecs-more[open] {
	grid-column: 1/-1;
}

.ecs-more[open] summary {
	border-color: #0d7a77;
	background: #eef8f7;
}

.ecs-more[open] summary::after {
	transform: rotate(90deg);
}

.ecs-more .ecs-res {
	margin-top: 12px;
}

@media (prefers-reduced-motion:reduce) {
	.ecs-more summary,.ecs-more summary::after {
		transition: none;
	}
}

/* Colores por bloque de la asignatura */
.ecs .ecs-ba h2 {
	color: #2f6fd0;
}

.ecs .ecs-bb h2 {
	color: #8a4fc2;
}

.ecs .ecs-bc h2 {
	color: #c26f17;
}

.ecs .ecs-bd h2 {
	color: #1f8a5f;
}

.ecs .ecs-be h2 {
	color: #c2414b;
}

.ecs-ba .ecs-num {
	background: #2f6fd0;
}

.ecs-bb .ecs-num {
	background: #8a4fc2;
}

.ecs-bc .ecs-num {
	background: #c26f17;
}

.ecs-bd .ecs-num {
	background: #1f8a5f;
}

.ecs-be .ecs-num {
	background: #c2414b;
}

.ecs-ba .ecs-ud {
	border-top: 4px solid #2f6fd0;
}

.ecs-bb .ecs-ud {
	border-top: 4px solid #8a4fc2;
}

.ecs-bc .ecs-ud {
	border-top: 4px solid #c26f17;
}

.ecs-bd .ecs-ud {
	border-top: 4px solid #1f8a5f;
}

.ecs-be .ecs-ud {
	border-top: 4px solid #c2414b;
}

/* Etiqueta de qué entra en la PAU en cada unidad */
.ecs-pau {
	align-self: flex-start;
	display: inline-block;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.3;
	border-radius: 999px;
	padding: 3px 10px;
	margin: 0 0 8px;
}

.ecs-pau-p {
	background: #fdeccf;
	color: #8a4b00;
}

.ecs-pau-t {
	background: #e8f1f1;
	color: #2f5f5e;
}

/* Calendario de la PAU */
.ecs-cal {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	align-items: baseline;
	background: #f4f9f9;
	border: 1px solid #dfe7e7;
	border-left: 4px solid #0d7a77;
	border-radius: 10px;
	padding: 12px 16px;
	margin: 18px 0 0;
	font-size: 15px;
}

.ecs-cal b {
	flex-basis: 100%;
	font-size: 16px;
}

.ecs-cal small {
	flex-basis: 100%;
	color: #5f6b6b;
	font-size: 13px;
}

/* Formulario de problemas */
.ecs-f {
	overflow-x: auto;
	margin: 0 0 8px;
}

.ecs .ecs-f table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	margin: 0;
}

.ecs .ecs-f th {
	text-align: left;
	background: #0d7a77;
	color: #fff;
	padding: 8px 10px;
	font-size: 13px;
	letter-spacing: .03em;
}

.ecs .ecs-f td {
	border-bottom: 1px solid #dfe7e7;
	padding: 9px 10px;
	vertical-align: top;
}

.ecs .ecs-f tr:nth-child(even) td {
	background: #f7fbfb;
}

.ecs .ecs-f td:first-child {
	width: 22%;
}

.ecs .ecs-f code {
	font-family: inherit;
	font-size: 15px;
	background: #eef5f5;
	color: #123;
	padding: 2px 6px;
	border-radius: 5px;
	white-space: normal;
}

.ecs-f-ud {
	margin: -6px 0 10px;
	color: #5f6b6b;
	font-size: 14px;
}

.ecs-f-note {
	font-size: 14px;
	color: #5f6b6b;
	margin: 0 0 8px;
}

@media print {
	.ecs-pn, .ecs-foot, .ecs-index, .ecs-res, .site-header, .site-footer, #masthead, #colophon, .main-navigation {
		display: none !important;
	}
	
	.ecs .ecs-f th {
		background: #ddd !important;
		color: #000 !important;
	}
}

/* Fracciones en las fórmulas: numerador, raya de fracción y denominador */
.ecs .ecs-fr, .ecs-fr {
	display: inline-flex !important;
	flex-direction: column;
	align-items: center;
	vertical-align: middle;
	text-align: center;
	width: auto !important;
	line-height: 1.25;
	margin: 2px .2em;
}

.ecs .ecs-fr > span, .ecs-fr > span {
	display: block !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 .3em;
	font-size: inherit !important;
	color: inherit !important;
}

.ecs .ecs-fr > span:first-child, .ecs-fr > span:first-child {
	border-bottom: 1.5px solid currentColor;
	padding-bottom: 2px;
}

.ecs .ecs-fr > span:last-child, .ecs-fr > span:last-child {
	padding-top: 2px;
}

/* === Cabecera compacta en móvil (26-nov-2026): logo pequeño al lado del título === */
@media (max-width: 600px) {
	.site-branding {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 12px;
		padding-top: 12px !important;
		padding-bottom: 12px !important;
		margin: 0 !important;
		text-align: left;
	}
	.site-branding .custom-logo-link { flex: 0 0 auto; margin: 0 !important; }
	.site-branding .custom-logo { width: 56px !important; height: 56px !important; max-width: 56px !important; }
	.site-branding .site-title { font-size: 24px !important; line-height: 1.15 !important; margin: 0 !important; }
	.site-branding .site-description { display: none !important; }
}

/* === Página 404 sin erratas (26-nov-2026): el tema dice «Está página» y «ho hay» === */
.error-404 .page-title { font-size: 0 !important; }
.error-404 .page-title::before { content: "¡Vaya! Esta página no existe"; font-size: 2rem; line-height: 1.2; }
.error-404 .page-content > p { font-size: 0 !important; }
.error-404 .page-content > p::before { content: "Puede que la hayamos cambiado de sitio. Busca aquí lo que necesitas o vuelve al inicio desde el menú."; font-size: 1.6rem; line-height: 1.5; }

/* Tablas desplazables en móvil dentro de los bloques de teoría e infografía (27-11-2026) */
@media (max-width: 700px) {
  .ecs-info div:has(> table), .ecs-info-c:has(> table) { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
}

/* === Móvil más atractivo (28-nov-2026): cabecera fija, letra sin remates, fondo claro, portada compacta, botón «Arriba» === */
@media (max-width: 600px) {
	/* Fondo claro en lugar del marco gris oscuro */
	body { background: #eef5f4 !important; }
	#page { padding-left: 0 !important; padding-right: 0 !important; }
	#content { padding-left: 16px !important; padding-right: 16px !important; }

	/* Letra moderna y algo mayor; los títulos siguen en Arvo */
	body, button, input, select, textarea, .main-navigation, .menu-toggle {
		font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
	}
	body { font-weight: 400 !important; color: #263332; }
	.entry-content { font-size: 17px; line-height: 1.6; }
	.eci, .ecs { font-size: 16.5px; }

	/* Cabecera fina y fija arriba: logo, título y botón ☰ */
	#masthead { position: sticky; top: 0; z-index: 1000; background: #fff; box-shadow: 0 2px 10px rgba(16, 60, 58, .10); }
	#masthead .site-branding { justify-content: flex-start !important; gap: 10px; padding: 8px 68px 8px 16px !important; }
	#masthead .site-branding .custom-logo { width: 38px !important; height: 38px !important; max-width: 38px !important; }
	#masthead .site-branding .site-title { font-size: 19px !important; }
	#masthead .site-title a { color: #12302e; }
	#site-navigation { padding: 0 !important; background: transparent !important; }
	#site-navigation .menu-toggle {
		position: absolute; top: 8px; right: 14px; width: 46px; height: 38px;
		margin: 0 !important; padding: 0 !important; border: 0; border-radius: 10px;
		background: #0d7a77 !important; color: #fff; font-size: 0 !important; line-height: 38px; text-align: center;
	}
	#site-navigation .menu-toggle::before { content: "☰"; font-size: 22px; line-height: 38px; color: #fff; }
	#site-navigation.toggled .menu-toggle::before { content: "✕"; font-size: 19px; }

	/* Menú desplegado: cursos como rótulos pequeños y asignaturas en filas claras */
	#site-navigation.toggled #top-menu {
		background: #0d7a77; max-height: calc(100vh - 60px); overflow-y: auto; padding: 4px 0 12px;
		-webkit-overflow-scrolling: touch;
	}
	#site-navigation #top-menu a { text-transform: none; letter-spacing: 0; font-size: 16.5px; font-weight: 600; padding: 10px 20px; line-height: 1.3; }
	#site-navigation #top-menu > li > a[href="#"] {
		pointer-events: none; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
		opacity: .78; padding: 16px 20px 4px;
	}
	#site-navigation #top-menu .sub-menu a { padding: 9px 20px 9px 30px; font-weight: 500; }
	#site-navigation #top-menu li { border: 0; }

	/* Portada: bienvenida con fondo de color y un botón principal */
	.eci-hero {
		background: linear-gradient(140deg, #0d7a77 0%, #0b6f6c 60%, #2e7d32 130%);
		color: #fff; border-radius: 20px; padding: 24px 18px 20px !important; margin: 4px 0 0;
		box-shadow: 0 8px 22px rgba(15, 138, 135, .22);
	}
	.eci-hero h2 { color: #fff; font-size: 24px !important; line-height: 1.25; text-wrap: balance; }
	.eci-hero p { color: rgba(255, 255, 255, .92) !important; font-size: 15.5px; margin-bottom: 18px !important; }
	.eci-hero .eci-quick { gap: 8px !important; }
	.eci-hero .eci-quick a {
		border: 1.5px solid rgba(255, 255, 255, .75) !important; color: #fff !important; background: rgba(255, 255, 255, .08);
		font-size: 13.5px !important; padding: 6px 12px !important; font-weight: 600 !important;
	}
	.eci-hero .eci-quick a[href="#eci-asignaturas"] {
		order: -1; flex: 1 1 100%; background: #fff; color: #0b5f5d; border-color: #fff;
		color: #0b5f5d !important; border-color: #fff !important;
		font-size: 17px !important; font-weight: 800 !important; padding: 13px 16px !important; box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
	}

	/* Apartados: botones de juego, infografía, vídeo y cómic en una sola fila que se desliza */
	.ecs .eci-quick {
		flex-wrap: nowrap !important; justify-content: flex-start !important; gap: 8px !important;
		overflow-x: auto; margin: 12px -16px 6px; padding: 2px 16px 8px;
		scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none;
	}
	.ecs .eci-quick::-webkit-scrollbar { display: none; }
	.ecs .eci .eci-quick a {
		flex: 0 0 auto; white-space: nowrap; scroll-snap-align: start;
		background: #0d7a77; color: #fff; border: 0; font-size: 14px; padding: 8px 14px;
		box-shadow: 0 2px 6px rgba(15, 138, 135, .25);
	}

	/* Imágenes de cabecera más bajas */
	.hero .entry-thumbnail img { height: 110px !important; }
	.ecs .ecs-ud img { height: 120px; }

	/* Tarjetas de 2 en 2, solo icono y título */
	.eci-level { margin: 26px 0; }
	.eci-level h3 { font-size: 20px; }
	.eci-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
	.eci .eci-card { padding: 14px 12px; border-radius: 14px; box-shadow: 0 2px 8px rgba(16, 60, 58, .06); }
	.eci-card .eci-ico { font-size: 26px; margin-bottom: 8px; }
	.eci-card strong { font-size: 15.5px; margin-bottom: 0; }
	.eci-card small { display: none; }
	.eci-card em { font-size: 13px; margin-top: 8px; }
	.eci-pau { padding: 16px !important; }

	/* Botón «Volver arriba» */
	a.eci-top { display: flex !important; }
}

/* Botón «Volver arriba» (solo móvil) */
a.eci-top {
	display: none; position: fixed; right: 14px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 999;
	width: 46px; height: 46px; border-radius: 50%; align-items: center; justify-content: center;
	background: #0d7a77; color: #fff !important; font-size: 22px; font-weight: 700; text-decoration: none !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25); border: 2px solid #fff;
	opacity: .92; transition: opacity .2s;
}
html.eci-js a.eci-top:not(.on) { opacity: 0; pointer-events: none; }
#tertiary:has(a.eci-top), #tertiary:has(a.eci-top) .widget-area, .widget:has(a.eci-top) {
	margin: 0 !important; padding: 0 !important; border: 0 !important; min-height: 0 !important; height: 0; background: none !important; overflow: visible;
}
/* === Color por asignatura y tarjetas con más aire (móvil y ordenador, 28-nov-2026) === */
@media all {
	/* Economía y Emprendimiento 4.º ESO */
	body.page-id-14428, body:has(.ecs-crumbs a[href$="/economia-4o-de-eso-2-2/"]) { --asig: #ad5300; --asig-d: #8a4200; --asig-l: #fff3e6; }
	/* FOPP */
	body.page-id-18960, body:has(.ecs-crumbs a[href$="/formacion-y-orientacion-personal-y-profesional/"]) { --asig: #8a4fc2; --asig-d: #5e2f8f; --asig-l: #f4edfb; }
	/* Economía 1.º Bach */
	body.page-id-53, body:has(.ecs-crumbs a[href$="/economia-1o-de-bachillerato/"]) { --asig: #0d7a77; --asig-d: #0b5f5d; --asig-l: #e8f6f5; }
	/* CEE */
	body.page-id-4162, body:has(.ecs-crumbs a[href$="/cee-1o-bach/"]) { --asig: #d6455d; --asig-d: #9c2438; --asig-l: #fdeef1; }
	/* EYDMN */
	body.page-id-18752, body:has(.ecs-crumbs a[href$="/empresa-y-modelos-de-negocio/"]) { --asig: #2f6fd0; --asig-d: #1d4f9c; --asig-l: #eaf1fc; }
	/* FAG */
	body.page-id-14431, body:has(.ecs-crumbs a[href$="/fag-2o-de-bachillerato-2/"]) { --asig: #5f8a12; --asig-d: #405e08; --asig-l: #f1f7e4; }
	/* Finanzas y Economía */
	body.page-id-22071, body:has(.ecs-crumbs a[href$="/finanzas-y-economia-2o-de-bach/"]) { --asig: #9a6c00; --asig-d: #6e4d00; --asig-l: #fbf4e0; }

	/* Dónde se nota el color de la asignatura */
	#masthead { border-bottom: 4px solid var(--asig, #0d7a77); }
	#site-navigation .menu-toggle, a.eci-top { background: var(--asig, #0d7a77) !important; }
	#site-navigation.toggled #top-menu { background: var(--asig-d, #0b6f6c); }
	.ecs .ecs-crumbs a, .ecs .ecs-pn a { color: var(--asig-d, #0d7a77); }
	.ecs h2.ecs-h { border-bottom-color: var(--asig, #dfe7e7); }
	.ecs-intro { background: var(--asig-l, #e8f6f5); }
	.ecs-resp { border-left-color: var(--asig, #0d7a77) !important; background: var(--asig-l, #eef8f7) !important; }
	.ecs-resp > p:first-child { color: var(--asig-d, #0b5f5d) !important; }
	.ecs-recorrido > span:first-child { color: var(--asig-d, #0b5f5d) !important; }
	.ecs-recorrido > [aria-current] { background: var(--asig, #0d7a77) !important; }
	.ecs-recorrido > a { border-color: var(--asig, #9fd0cd) !important; color: var(--asig-d, #0b5f5d) !important; }
	.ecs .eci .eci-quick a { background: var(--asig, #0d7a77); }
	.ecs .ecs-secs a { border-left-color: var(--asig, #0d7a77); }
	.ecs-secs b { color: var(--asig-d, #0d7a77); }
	.ecs .ecs-go { background: var(--asig, #0d7a77); }
	.ecs .ecs-index a { border-color: var(--asig, #0d7a77); color: var(--asig-d, #0d7a77); }
	.ecs-tags span { color: var(--asig-d, #0d7a77); }
	.ecs-info { border-color: var(--asig, #0d7a77); }
	.ecs-info-h { background: linear-gradient(135deg, var(--asig-d, #0d7a77), var(--asig, #0d7a77)); }

	/* Páginas de asignatura: índice de unidades, «Sigue donde lo dejaste», buscador y mapa */
	.ect-idx a { border-color: var(--asig, #0d7a77) !important; color: var(--asig-d, #0b5f5d) !important; }
	.ect-idx a > span:first-child { background: var(--asig, #0d7a77) !important; color: #fff !important; }
	a.ect-cont { background: var(--asig, #0d7a77) !important; }
	.ect-sbox input { border-color: var(--asig, #0d7a77) !important; }
	.ecm { border-color: var(--asig, #0d7a77) !important; }
	.ecm-g > b { background: var(--asig, #0d7a77) !important; }
	.ecm > summary::after { color: var(--asig, #0d7a77) !important; }
	.ect-idx a { box-shadow: 0 3px 10px rgba(16, 60, 58, .08); background: #fff; }

	/* Tarjetas con más aire: fondo suave, sombra ligera y algo más de espacio */
	.ecs-ud, .ecs .ecs-secs a, .ecs .ecs-res a, .ecs-more summary, .eci-sub, .eci .eci-card, .ecs-saber {
		border-color: #e2eaea !important;
		background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%) !important;
		box-shadow: 0 3px 12px rgba(16, 60, 58, .08);
	}
	.ecs .ecs-secs a, .ecs .ecs-res a { padding: 14px 16px; }
	.ecs-secs, .ecs-res { gap: 12px !important; }
	.ecs-body { padding: 16px 18px 20px; }
	.eci-sub { padding: 12px 14px !important; margin-bottom: 10px !important; }
}

/* === Ordenador más visual (28-nov-2026): fondo claro, cabecera compacta, letra legible, portada con color === */
@media (min-width: 601px) {
	/* Fondo claro en lugar del gris oscuro; la página queda como una hoja blanca con sombra */
	body { background: #eef5f4 !important; }
	#page { box-shadow: 0 0 40px rgba(16, 60, 58, .10); }

	/* Letra moderna y legible; los títulos siguen en Arvo */
	body, button, input, select, textarea {
		font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
	}
	body { font-weight: 400 !important; color: #263332; }
	.entry-content { font-size: 17.5px; line-height: 1.65; }
	.eci, .ecs { font-size: 17px; }

	/* Cabecera compacta: logo a la izquierda del título, en una sola franja */
	#masthead .site-branding {
		display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center;
		column-gap: 18px; row-gap: 0; padding-top: 18px !important; padding-bottom: 18px !important; text-align: left;
	}
	#masthead .site-branding .custom-logo-link { grid-column: 1; grid-row: 1 / 3; margin: 0 !important; }
	#masthead .site-branding .site-title { grid-column: 2; grid-row: 1; }
	#masthead .site-branding .site-description { grid-column: 2; grid-row: 2; }
	#masthead .site-branding .custom-logo { width: 78px !important; height: 78px !important; max-width: 78px !important; }
	#masthead .site-branding .site-title { margin: 0 !important; font-size: 34px !important; line-height: 1.15; align-self: end; }
	#masthead .site-title a { color: #12302e; }
	#masthead .site-branding .site-description { margin: 2px 0 0 !important; align-self: start; color: #5b7470; }

	/* Barra del menú: verde azulado más intenso (mejor contraste) o el color de la asignatura */
	#site-navigation { background: var(--asig, #0d7a77) !important; }
	#site-navigation #top-menu > li > a {
		font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
		font-size: 14px; font-weight: 700; letter-spacing: .06em; color: #fff;
	}
	#site-navigation .sub-menu { box-shadow: 0 10px 24px rgba(16, 60, 58, .18); border-radius: 0 0 10px 10px; overflow: hidden; }
	#site-navigation .sub-menu a { text-transform: none !important; letter-spacing: 0 !important; font-size: 15px !important; font-weight: 600; }

	/* Portada: bienvenida con fondo de color y un botón principal */
	.eci-hero {
		background: linear-gradient(140deg, #0d7a77 0%, #0b6f6c 60%, #2e7d32 130%);
		color: #fff; border-radius: 24px; padding: 44px 40px 38px !important; margin: 6px 0 0;
		box-shadow: 0 12px 30px rgba(15, 138, 135, .22);
	}
	.eci-hero h2 { color: #fff; font-size: 36px !important; text-wrap: balance; }
	.eci-hero p { color: rgba(255, 255, 255, .92) !important; font-size: 18px; margin-bottom: 26px !important; }
	.eci-hero .eci-quick { gap: 10px !important; align-items: center; }
	.eci-hero .eci-quick a {
		border: 2px solid rgba(255, 255, 255, .7) !important; color: #fff !important; background: rgba(255, 255, 255, .08);
	}
	.eci-hero .eci-quick a:hover, .eci-hero .eci-quick a:focus { background: rgba(255, 255, 255, .2) !important; }
	.eci-hero .eci-quick a[href="#eci-asignaturas"] {
		order: -1; background: #fff !important; color: #0b5f5d !important; border-color: #fff !important;
		font-size: 17px !important; font-weight: 800 !important; padding: 12px 26px !important;
		box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
	}
	.eci-level h3 { font-size: 24px; }

	/* Apartados: botones de recursos rellenos, con el color de la asignatura */
	.ecs .eci .eci-quick a {
		background: var(--asig, #0d7a77); color: #fff; border-color: var(--asig, #0d7a77);
		box-shadow: 0 2px 6px rgba(15, 138, 135, .2);
	}
	.ecs .eci .eci-quick a:hover, .ecs .eci .eci-quick a:focus { background: var(--asig-d, #0b6f6c); border-color: var(--asig-d, #0b6f6c); }

	/* Tarjetas: se elevan un poco al pasar el ratón */
	.ecs-ud, .ect-idx a, .eci-sub, .eci .eci-card { transition: transform .15s, box-shadow .15s; }
	.ecs-ud:hover, .ect-idx a:hover, .eci-sub:hover, .eci .eci-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(16, 60, 58, .14) !important; }

	/* Botón «Volver arriba» también en el ordenador */
	a.eci-top { display: flex !important; right: 24px; bottom: 24px; width: 50px; height: 50px; }
}

/* Pie de página en verde oscuro en lugar de gris */
#colophon { background: #12302e !important; color: #cfe3e0; }
#colophon a { color: #fff; }

/* Las páginas de asignatura ya tienen su propio botón «Arriba» (#ect-up) */
body:has(#ect-up) a.eci-top { display: none !important; }
#ect-up { background: var(--asig, #0d7a77) !important; }
/* === Teoría de apartados (28-nov-2026): índice, secciones, tarjetas, imágenes pequeñas === */
.ecs-teo{--c:var(--asig,#0d7a77);--cd:var(--asig-d,#0b5f5d);--cl:var(--asig-l,#e8f6f5);margin:8px 0 10px}
.ecs-teo *{box-sizing:border-box}
.ecs-teo .t-idx{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 22px;padding:12px 14px;background:#f6faf9;border:1px solid #e2eaea;border-radius:14px}
.ecs-teo .t-idx b{width:100%;font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--cd)}
.ecs-teo .t-idx a{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1.5px solid var(--c);color:var(--cd)!important;border-radius:999px;padding:5px 12px;font-size:14.5px;font-weight:700;text-decoration:none!important;line-height:1.3}
.ecs-teo .t-idx a span{background:var(--c);color:#fff;border-radius:50%;width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;font-size:12px}
.ecs-teo .t-sec{margin:0 0 30px;scroll-margin-top:80px}
.ecs-teo h2.t-h{display:flex;align-items:center;gap:10px;font-size:22px;line-height:1.25;margin:0 0 14px;padding:0 0 8px;border-bottom:2px solid var(--cl)}
.ecs-teo h2.t-h span{flex:none;background:var(--c);color:#fff;border-radius:10px;width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;font-size:18px}
.ecs-teo .t-def{background:linear-gradient(135deg,var(--cl),#fff);border:2px solid var(--c);border-radius:16px;padding:18px 20px;font-size:18.5px;line-height:1.55;margin:0 0 12px;box-shadow:0 4px 14px rgba(16,60,58,.08)}
.ecs-teo .t-def small{display:block;font-size:12.5px;letter-spacing:.07em;text-transform:uppercase;font-weight:800;color:var(--cd);margin-bottom:6px}
.ecs-teo .t-tags{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.ecs-teo .t-tags span{background:var(--cl);color:var(--cd);border-radius:999px;padding:3px 11px;font-size:14px;font-weight:700}
.ecs-teo .t-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:14px;margin:0 0 16px}
.ecs-teo .t-card{background:linear-gradient(180deg,#fff,#f8fbfb);border:1px solid #e2eaea;border-top:4px solid var(--c);border-radius:14px;padding:16px 18px;box-shadow:0 3px 12px rgba(16,60,58,.07)}
.ecs-teo .t-card i{font-style:normal;font-size:30px;line-height:1;display:block;margin-bottom:6px}
.ecs-teo .t-card b{display:block;font-size:18px;line-height:1.3;margin-bottom:6px;color:#16302e}
.ecs-teo .t-card p{margin:0 0 8px;font-size:16px;line-height:1.55}
.ecs-teo .t-card p:last-child{margin-bottom:0}
.ecs-teo .t-card ul{margin:0;padding-left:20px;font-size:16px;line-height:1.5}
.ecs-teo .t-card figure.t-fig{margin-top:10px}
.ecs-teo .t-figs{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin:0 0 14px}
.ecs-teo .t-figs.t-one{grid-template-columns:minmax(0,520px);justify-content:center}
.ecs-teo figure.t-fig{margin:0;background:#fffbea;border:1px solid #efe4b8;border-radius:14px;padding:8px 8px 10px;text-align:center}
.ecs-teo figure.t-fig a{display:block;border:0!important;box-shadow:none!important}
.ecs-teo figure.t-fig img{display:block;width:100%;max-height:190px;object-fit:contain;border-radius:10px;margin:0 auto}
.ecs-teo figure.t-fig figcaption{font-size:14.5px;line-height:1.4;color:#4a4a2a;margin-top:8px}
.ecs-teo .t-flow{display:flex;align-items:stretch;gap:8px;margin:14px 0}
.ecs-teo .t-flow div{flex:1;background:#fff;border:2px solid var(--c);border-radius:14px;padding:12px 10px;text-align:center;font-weight:700;line-height:1.3;color:#16302e}
.ecs-teo .t-flow div i{display:block;font-style:normal;font-size:26px;margin-bottom:4px}
.ecs-teo .t-flow div.t-end{background:var(--c);color:#fff}
.ecs-teo .t-flow em{flex:none;align-self:center;font-style:normal;font-size:24px;font-weight:800;color:var(--c)}
.ecs-teo .t-note{background:#fff7e0;border-left:5px solid #f2b705;border-radius:10px;padding:12px 16px;margin:12px 0}
.ecs-teo .t-link{display:inline-block;margin:6px 0 0;font-weight:700;color:var(--cd)!important}
.ecs-teo blockquote.t-q{margin:16px 0 0;padding:16px 20px;border:0;border-left:5px solid var(--c);background:#f6faf9;border-radius:12px;font-style:italic;font-size:16.5px;line-height:1.6}
.ecs-teo blockquote.t-q cite{display:block;margin-top:8px;font-style:normal;font-weight:700;font-size:14px;color:var(--cd)}
.ecs-teo .t-case{background:#fff;border:1px solid #e2eaea;border-radius:16px;padding:16px 18px;margin:0 0 14px;box-shadow:0 3px 12px rgba(16,60,58,.07)}
.ecs-teo .t-case > p{margin:0 0 12px}
.ecs-teo .t-case > p:last-child{margin-bottom:0}
.ecs-teo .t-case > b.t-cn{display:inline-block;background:var(--c);color:#fff;border-radius:8px;padding:2px 10px;font-size:13px;letter-spacing:.04em;margin-bottom:8px}
.ecs-teo .t-opts{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ecs-teo .t-opt{border-radius:14px;padding:14px;background:var(--cl)}
.ecs-teo .t-opt b{display:block;font-size:17px;margin-bottom:4px;color:#16302e}
.ecs-teo .t-opt p{margin:0 0 10px;font-size:15.5px}
.ecs-teo .t-opt p:last-child{margin-bottom:0}
.ecs-teo .t-opt .t-co{display:block;background:var(--c);color:#fff;border-radius:10px;padding:8px 10px;font-weight:700;font-size:15px;line-height:1.35}
.ecs-teo details.t-try{margin:14px 0 0;border:1px solid #e2eaea;border-radius:12px;padding:10px 14px;background:#fafcfc}
.ecs-teo details.t-try summary{cursor:pointer;font-weight:700;color:var(--cd)}
.ecs-teo details.t-try p,.ecs-teo details.t-try ul{margin:8px 0 0}
.ecs-teo details.t-img{margin:16px 0 0;border:1px solid #e2eaea;border-radius:12px;padding:10px 14px;background:#fff}
.ecs-teo details.t-img summary{cursor:pointer;font-weight:700;color:var(--cd)}
.ecs-teo details.t-img img{display:block;max-width:min(100%,480px);margin:12px auto 4px;border-radius:12px}
.ecs-teo .t-vh{font-weight:700;margin:22px 0 8px;scroll-margin-top:80px}
.ecs-teo .t-tab{overflow-x:auto;margin:0 0 14px;-webkit-overflow-scrolling:touch}
.ecs-teo .t-tab table{width:100%;border-collapse:collapse;font-size:15.5px;margin:0}
.ecs-teo .t-tab th{background:var(--c);color:#fff;padding:8px 10px;text-align:left;font-size:14.5px}
.ecs-teo .t-tab td{border-bottom:1px solid #e2eaea;padding:8px 10px;vertical-align:top}
.ecs-teo .t-tab tr:nth-child(even) td{background:#f7fbfb}
.ecs-teo .t-tab td.t-ok{font-weight:700;color:var(--cd)}
.ecs-teo .t-flow.t-4 div{font-size:15px}
.ecs-teo a.t-card{display:block;color:inherit!important;text-decoration:none!important;transition:transform .15s,box-shadow .15s}
.ecs-teo a.t-card:hover,.ecs-teo a.t-card:focus-visible{transform:translateY(-2px);box-shadow:0 8px 20px rgba(16,60,58,.14)}
.ecs-teo a.t-card .t-go{display:inline-block;margin-top:8px;font-weight:700;color:var(--cd);font-size:15px}
.ecs-teo .t-card img.t-thumb{display:block;width:100%;height:150px;object-fit:contain;background:#f6faf9;border-radius:10px;margin:0 0 10px}
/* Grupos de bloques en columna: que su contenido no se salga en el móvil */
.entry-content .is-layout-flex.is-vertical > *{max-width:100%;min-width:0;box-sizing:border-box}
.entry-content p{overflow-wrap:break-word}
.entry-content .wp-block-group .wp-block-table{overflow-x:auto}
@media(max-width:600px){
.ecs-teo .t-def{font-size:17px;padding:14px 15px}
.ecs-teo h2.t-h{font-size:20px}
.ecs-teo .t-flow{flex-direction:column}
.ecs-teo .t-flow em{line-height:1}
.ecs-teo .t-flow em.t-arr{transform:rotate(90deg)}
.ecs-teo .t-opts{grid-template-columns:1fr}
.ecs-teo .t-figs{grid-template-columns:1fr 1fr;gap:10px}
.ecs-teo .t-figs.t-one{grid-template-columns:minmax(0,1fr)}
.ecs-teo figure.t-fig{padding:6px 6px 8px}
.ecs-teo figure.t-fig img{max-height:130px}
.ecs-teo figure.t-fig figcaption{font-size:13px}
.ecs-teo .t-idx{gap:6px;padding:10px 12px}
.ecs-teo .t-idx a{font-size:13.5px;padding:4px 10px}
}

/* === Accesibilidad: contraste de colores (28-nov-2026) ===
   Enlaces del tema (#15b6b8, 2,5:1) y colores escritos dentro de las páginas.
   Mínimo WCAG AA: 4,5:1 para texto normal. */
.entry-content :is(p, li, td, dd, figcaption) > a:not([class]):not([style*="color"]) { color: #0b6f6c; }
.entry-content :is(p, li, td, dd, figcaption) > a:not([class]):not([style*="color"]):hover { color: #084f4d; }
.entry-content .udt input:checked + label, .entry-content .ect-bar input:checked + label, .entry-content .ecs-udnav span { background: #0d7a77; }
.entry-content .eci-itin .it-h small, .entry-content .eci-pa summary { color: #0b6f6c; }
.entry-content [style*="background:#0f8a87"], .entry-content [style*="background: #0f8a87"], .entry-content [style*="background-color:#0f8a87"] { background-color: #0d7a77 !important; }
.entry-content [style*="background:#c45f00"], .entry-content [style*="background: #c45f00"], .entry-content [style*="background-color:#c45f00"] { background-color: #ad5300 !important; }
.entry-content [style^="color:#0f8a87"], .entry-content [style*=";color:#0f8a87"], .entry-content [style*="; color:#0f8a87"] { color: #0b6f6c !important; }
.entry-content [style^="color:#c45f00"], .entry-content [style*=";color:#c45f00"], .entry-content [style*="; color:#c45f00"] { color: #ad5300 !important; }
.entry-content .wp-block-file .wp-block-file__button { background: #0d7a77; }
.entry-content .wp-block-file > a:not([class]) { color: #0b6f6c; }