/* epoint 24-11-2026 (tarea 17963): la versión de escritorio adaptada a móvil y tableta.
   Sustituye al antiguo diseño «handheld». Solo actúa por debajo de 1020 px. */

.ep-menu-btn { display: none; }

@media (max-width: 1020px) {
	html, body { min-width: 0 !important; overflow-x: hidden; }
	body { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
	.main, #gk-top, #mainPage, #gk-bottom-wrap, #gk-footer-wrap, #gk-container, #gk-mainbody, #gk-main, #gk-content, #gk-contentwrap {
		width: auto !important; max-width: 100% !important; min-width: 0 !important; box-sizing: border-box;
	}
	#gk-mainbody, #gk-main, #gk-content, #gk-right, #gk-left { float: none !important; }
	img, iframe, object, embed, video { max-width: 100% !important; height: auto !important; box-sizing: border-box; }
	iframe { min-height: 260px; }

	/* Cabecera */
	#gk-top { min-height: 0; margin-bottom: 12px; padding: 10px 12px 0; }
	#gk-top .logo { float: none !important; position: static !important; margin: 0 auto 8px !important; text-align: center; }
	#gk-top .logo a, #gk-top .logo h1 { display: inline-block; float: none !important; position: static !important; max-width: 100%; }
	#gk-buttons { float: none !important; position: static !important; margin: 0 auto 10px !important; height: auto !important; display: table; }
	#gk-buttons a { height: auto; line-height: 1.5; padding: 8px 14px; }

	/* Menú: botón que despliega la lista completa */
	#gk-nav { margin: 0 !important; }
	.ep-menu-btn {
		display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
		min-height: 48px; margin: 0; padding: 0 16px; border: 0; background: #1b1f23; color: #fff;
		font: 600 16px/1 Arial, Helvetica, sans-serif; cursor: pointer; box-sizing: border-box;
	}
	.ep-menu-btn .ep-ico, .ep-menu-btn .ep-ico::before, .ep-menu-btn .ep-ico::after {
		display: block; width: 20px; height: 2px; background: #fff; position: relative; content: "";
	}
	.ep-menu-btn .ep-ico::before { position: absolute; top: -6px; }
	.ep-menu-btn .ep-ico::after { position: absolute; top: 6px; }
	#gk-mainnav, #gk-mainnav .gk-menu { float: none !important; width: auto !important; height: auto !important; }
	#gk-menu { display: none !important; float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; background: #fff; }
	#gk-menu.ep-abierto { display: block !important; }
	#gk-menu li { float: none !important; display: block !important; width: auto !important; margin: 0 !important; padding: 0 !important; background-image: none !important; border-left: 0 !important; }
	#gk-menu > li { border-top: 1px solid #e5e5e5 !important; }
	#gk-menu a, #gk-menu a span { float: none !important; display: block !important; height: auto !important; width: auto !important; line-height: 1.4 !important; background-image: none !important; }
	#gk-menu > li > a { padding: 14px 16px !important; font-size: 16px !important; font-weight: 600; color: #1b1f23 !important; }
	#gk-menu .childcontent, #gk-menu .childcontent-inner-wrap, #gk-menu .childcontent-inner, #gk-menu .megacol {
		position: static !important; display: block !important; visibility: visible !important; opacity: 1 !important;
		width: auto !important; height: auto !important; margin: 0 !important; left: auto !important; top: auto !important;
		float: none !important; background: transparent !important; border: 0 !important; box-shadow: none !important; overflow: visible !important;
	}
	#gk-menu .childcontent ul { margin: 0 !important; padding: 0 0 8px !important; }
	#gk-menu .childcontent a { padding: 10px 16px 10px 32px !important; font-size: 15px !important; color: #444 !important; }
	#gk-menu .childcontent .childcontent a { padding-left: 48px !important; }

	/* Bloques en columnas: una debajo de otra */
	.gk-box, .gk-box.column, #gk-usersl1 > div, .gk-user > div { width: 100% !important; float: none !important; }
	.gk-box-wrap { margin: 0 0 12px !important; }
	#gk-container .moduletable_text > div { padding: 0 12px 12px !important; }

	/* Portada: carrusel y bloques de noticias */
	.gk_is_wrapper, .gk_is_wrapper *, .gk_is_image, .gk_is_slide, [class*="gk_is_wrapper"] { max-width: 100% !important; }
	.gk_is_wrapper, .gk_is_image { width: auto !important; height: auto !important; }
	.nsp_main, [class^="nsp_main"], .nsp_art, .nsp_links, .nsp_arts { width: auto !important; max-width: 100% !important; float: none !important; }
	.nsp_art { display: block !important; }
	.nsp_image { float: none !important; display: block; width: 100% !important; height: auto !important; margin: 0 0 8px !important; }

	/* Contenido */
	#gk-mainbody .article-content, #gk-contentwrap { padding-left: 12px !important; padding-right: 12px !important; }
	h1.contentheading, #gk-mainbody h1 { font-size: 24px !important; line-height: 1.25 !important; margin-left: 0 !important; }
	table { max-width: 100% !important; }
	table.tablacifras, #gk-mainbody table[width], #gk-mainbody table[style*="width"] { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; width: auto !important; }
	pre { white-space: pre-wrap; }

	/* Formulario de solicitud de información */
	#ep-solicitud input[type="text"], #ep-solicitud input[type="email"], #ep-solicitud input[type="tel"], #ep-solicitud textarea { width: 100% !important; }

	/* Pie */
	#gk-middle-bar { height: auto !important; line-height: normal !important; padding: 12px; }
	#gk-search { float: none !important; }
	#gk-search input { width: 100% !important; margin: 0 !important; box-sizing: border-box; }
	#gk-footer li { float: none !important; display: inline-block; padding: 6px 10px !important; line-height: 1.5 !important; }
	#gk-copyright { float: none !important; text-align: center; padding-top: 8px; }
	#gk-copyright p { text-align: center !important; }
}

@media (max-width: 640px) {
	#gk-mainbody img[style*="float"], #gk-mainbody img[align] {
		float: none !important; display: block; margin: 12px auto !important; width: auto !important;
	}
	body { font-size: 15px !important; }
	#gk-mainbody p, #gk-mainbody li { font-size: 15px; line-height: 1.6; }
}

/* epoint 17963: formulario de solicitud de información y tablas de las páginas legales */
.ep-form { max-width: 720px; margin: 18px 0 10px; }
.ep-form .ep-fila { display: flex; gap: 16px; }
.ep-form .ep-fila .ep-campo { flex: 1 1 0; min-width: 0; }
.ep-form .ep-campo { margin: 0 0 14px; }
.ep-form label { display: block; font-weight: 700; font-size: 14px; color: #1b1f23; margin: 0 0 5px; }
.ep-form input[type="text"], .ep-form input[type="email"], .ep-form input[type="tel"], .ep-form textarea {
	width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 12px; font: 15px/1.4 Arial, Helvetica, sans-serif;
	color: #1b1f23; background: #fff; border: 1px solid #b9bfc5; border-radius: 6px; resize: vertical;
}
.ep-form textarea { min-height: 140px; }
.ep-form input:focus, .ep-form textarea:focus { outline: 3px solid rgba(11, 92, 173, .35); border-color: #0b5cad; }
.ep-form [aria-invalid="true"] { border-color: #c0392b; background: #fff7f6; }
.ep-form .ep-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 4px 0 10px; cursor: pointer; }
.ep-form .ep-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; }
.ep-form .ep-check[aria-invalid="true"], .ep-form .ep-check input[aria-invalid="true"] + span { color: #c0392b; }
.ep-form a, .ep-aviso-form a { color: #0b5cad; font-weight: 700; text-decoration: none; }
.ep-form .ep-legal { font-size: 12px; line-height: 1.5; color: #5a6168; margin: 0 0 16px; }
.ep-form .ep-oculto { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ep-form .ep-enviar { min-height: 48px; padding: 12px 28px; border: 0; border-radius: 8px; background: #1b1f23; color: #fff; font: 700 16px/1 Arial, Helvetica, sans-serif; cursor: pointer; }
.ep-form .ep-enviar:hover { background: #0b5cad; }
.ep-aviso-form { max-width: 720px; border-radius: 8px; padding: 14px 16px; margin: 14px 0; border: 1px solid; }
.ep-aviso-form p { margin: 0; }
.ep-aviso-form.ep-ok { background: #eef8f1; border-color: #9fd3b0; color: #1d5b33; }
.ep-aviso-form.ep-error { background: #fdf0ef; border-color: #f0b4ad; color: #8a2a20; }
table.ep-tabla-cookies { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 14px; }
table.ep-tabla-cookies th, table.ep-tabla-cookies td { border: 1px solid #dfe2e5; padding: 8px 10px; text-align: left; vertical-align: top; }
table.ep-tabla-cookies th { background: #f4f5f7; }
@media (max-width: 640px) {
	.ep-form .ep-fila { display: block; }
	table.ep-tabla-cookies { display: block; overflow-x: auto; }
}

/* epoint 17963: carrusel de la portada en móvil y tableta (foto a todo el ancho, texto debajo, sin marco) */
@media (max-width: 1020px) {
	#gk-header .gk-header, #gk-header .cab1, #gk-header .cab2, .portada #gk-header .cab2 { width: 100% !important; float: none !important; }
	#gk-header .gk-header > div { border-left: 0 !important; padding-left: 0 !important; }
	body.portada #gk-header, .portada #gk-header { background-image: none !important; }
	#gk_is-newsimage1 { overflow: hidden !important; }
	#gk_is-newsimage1 .tapa, #gk_is-newsimage1 .gk_is_preloader, #gk_is-newsimage1 .gk_is_timeline, #gk_is-newsimage1 .gk_is_text_interface { display: none !important; }
	#gk_is-newsimage1 .gk_is_image { width: 100% !important; height: auto !important; aspect-ratio: 380 / 243; position: relative !important; }
	#gk_is-newsimage1 .gk_is_slide { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; }
	#gk_is-newsimage1 .gk_is_text { height: auto !important; min-height: 0 !important; padding: 14px 16px 16px; box-sizing: border-box; }
	#gk_is-newsimage1 .gk_is_text_title { position: static !important; left: auto !important; top: auto !important; width: auto !important; margin: 0 !important; }
	#gk_is-newsimage1 .gk_is_text_title a { font-size: 22px !important; line-height: 1.2 !important; display: block; }
	#gk_is-newsimage1 .gk_is_text_title .texto { margin-top: 6px !important; font-size: 14px !important; line-height: 1.5; color: #ddd; }
	#gk_is-newsimage1 .gk_is_text_title .texto p { margin: 0 !important; }
	#gk-header .cab2 { padding: 12px 16px; box-sizing: border-box; }
}
