/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Description: Child theme for site-specific code (deep-link share page, FAQ archive queries, ACF editor tweaks). Keeps custom code safe from parent theme updates.
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/*
 * Elementor breakpoints leave 1024px < width < 1025px uncovered: tablet is
 * max-width:1024px and desktop is min-width:1025px. With zoom or fractional
 * display scaling the viewport can land there (e.g. 1024.5px) and both the
 * desktop menu and the mobile hamburgers show. Treat that gap as desktop.
 */
@media (1024px < width < 1025px) {
	.elementor .elementor-hidden-desktop {
		display: none;
	}

	.elementor-nav-menu--dropdown-tablet .elementor-menu-toggle,
	.elementor-nav-menu--dropdown-tablet .elementor-nav-menu--dropdown {
		display: none;
	}
}

/*
 * Home section ec190ba: one of its children has margin-right:-34px on desktop,
 * so with no side padding the text gets cut off between 1025 and 1279px.
 * Elementor has no breakpoint for that range, and asymmetric padding on all of
 * desktop would shift the boxed content 17px left at 1280px and above.
 */
@media (1024px < width < 1280px) {
	.elementor-163 .elementor-element.elementor-element-ec190ba.e-con {
		--padding-left: 30px;
		--padding-right: 64px;
	}

	/* "Síguenos / Canal" bar (home 58e57dc, sobre-nosotros b7f45fa): the 30px
	   side padding narrows it below 300px and "/ Canal" wraps. Keep the
	   tablet width as a floor. */
	.elementor-163 .elementor-element.elementor-element-58e57dc,
	.elementor-51 .elementor-element.elementor-element-b7f45fa {
		--width: max(58%, 300px);
	}
}

/*
 * Elementor's mobile breakpoint runs up to 767px, but the mobile values were
 * tuned at ~390px. Between 480 and 767px they stretch: the /inicio/ hero
 * background (cover, fixed 511px tall) crops away from the texts laid over it,
 * the header logo grows to 335px, and the store buttons drift apart. Elementor
 * has no breakpoint below mobile, so this range is handled here. 390px and
 * tablet are untouched.
 */
@media (min-width: 480px) and (max-width: 767px) {
	/* Header (#65 and #1512): cap the logo, let the menu column take the rest. */
	body .elementor-element.elementor-element-d5a431b,
	body .elementor-element.elementor-element-2dc777e {
		max-width: 180px;
	}

	/* Home and sobre-nosotros: keep the single mobile column at 560px,
	   centred, instead of stretching it to the full width. */
	body .elementor-163 > .e-con,
	body .elementor-51 > .e-con {
		--content-width: 560px;
	}

	/* Footer (#88 and #1517): same column. The logo is 50% of it, which
	   lands on the tablet size (240px) at 767px. */
	body .elementor-element.elementor-element-100e1d7,
	body .elementor-element.elementor-element-b4befa1 {
		max-width: 560px;
		margin-inline: auto;
	}

	body .elementor-element.elementor-element-571cebe,
	body .elementor-element.elementor-element-be3f9cb {
		--width: auto;
		flex-grow: 1;
	}

	/* App Store / Google Play rows: centred, same 39px gap as at 390px. */
	body .elementor-element.elementor-element-e4f53fa,
	body .elementor-element.elementor-element-cc526c1,
	body .elementor-element.elementor-element-f1e1464,
	body .elementor-element.elementor-element-394a40a,
	body .elementor-element.elementor-element-9d39858,
	body .elementor-element.elementor-element-743defd,
	body .elementor-element.elementor-element-e8f8dbe {
		--justify-content: center;
		justify-content: center;
		column-gap: 39px;
	}

	/* Home hero: keep the "en vivo" badge next to its text. */
	body .elementor-163 .elementor-element.elementor-element-e3cedf7 {
		--flex-wrap: nowrap;
	}

	body .elementor-163 .elementor-element.elementor-element-1a89bb3 {
		--container-widget-width: auto;
		width: auto;
		max-width: none;
		flex: 0 1 auto;
	}

	body .elementor-163 .elementor-element.elementor-element-eb0dc4f {
		margin-left: 12px;
	}

	/* /inicio/ hero: scale the height with the width so the background keeps
	   the same crop as at 390px (511 / 390 = 1.31). */
	body .elementor-12 .elementor-element.elementor-element-48dce38 {
		--min-height: 131vw;
	}

	body .elementor-12 .elementor-element.elementor-element-dee883c {
		--margin-top: -24vw;
	}
}
