/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* ==========================================================================
 * REWORK — Integración con Hello de las páginas REWORK (body.rework-page):
 * portada "Inicio" y páginas legales. La clase la añade functions.php.
 * El CSS del diseño está en los bloques "HTML personalizado" (patrones
 * "REWORK · Cabecera" / "REWORK · Pie" y contenido de Inicio).
 * ========================================================================== */

/* Los contenedores de Hello (main y .page-content) no deben añadir márgenes
   ni limitar el ancho. overflow-x: clip evita scroll horizontal por las
   animaciones sin romper la barra "sticky" (overflow: hidden sí la rompería). */
body.rework-page .site-main,
body.rework-page .page-content {
	margin: 0;
	padding: 0;
	max-width: none;
	width: 100%;
}
body.rework-page .page-content {
	overflow-x: clip;
}

/* Enlace accesible "Ir al contenido": su CSS estaba en theme.css de Hello,
   que en estas páginas no se carga. Oculto salvo cuando recibe el foco con teclado. */
body.rework-page .screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	height: 1px;
	width: 1px;
	overflow: hidden;
	position: absolute !important;
	word-wrap: normal !important;
}
body.rework-page .screen-reader-text:focus {
	clip: auto !important;
	height: auto;
	width: auto;
	display: block;
	top: 5px;
	left: 5px;
	z-index: 100000;
	padding: 12px 24px;
	background: #E1FF00;
	color: #000;
	text-decoration: none;
}

/* Con sesión iniciada, la barra de administración de WordPress (32 px; 46 px
   en móvil) taparía la barra de navegación fija del diseño: se desplaza hacia abajo. */
body.rework-page.admin-bar #site-navbar { top: 32px; }
@media screen and (max-width: 782px) {
	body.rework-page.admin-bar #site-navbar { top: 46px; }
}

/* --------------------------------------------------------------------------
 * Páginas legales: texto en bloques normales de Gutenberg dentro de un grupo
 * con la clase "rework-legal". Estilo como en la web original: fondo blanco,
 * título negro en negrita, texto de 18 px, ancho máximo 1280 px.
 * -------------------------------------------------------------------------- */
body.rework-page .rework-legal {
	max-width: 80rem;              /* 1280 px */
	margin: 0 auto;
	padding: 40px 24px;
	color: #000;
	font-size: 1.125rem;           /* 18 px */
	line-height: 1.75;
}
@media (min-width: 1024px) {
	body.rework-page .rework-legal { padding-top: 80px; padding-bottom: 80px; }
}
body.rework-page .rework-legal h1 {
	font-size: 1.5rem;             /* 24 px; 30 px desde 640 px */
	line-height: 2rem;
	font-weight: 700;
	margin-bottom: 2rem;
}
@media (min-width: 640px) {
	body.rework-page .rework-legal h1 { font-size: 1.875rem; line-height: 2.25rem; }
}
body.rework-page .rework-legal h2 {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 2.5rem 0 1rem;
}
body.rework-page .rework-legal p { margin-bottom: 1rem; }
body.rework-page .rework-legal ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
body.rework-page .rework-legal li { margin-bottom: 0.5rem; }
body.rework-page .rework-legal a { text-decoration: underline; }
body.rework-page .rework-legal a:hover { color: #6B7280; }
body.rework-page .rework-legal code { font-size: 0.9em; background: #F3F4F6; padding: 0 4px; border-radius: 2px; }
