/*
Theme Name:   Fregadoras.net
Theme URI:    https://fregadoras.net
Description:  Tema hijo de Divi 5 para fregadoras.net. 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) y de tablas en móvil.
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:  fregadoras-net
*/

/* 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 #FACC15;
	outline-offset: 2px;
}

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

.fregadoras-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: 10px 14px; vertical-align: top; text-align: left; }
@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; }
}
@media (min-width: 981px) and (max-width: 1100px) {
	.et-l--header .et_pb_menu__logo-wrap { max-width: 170px; }
	.et-l--header .et_pb_menu .et-menu > li { padding-left: 5px; padding-right: 5px; }
	.et-l--header .et_pb_menu .et-menu > li > a { font-size: 14px; }
}

/* Menú: «¿Quieres aparecer en esta web?» destacado como botón. */
.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: #FACC15; border: 2px solid #FACC15; color: #0F1E46 !important; font-weight: 600; opacity: 1; padding: 11px 16px !important; }
.et-l--header .et-menu > li.menu-cta > a:hover, .et-l--header .et-menu > li.menu-cta > a:focus { background: #EAB308; border-color: #EAB308; opacity: 1; }
.et-l--header .et_mobile_menu li.menu-cta > a { background: #FACC15; color: #0F1E46 !important; font-weight: 600; opacity: 1; }
