/*
 * P-Cultura — estilos base.
 * Reset mínimo + estructura para páginas que no usan Elementor.
 * Colores, tipografías y diseño: en Elementor (Ajustes del sitio) o en p-cultura-child.
 */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.5;
	color: #1d2327;
	background: #fff;
}

/*
 * Pie siempre abajo ("sticky footer"): el body es una columna de al menos el alto de la pantalla
 * y el pie (de Elementor o del tema) se empuja al fondo. Sin espacio debajo aunque haya poco contenido.
 */
body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}

body.admin-bar {
	min-height: calc(100vh - var(--wp-admin--admin-bar--height, 32px));
	min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 32px));
}

body > * {
	flex-shrink: 0;
}

body > .elementor-location-footer,
body > .pc-footer {
	margin-top: auto;
}

img,
video,
svg {
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.6em;
	line-height: 1.2;
}

p,
ul,
ol {
	margin: 0 0 1em;
}

/* Accesibilidad */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	clip: auto;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 18px;
	top: 8px;
	left: 8px;
	z-index: 100000;
	background: #fff;
	color: #1d2327;
	border-radius: 6px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Estructura mínima (cuando no hay plantillas de Elementor) */
.pc-contenedor {
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 20px;
}

.pc-header {
	border-bottom: 1px solid #e2e4e7;
}

.pc-header__fila {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 64px;
}

/* Mobile first: el logo se achica en celular para no desbordar la pantalla */
.pc-header__marca {
	min-width: 0;
	flex: 1 1 auto;
}

.pc-header .custom-logo {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 44px;
}

@media (min-width: 768px) {
	.pc-header .custom-logo {
		max-height: none;
	}
}

.pc-header__titulo {
	font-size: 1.25rem;
	font-weight: 700;
	text-decoration: none;
}

.pc-header__menu ul,
.pc-footer ul {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pc-header__menu a,
.pc-footer a {
	text-decoration: none;
}

.pc-main {
	padding-top: 40px;
	padding-bottom: 40px;
}

.pc-entrada + .pc-entrada {
	margin-top: 32px;
}

.pc-footer {
	padding: 24px 0;
	border-top: 1px solid #e2e4e7;
	font-size: 0.875rem;
	color: #50575e;
}

.pc-footer p {
	margin: 8px 0 0;
}

/* Alineaciones del editor de bloques */
.alignwide {
	max-width: 1340px;
	margin-left: auto;
	margin-right: auto;
}

.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
}
