/*-----------------------------------------------------------------------------------
 accesibilidad.css — Global Percusión (tema marketwide)
 Correcciones WCAG 2.1 AA para el requerimiento de Kit Digital (diciembre de 2026).

 Se carga la ÚLTIMA (después de responsive.css) desde header.inc.php, para poder
 corregir reglas de bootstrap.min.css, modal.css y responsive.css sin tocarlas.
-------------------------------------------------------------------------------------*/

/*===================================================================================*/
/*  1. Enlace "Saltar al contenido principal" (WCAG 2.4.1)
/*===================================================================================*/
.saltar-contenido {
	position:absolute;
	left:-9999px;
	top:0;
	z-index:100000;
	background:#222;
	color:#fff;
	font-size:14px;
	font-weight:bold;
	padding:10px 15px;
	text-decoration:underline;
}
.saltar-contenido:focus, .saltar-contenido:active {
	left:10px;
	top:10px;
	color:#fff;
	outline:3px solid #fff;
	outline-offset:0;
}
#container:focus { outline:none; } /* destino del salto: no necesita recuadro */

/*===================================================================================*/
/*  2. Foco visible del teclado (WCAG 2.4.7)
/*===================================================================================*/
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible, .btn:focus-visible {
	outline:3px solid #222;
	outline-offset:2px;
}
/* Sobre la barra superior azul el recuadro va en blanco (solo en los enlaces
   de la barra, no en sus desplegables, que son blancos) */
#header .links > ul > li > a:focus-visible, #header #top-links > ul > li > a:focus-visible,
#header .htop .drop-icon:focus-visible,
.btn-primary:focus-visible {
	outline-color:#fff;
	outline-offset:-4px;
}
.btn-primary:focus-visible { box-shadow:0 0 0 2px #222; }
/* stylesheet.css quita el contorno a la miniatura activa de la ficha */
.product-info .image-additional a.active:focus-visible { outline:3px solid #222; outline-offset:2px; }

/*===================================================================================*/
/*  3. Formularios: texto de ejemplo legible (WCAG 1.4.3)
/*     bootstrap.min.css lo pone en #999 (2,85:1)
/*===================================================================================*/
.form-control::-webkit-input-placeholder { color:#6b6b6b; }
.form-control::-moz-placeholder { color:#6b6b6b; opacity:1; }
.form-control:-ms-input-placeholder { color:#6b6b6b; }
.form-control::placeholder { color:#6b6b6b; opacity:1; }

/*===================================================================================*/
/*  4. Enlaces dentro de texto: subrayados para no depender solo del color (WCAG 1.4.1)
/*===================================================================================*/
#content p a:not(.btn), #content .description a, #tab-description a,
#gdpr p a, #gdprConfig p a, #footer .fpart-first .contact a {
	text-decoration:underline;
}

/* Contenidos del CMS con color en línea rgb(28,154,205) (3,1:1). Lo correcto es
   quitarlo en el editor; esto evita el suspenso mientras tanto. */
#content [style*="28, 154, 205"], #content [style*="28,154,205"],
#content [style*="1c9acd"], #content [style*="1C9ACD"],
#content [style*="00a5d6"], #content [style*="00A5D6"] {
	color:#006b8f !important;
}
/* ...pero no en elementos donde ese tono es el fondo */
#content [style*="background"][style*="28, 154, 205"], #content [style*="background"][style*="28,154,205"],
#content [style*="background"][style*="1c9acd"], #content [style*="background"][style*="1C9ACD"],
#content [style*="background"][style*="00a5d6"], #content [style*="background"][style*="00A5D6"] {
	color:inherit !important;
}

/* Grises y etiquetas por defecto de Bootstrap que no llegan a 4,5:1 */
.text-muted, .breadcrumb > .active, .help-block { color:#6b6b6b; }
.label-default, .badge { background-color:#6b6b6b; }
.label-primary { background-color:#006b8f; }
.label-success { background-color:#2b7a0b; }
.label-info { background-color:#006b8f; }
.label-warning { background-color:#faa732; color:#222; }
.label-danger { background-color:#b52b27; }

/*===================================================================================*/
/*  5. Aviso y configuración de cookies (modal.css)
/*     Antes: alto fijo de 300 px con overflow:hidden -> el texto se cortaba al
/*     ampliar (WCAG 1.4.4 / 1.4.10 / 1.4.12) y 520 px fijos se salían en móvil.
/*===================================================================================*/
#gdpr {
	width:520px;
	max-width:calc(100% - 20px);
	height:auto;
	max-height:calc(100% - 20px);
	overflow-y:auto;
	background-image:none;
}
#gdprContent {
	width:100%;
	margin:0;
	height:auto;
	overflow:visible;
	box-shadow:0 4px 16px rgba(0, 0, 0, 0.35);
}
#gdprConfig {
	width:720px;
	max-width:calc(100% - 20px);
	height:auto;
	max-height:calc(100% - 20px);
	overflow-y:auto;
	background-image:none;
}
#gdprConfigContent {
	width:100%;
	margin:0;
	height:auto;
	overflow:visible;
	box-shadow:0 4px 16px rgba(0, 0, 0, 0.35);
}
#gdpr h2, #gdprConfig h2 {
	font-size:24px;
	line-height:1.25;
	margin:5px 0 10px;
}
#gdpr p, #gdprConfig p { text-align:left; line-height:1.5; }
#gdprConfig fieldset {
	border:0;
	margin:0;
	padding:0;
	min-width:0;
}
#gdprConfig .gdpr-opcion { text-align:center; margin-bottom:15px; }
#gdprConfig .gdpr-icono {
	display:block;
	font-size:36px;
	line-height:1.2;
	margin:10px 0;
	color:#444;
}
#gdprConfig .gdpr-opcion label {
	display:block;
	font-weight:normal;
	cursor:pointer;
	margin-bottom:8px;
}
#gdprConfig .gdpr-opcion input[type="radio"] {
	width:20px;
	height:20px;
	cursor:pointer;
}
#gdpr .gdpr-botones, #gdprConfig .gdpr-botones { text-align:center; }
#gdpr .gdpr-botones .btn, #gdprConfig .gdpr-botones .btn { margin:3px; }

/* Ventanas emergentes de newsletter y aviso: que no se salgan en móvil */
#newsletter, #overlay { max-width:calc(100% - 20px); }
#newsletterContent, #overlayContent { max-width:100%; }

/*===================================================================================*/
/*  6. Cabecera
/*===================================================================================*/
/* Icono del desplegable de categorías (antes llevaba el estilo en línea) */
#header #categorias .icono-categorias {
	font-size:28px;
	padding-left:1px;
	color:#006b8f;
	vertical-align:middle;
}
/* El icono del menú superior en móvil pasa de <span> a <button> */
button.drop-icon {
	background:none;
	border:0;
	color:#fff;
}

/*===================================================================================*/
/*  7. Pie
/*===================================================================================*/
#footer .kit-digital { margin:0 auto 20px; }

/*===================================================================================*/
/*  7b. Portada: los banners tienen dos .row anidados y en móvil la página se
/*      desplazaba 15 px en horizontal (WCAG 1.4.10). Lo correcto es quitar el
/*      .row sobrante en el HTML; esto lo neutraliza mientras tanto.
/*===================================================================================*/
.marketshop-banner > .row > .row { margin-left:0; margin-right:0; }
#back-top a:hover, #back-top a:focus { color:#fff; }

/*===================================================================================*/
/*  8. Ajustes para móvil (repiten para #categorias lo que responsive.css hace
/*     con #cart, porque el desplegable de categorías ya no usa ese id)
/*===================================================================================*/
@media (max-width: 991px) {
	.left-top { background:#006b8f; } /* antes #3E7CB4: 4,42:1 con texto blanco */
	#header #categorias {
		margin-top:25px;
		text-align:left;
	}
	#header #categorias .dropdown-menu {
		right:auto;
		left:0;
	}
	span.submore:after { opacity:1; } /* antes 0.6: el "+" quedaba en 2,8:1 */
}
@media (max-width: 767px) {
	#header #categorias { text-align:center; }
	#footer .footer-titulo { margin:0px 0px 5px; }
	/* Desplegables de categorías y carrito: con 620 px de ancho se salían de
	   la pantalla y provocaban desplazamiento horizontal (WCAG 1.4.10) */
	#header #categorias .dropdown-menu, #header #cart .dropdown-menu {
		left:50%;
		right:auto;
		margin-left:0;
		width:calc(100vw - 20px);
		max-width:620px;
		-webkit-transform:translateX(-50%);
		transform:translateX(-50%);
	}
	#header #categorias .dropdown-menu td { white-space:normal; }
}
