/*
Theme Name:   Productos-limpieza-profesional.com
Theme URI:    https://productos-limpieza-profesional.com
Description:  Tema hijo de Divi 5 para productos-limpieza-profesional.com. La maquetación y el diseño se hacen con los módulos nativos de Divi y el Theme Builder; este tema hijo solo añade las reglas mínimas de accesibilidad (foco visible y enlace de salto al contenido), las tablas en móvil, el botón del menú, la escala de pH, las fichas de producto y el aspecto del directorio.
Author:       Presencia en Internet
Template:     Divi
Version:      1.0.4
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  productos-limpieza-profesional
*/

/* Colores del directorio de empresas (plugin WL Satélite) y escala de pH */
:root {
	--wl-acento: #4D5B16;
	--wl-tinta: #22261A;
	--wl-fondo: #FFFFFF;
	--wl-linea: #DEDCC4;
	--wl-destacado: #E9B824;
	--wl-gris: #F6F5EA;
	--pp-mostaza: #E9B824;
	--pp-ph: linear-gradient(90deg, #E2231A 0%, #F26724 7.1%, #F8C611 14.3%, #EBDD1C 21.4%, #B5D333 28.6%, #84C341 35.7%, #4DB849 42.9%, #2FA84F 50%, #1FAE74 57.1%, #0AB2B0 64.3%, #3B8FCB 71.4%, #3853A4 78.6%, #5A51A2 85.7%, #63459D 92.9%, #6C2180 100%);
}

/* Foco visible para quien navega con teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid #4D5B16;
	outline-offset: 2px;
}
.et-l--footer a:focus-visible,
.et_pb_section[class*="et_pb_with_background"] a.et_pb_button:focus-visible {
	outline-color: #E9B824;
}

/* Enlace de salto al contenido: oculto hasta que recibe el foco */
.pp-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100000;
	padding: 12px 20px;
	background: #22261A;
	color: #FFFFFF;
	font-weight: 600;
	text-decoration: none;
}
.pp-skip-link:focus {
	left: 0;
}

/* Tablas dentro de los módulos de texto: alineadas arriba y sin desbordar en móvil */
.et_pb_text table { width: 100%; border-collapse: collapse; }
.et_pb_text .et_pb_text_inner tr th, .et_pb_text .et_pb_text_inner tr td { padding: 12px 14px; vertical-align: top; text-align: left; border-bottom: 1px solid #DEDCC4; }
.et_pb_text .et_pb_text_inner tr th { background: #22261A; color: #FFFFFF; font-weight: 600; }
.et_pb_text .et_pb_text_inner tr td { font-variant-numeric: tabular-nums; }
@media (max-width: 767px) {
	.et_pb_text .et_pb_text_inner { overflow-x: auto; }
	.et_pb_text .et_pb_text_inner tr th, .et_pb_text .et_pb_text_inner tr td { padding: 8px; font-size: 15px; line-height: 1.4; }
}

/* Cabecera: el logotipo no se encoge cuando el menú es largo; en pantallas medianas el menú se compacta. */
.et-l--header .et_pb_menu__logo-wrap { flex-shrink: 0; }
@media (min-width: 981px) and (max-width: 1280px) {
	.et-l--header .et_pb_menu .et-menu > li { padding-left: 7px; padding-right: 7px; }
	.et-l--header .et_pb_menu .et-menu > li > a { font-size: 15px; }
}

/* Menú: «¿Quieres aparecer en esta web?» destacado como botón mostaza con texto oscuro */
.et-l--header .et-menu > li.menu-cta { display: flex; align-items: center; padding-right: 0; }
.et-l--header .et-menu > li.menu-cta > a { background: #E9B824; border: 2px solid #22261A; border-radius: 6px; color: #22261A !important; font-weight: 600; opacity: 1; padding: 10px 16px !important; }
.et-l--header .et-menu > li.menu-cta > a:hover, .et-l--header .et-menu > li.menu-cta > a:focus { background: #22261A; color: #FFFFFF !important; opacity: 1; }
.et-l--header .et_mobile_menu li.menu-cta > a { background: #E9B824; color: #22261A !important; font-weight: 600; opacity: 1; }

/* Botones: esquinas de 6 px en toda la web */
body #page-container .et_pb_button, body .wl-dir__filtro button, body .wl-dir__paginas a, body .wl-dir__paginas span, body .et_pb_text .wl-dir .wl-dir__contacto a.wl-dir__mas, body .et_pb_text .wl-dir .wl-dir__todas a, body .wl-fic .wl-fic__formulario button { border-radius: 6px !important; }

/* ===== Lo propio de productos-limpieza-profesional.com: la escala de pH ===== */

/* Fotografías: esquinas de 6 px y, debajo, la escala de pH como filete de 6 px. No en el pie ni en el logotipo. */
#main-content .et_pb_image .et_pb_image_wrap { position: relative; border-radius: 6px; overflow: hidden; }
#main-content .et_pb_image .et_pb_image_wrap img { display: block; border-radius: 6px 6px 0 0; }
#main-content .et_pb_image .et_pb_image_wrap::after { content: ''; display: block; height: 6px; background: var(--pp-ph); }
.et-l--footer .et_pb_image .et_pb_image_wrap::after, .et-l--header .et_pb_image .et_pb_image_wrap::after { display: none; }

/* La escala: barra de 0 a 14 con marcas para lo que se usa en cada sitio */
#page-container .pp-ph { position: relative; margin: 6px 0 0; padding: 0 0 4px; }
#page-container .pp-ph__barra { position: relative; height: 18px; border-radius: 4px; background: var(--pp-ph); }
#page-container .pp-ph__num { display: flex; justify-content: space-between; margin: 6px 0 0; padding: 0; list-style: none; color: #45473A; font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
#page-container .pp-ph__num li { width: 1.2em; padding: 0; text-align: center; }
#page-container .pp-ph__zonas { display: flex; justify-content: space-between; margin: 2px 0 0; color: #22261A; font-size: 14px; font-weight: 600; }
#page-container .pp-ph--marcas { padding-top: 74px; }
#page-container .pp-ph__marcas { position: absolute; top: 0; left: 0; right: 0; height: 74px; margin: 0; padding: 0; list-style: none; }
#page-container .pp-ph__marcas li { position: absolute; bottom: 0; width: 3px; height: 24px; margin: 0; padding: 0; background: #22261A; border-radius: 2px; transform: translateX(-50%); }
#page-container .pp-ph__marcas li.pp-alto { height: 52px; }
#page-container .pp-ph__marcas li span { position: absolute; bottom: 100%; left: 50%; margin-bottom: 2px; padding: 3px 8px; border-radius: 4px; background: #22261A; color: #FFFFFF; font-size: 13px; font-weight: 600; line-height: 1.3; white-space: nowrap; transform: translateX(-50%); }
#page-container .pp-ph__marcas li.pp-izq span { left: -2px; transform: none; }
#page-container .pp-ph__marcas li.pp-der span { left: auto; right: -2px; transform: none; }
.pp-m0 { left: 0%; } .pp-m1 { left: 7.14%; } .pp-m2 { left: 14.29%; } .pp-m3 { left: 21.43%; } .pp-m4 { left: 28.57%; } .pp-m5 { left: 35.71%; } .pp-m6 { left: 42.86%; } .pp-m7 { left: 50%; } .pp-m8 { left: 57.14%; } .pp-m9 { left: 64.29%; } .pp-m10 { left: 71.43%; } .pp-m11 { left: 78.57%; } .pp-m12 { left: 85.71%; } .pp-m13 { left: 92.86%; } .pp-m14 { left: 100%; }
@media (max-width: 767px) { #page-container .pp-ph__marcas li span { font-size: 12px; padding: 2px 6px; } }

/* Fichas de producto: qué es, a qué pH trabaja y a qué dilución se usa */
#page-container ul.pp-fichas { list-style: none; margin: 0; padding: 0; border-top: 2px solid #22261A; }
#page-container ul.pp-fichas li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 6px 14px; padding: 13px 0; border-bottom: 1px solid #DEDCC4; line-height: 1.4; }
#page-container ul.pp-fichas li > span:first-child { color: #22261A; }
#page-container ul.pp-fichas li > span:first-child b { display: block; font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif; font-size: 18px; font-weight: 600; }
#page-container ul.pp-fichas li > span:first-child em { display: block; color: #45473A; font-size: 15px; font-style: normal; }
.pp-chip { display: inline-block; min-width: 4.6em; padding: 4px 9px; border-radius: 4px; color: #FFFFFF; font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif; font-size: 14px; font-weight: 700; line-height: 1.3; text-align: center; white-space: nowrap; }
.pp-chip--acido { background: #C81D15; }
.pp-chip--neutro { background: #24803B; }
.pp-chip--alcalino { background: #2F4F93; }
.pp-chip--fuerte { background: #5B1A6D; }
.pp-dil { min-width: 5.4em; color: #4D5B16; font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
@media (max-width: 600px) { #page-container ul.pp-fichas li { grid-template-columns: minmax(0, 1fr) auto; } #page-container ul.pp-fichas li > span:first-child { grid-column: 1 / -1; } .pp-dil { text-align: left; } }

/* Listas de enlaces (pie y barra lateral) */
#page-container ul.pp-enlaces { list-style: none; margin: 0; padding: 0; line-height: 2; }

/* Pasos numerados (solo donde el contenido es de verdad una secuencia) */
#page-container ol.pp-pasos { list-style: none; margin: 0; padding: 0; counter-reset: paso; }
#page-container ol.pp-pasos li { position: relative; padding: 0 0 18px 52px; line-height: 1.55; counter-increment: paso; }
#page-container ol.pp-pasos li:last-child { padding-bottom: 0; }
ol.pp-pasos li::before { content: counter(paso); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 6px; background: #E9B824; color: #22261A; font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif; font-size: 19px; font-weight: 700; line-height: 36px; text-align: center; }

/* Precio de referencia grande (portada y página de precios) */
#page-container p.pp-precio { margin: 0; padding-bottom: 8px; color: #4D5B16; font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif; font-size: 48px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
#page-container p.pp-precio small { display: block; margin: 10px 0 0; font-family: 'IBM Plex Sans', sans-serif; font-size: 17px; font-weight: 600; letter-spacing: 0; line-height: 1.3; color: #22261A; }
@media (max-width: 767px) { #page-container p.pp-precio { font-size: 40px; } }

/* Directorio (plugin WL Satélite). El plugin imprime sus estilos en el cuerpo de la página; por eso estas reglas llevan «body» delante. */
body .wl-dir__ficha { border: 1px solid var(--wl-linea); border-radius: 6px; padding: 24px; }
body .wl-dir__ficha--destacada { border: 2px solid var(--wl-acento); background: #FBFAF2; }
body .wl-dir__sello, body .wl-fic .wl-fic__sello { border-radius: 4px; padding: 7px 11px; background: #E9B824; color: #22261A; }
body .wl-dir__filtro select { border: 2px solid var(--wl-tinta); border-radius: 6px; padding: 11px 14px; }
body .wl-dir__filtro button { padding: 11px 24px; font-weight: 600; }
body .et_pb_text .wl-dir .wl-dir__contacto a { color: var(--wl-acento); }
body .et_pb_text .wl-dir .wl-dir__contacto a.wl-dir__mas { color: #FFFFFF; }
body .wl-dir .wl-dir__nombre, body .wl-fic .wl-fic__nombre, body .wl-fic .wl-fic__seccion h2, body .wl-fic .wl-fic__caja h2, body .wl-fic .wl-fic__form h2 { font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif; font-weight: 600; letter-spacing: 0; }
body .wl-dir .wl-dir__nombre { color: var(--wl-tinta); }
body .et_pb_text .wl-dir .wl-dir__todas a { display: inline-block; padding: 12px 22px; border: 2px solid var(--wl-tinta); color: var(--wl-tinta); font-weight: 600; text-decoration: none; }
body .et_pb_text .wl-dir .wl-dir__todas a:hover, body .et_pb_text .wl-dir .wl-dir__todas a:focus { background: var(--wl-tinta); color: #FFFFFF; }
@media (min-width: 981px) {
	body .et_pb_text .wl-dir.wl-dir--muestra ul.wl-dir__lista { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Índice de provincias */
#page-container ul.wl-dir__indice { gap: 0 40px; line-height: 1.35; }
body .et_pb_text .wl-dir ul.wl-dir__indice a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #DEDCC4; color: var(--wl-tinta); font-weight: 600; text-decoration: none; }
body .et_pb_text .wl-dir ul.wl-dir__indice a span { flex: 0 0 auto; color: #45473A; font-weight: 400; font-variant-numeric: tabular-nums; }
body .et_pb_text .wl-dir ul.wl-dir__indice a:hover, body .et_pb_text .wl-dir ul.wl-dir__indice a:focus { color: var(--wl-acento); }

/* Miniaturas del blog: el hueco es de 8:5 y las imágenes son de 3:2. Se recortan en lugar de deformarse. */
body .et_pb_post a.entry-featured-image-url img { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 6px; }

/* Títulos con enlace (tarjetas): el enlace hereda el color del título */
.et_pb_heading .et_pb_module_header a, .et_pb_module_heading a { color: inherit; text-decoration: none; }
.et_pb_heading .et_pb_module_header a:hover, .et_pb_module_heading a:hover, .et_pb_module_heading a:focus { text-decoration: underline; }

/* Ficha de empresa */
body .wl-fic__logo { border-radius: 6px; }
body .wl-fic__chips li { border: 1px solid var(--wl-linea); border-radius: 4px; background: var(--wl-gris); padding: 8px 13px; }
body .wl-fic__cabecera { border-bottom-width: 2px; }
body .wl-fic__caja, body .wl-fic__form { border-radius: 6px; }
body .wl-fic .wl-fic__formulario input:not([type=checkbox]), body .wl-fic .wl-fic__formulario textarea { border-radius: 6px; }
body .wl-fic .wl-fic__formulario button { font-size: 18px; font-weight: 600; }
body .wl-fic .wl-fic__nota { border: 1px solid var(--wl-linea); border-radius: 6px; }

/* Resultados de búsqueda y archivos (plantilla por defecto de Divi): una columna, sin la barra lateral vacía y con la letra de la web */
.search #main-content .container, .archive #main-content .container { max-width: 900px; padding-top: 56px; padding-bottom: 72px; }
.search #main-content .container::before, .archive #main-content .container::before { display: none; }
.search #left-area, .archive #left-area { float: none; width: 100%; padding-right: 0; }
.search #sidebar, .archive #sidebar { display: none; }
.search #left-area .et_pb_post, .archive #left-area .et_pb_post { margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid #DEDCC4; }
.search #left-area .et_pb_post img, .archive #left-area .et_pb_post img { border-radius: 6px; }
.search #left-area .entry-title, .archive #left-area .entry-title { color: #22261A; font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif; font-size: 27px; font-weight: 600; line-height: 1.2; }
.search #left-area .post-meta, .search #left-area .post-meta a, .archive #left-area .post-meta, .archive #left-area .post-meta a { color: #45473A; font-family: 'IBM Plex Sans', sans-serif; font-size: 15px; }

/* Tableta apaisada (981 a 1099 px): el menú con el botón no cabe en una línea; se encoge el logotipo y se aprieta el menú. */
@media (min-width: 981px) and (max-width: 1099px) {
	.et-l--header .et_pb_menu__logo img { max-height: 40px !important; }
	.et-l--header .et-menu > li { padding-left: 3px !important; padding-right: 3px !important; }
	.et-l--header .et-menu > li > a { font-size: 14px !important; }
	.et-l--header .et-menu > li.menu-cta > a { padding-left: 10px !important; padding-right: 10px !important; }
}

/* Columna lateral: título, pie y lista de «antes de pedir precio» */
#page-container .pp-lado__t { margin: 0 0 16px; padding: 0; color: #22261A; font-family: 'IBM Plex Sans Condensed', 'IBM Plex Sans', sans-serif; font-size: 24px; font-weight: 700; line-height: 1.2; }
#page-container .pp-lado__pie { margin: 12px 0 0; padding: 0; color: #45473A; font-size: 14px; line-height: 1.45; }
#page-container ul.pp-antes { list-style: none; margin: 0; padding: 0; border-top: 2px solid #22261A; }
#page-container ul.pp-antes li { padding: 11px 0; border-bottom: 1px solid #DEDCC4; line-height: 1.45; }
