/*
 * Valores editoriales predeterminados de Confa.
 * Las personalizaciones de Gutenberg conservan prioridad mediante clases
 * has-*, atributos style y selectores de mayor especificidad.
 */

:where(.elementor-widget-theme-post-content, .editor-styles-wrapper) {
	--confa-editorial-primary: #00aeef;
	--confa-editorial-primary-hover: #008fc7;
	--confa-editorial-ink: #404040;
	--confa-editorial-heading: #101828;
	--confa-editorial-border: #dfe5ec;
	--confa-editorial-soft: #f4faff;
	color: var(--confa-editorial-ink);
	font-family: Ubuntu, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

:where(.elementor-widget-theme-post-content, .editor-styles-wrapper) :where(p, li) {
	font-family: Ubuntu, sans-serif;
	line-height: 1.5;
}

:where(.elementor-widget-theme-post-content, .editor-styles-wrapper) :where(h1, h2, h3, h4, h5, h6):not(.has-text-color) {
	color: var(--confa-editorial-primary);
}

:where(.elementor-widget-theme-post-content, .editor-styles-wrapper) :where(h1, h2, h3, h4, h5, h6) {
	font-family: Ubuntu, sans-serif;
	font-weight: 700;
}

:where(.elementor-widget-theme-post-content, .editor-styles-wrapper) :where(h1):not([class*="-font-size"]):not([style*="font-size"]) {
	font-size: 36px;
	line-height: 1.2;
}

:where(.elementor-widget-theme-post-content, .editor-styles-wrapper) :where(h2):not([class*="-font-size"]):not([style*="font-size"]) {
	font-size: 28px;
	line-height: 34px;
}

:where(.elementor-widget-theme-post-content, .editor-styles-wrapper) :where(h3):not([class*="-font-size"]):not([style*="font-size"]) {
	font-size: 24px;
	line-height: 30px;
}

:where(.elementor-widget-theme-post-content, .editor-styles-wrapper) :where(h4):not([class*="-font-size"]):not([style*="font-size"]) {
	font-size: 20px;
	line-height: 26px;
}

:where(.elementor-widget-theme-post-content, .editor-styles-wrapper) :where(h5):not([class*="-font-size"]):not([style*="font-size"]) {
	font-size: 18px;
	line-height: 24px;
}

:where(.elementor-widget-theme-post-content, .editor-styles-wrapper) :where(h6):not([class*="-font-size"]):not([style*="font-size"]) {
	font-size: 16px;
	line-height: 22px;
}

:where(.elementor-widget-theme-post-content, .editor-styles-wrapper) a:not(.wp-block-button__link):not(.has-text-color) {
	color: var(--confa-editorial-primary);
}

:where(.elementor-widget-theme-post-content, .editor-styles-wrapper) a:not(.wp-block-button__link):not(.has-text-color):hover,
:where(.elementor-widget-theme-post-content, .editor-styles-wrapper) a:not(.wp-block-button__link):not(.has-text-color):focus-visible {
	color: var(--confa-editorial-primary-hover);
}

:where(.elementor-widget-theme-post-content, .editor-styles-wrapper) .wp-block-button__link:not(.has-background):not([style*="background"]) {
	background-color: var(--confa-editorial-primary);
	box-shadow: inset 0 0 0 2px var(--confa-editorial-primary);
}

:where(.elementor-widget-theme-post-content, .editor-styles-wrapper) .wp-block-button__link:not(.has-text-color) {
	color: #fff;
}

:where(.elementor-widget-theme-post-content, .editor-styles-wrapper) .wp-block-button .wp-block-button__link {
	font-family: Ubuntu, sans-serif;
	font-weight: 600;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

:where(.elementor-widget-theme-post-content, .editor-styles-wrapper) .wp-block-button .wp-block-button__link:not([class*="-font-size"]):not([style*="font-size"]) {
	font-size: 16px;
	line-height: 24px;
}

:where(.elementor-widget-theme-post-content, .editor-styles-wrapper) .wp-block-button .wp-block-button__link:not([style*="border-radius"]) {
	border-radius: 8px;
}

:where(.elementor-widget-theme-post-content, .editor-styles-wrapper) .wp-block-button .wp-block-button__link:not([style*="padding"]) {
	padding: 12px 28px;
}

:where(.elementor-widget-theme-post-content, .editor-styles-wrapper) .wp-block-button__link:not(.has-background):not([style*="background"]):hover {
	background-color: #fff;
}

:where(.elementor-widget-theme-post-content, .editor-styles-wrapper) .wp-block-button__link:not(.has-background):not([style*="background"]):not(.has-text-color):hover,
:where(.elementor-widget-theme-post-content, .editor-styles-wrapper) .wp-block-button__link:not(.has-background):not([style*="background"]):not(.has-text-color):focus-visible {
	color: var(--confa-editorial-primary);
}

:where(.elementor-widget-theme-post-content, .editor-styles-wrapper) .wp-block-button__link:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--confa-editorial-primary) 35%, transparent);
	outline-offset: 3px;
}

:where(.elementor-widget-theme-post-content, .editor-styles-wrapper) :where(.wp-block-image img, .wp-block-video video) {
	height: auto;
	max-width: 100%;
}

:where(.elementor-widget-theme-post-content, .editor-styles-wrapper) .wp-block-accordion {
	display: grid;
	gap: 12px;
}

:where(.elementor-widget-theme-post-content, .editor-styles-wrapper) .wp-block-accordion-item {
	border: 1px solid var(--confa-editorial-border);
	border-radius: 8px;
	overflow: clip;
}

:where(.elementor-widget-theme-post-content, .editor-styles-wrapper) .wp-block-accordion-heading__toggle:not(.has-background) {
	background: #fff;
}

:where(.elementor-widget-theme-post-content, .editor-styles-wrapper) .wp-block-accordion-heading__toggle:not(.has-text-color) {
	color: var(--confa-editorial-primary);
}

:where(.elementor-widget-theme-post-content, .editor-styles-wrapper) .wp-block-accordion-heading__toggle {
	font-family: Ubuntu, sans-serif;
	font-size: 22px;
	font-weight: 700;
	line-height: 28px;
	padding: 16px 20px;
	width: 100%;
}

:where(.elementor-widget-theme-post-content, .editor-styles-wrapper) .wp-block-accordion-panel {
	padding: 0 20px 18px;
}

:where(.elementor-widget-theme-post-content, .editor-styles-wrapper) :where(.wp-block-group, .wp-block-column).is-style-confa-card {
	border: 1px solid var(--confa-editorial-border);
	border-radius: 12px;
	box-shadow: 0 8px 24px rgb(16 24 40 / 7%);
	padding: 24px;
}

:where(.elementor-widget-theme-post-content, .editor-styles-wrapper) :where(.wp-block-group, .wp-block-column).is-style-confa-card:not(.has-background) {
	background-color: #fff;
}

:where(.elementor-widget-theme-post-content, .editor-styles-wrapper) .wp-block-group.is-style-confa-notice {
	border: 1px solid #b9e8fa;
	border-left: 4px solid var(--confa-editorial-primary);
	border-radius: 8px;
	padding: 16px 20px;
}

:where(.elementor-widget-theme-post-content, .editor-styles-wrapper) .wp-block-group.is-style-confa-notice:not(.has-background) {
	background-color: var(--confa-editorial-soft);
}

@media (max-width: 767px) {
	:where(.elementor-widget-theme-post-content, .editor-styles-wrapper) :where(h1):not([class*="-font-size"]):not([style*="font-size"]) {
		font-size: 32px;
	}

	:where(.elementor-widget-theme-post-content, .editor-styles-wrapper) :where(h2):not([class*="-font-size"]):not([style*="font-size"]) {
		font-size: 26px;
		line-height: 32px;
	}

	:where(.elementor-widget-theme-post-content, .editor-styles-wrapper) :where(.wp-block-group, .wp-block-column).is-style-confa-card {
		padding: 18px;
	}
}
