/*
Theme Name: Hello Elementor Child
Theme URI: https://polaravis.mddesarrollo.com.ar/
Description: Child theme de Hello Elementor para POLARAVIS. Carga la familia Minerva Modern por @font-face, la registra en Elementor, publica el selector de idioma de Polylang y define los tokens de color/tipografia del sitio.
Author: MD Marketing Digital
Author URI: https://www.mdmarketingdigital.com/
Template: hello-elementor
Version: 1.0.7
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/

/* -------------------------------------------------------------------------
   1. Minerva Modern (fuente comercial, servida local desde este child theme)
   ------------------------------------------------------------------------- */

@font-face {
	font-family: 'Minerva Modern';
	src: url('fonts/MinervaModern-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Minerva Modern';
	src: url('fonts/MinervaModern-Bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Minerva Modern';
	src: url('fonts/MinervaModern-Black.woff2') format('woff2');
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}

/* -------------------------------------------------------------------------
   2. Tokens de marca (valores medidos sobre los comps, ver despiece)
   ------------------------------------------------------------------------- */

:root {
	--pv-navy: #000018;
	--pv-cream: #ECE6E2;
	--pv-gold: #A08E61;
	--pv-gold-line: #B4975A;
	--pv-white: #FFFFFF;
	--pv-gray: #808080;
	--pv-teal: #00446A;
	--pv-font-heading: 'Minerva Modern', Georgia, 'Times New Roman', serif;
	--pv-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
	--pv-radius-card: 12px;
	--pv-radius-button: 16px;
}

/* -------------------------------------------------------------------------
   3. Selector de idioma (shortcode [pll_switcher])
   ------------------------------------------------------------------------- */

.pv-lang {
	position: relative;
	display: inline-block;
	font-family: var(--pv-font-body);
	font-size: 14px;
	line-height: 1;
}

.pv-lang__toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 4px 2px;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: var(--pv-cream);
	font: inherit;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
}

.pv-lang__toggle:hover,
.pv-lang__toggle:focus,
.pv-lang__toggle:focus-visible,
.pv-lang__toggle:active {
	background: none;
	color: var(--pv-white);
	outline: none;
	box-shadow: none;
}

.pv-lang__caret {
	display: inline-block;
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 4px solid currentColor;
	transition: transform 0.15s ease;
}

.pv-lang__toggle[aria-expanded="true"] .pv-lang__caret {
	transform: rotate(180deg);
}

.pv-lang__list {
	position: absolute;
	z-index: 99;
	top: 100%;
	left: 50%;
	min-width: 74px;
	margin: 6px 0 0;
	padding: 6px 0;
	list-style: none;
	background: var(--pv-navy);
	border: 1px solid rgba(236, 230, 226, 0.25);
	transform: translateX(-50%);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

.pv-lang.is-open .pv-lang__list,
.pv-lang:hover .pv-lang__list,
.pv-lang:focus-within .pv-lang__list {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.pv-lang__list li {
	margin: 0;
	padding: 0;
}

.pv-lang__list a {
	display: block;
	padding: 7px 14px;
	color: var(--pv-cream);
	font-weight: 400;
	letter-spacing: 0.04em;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
}

.pv-lang__list a:hover,
.pv-lang__list a:focus {
	color: var(--pv-gold);
	text-decoration: none;
}

.pv-lang__list li.is-current a {
	color: var(--pv-gold);
}

/* -------------------------------------------------------------------------
   4. Formulario Contact Form 7 — inputs de linea inferior fina
   ------------------------------------------------------------------------- */

.pv-form .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

.pv-form input[type="text"],
.pv-form input[type="email"],
.pv-form input[type="tel"],
.pv-form textarea {
	width: 100%;
	padding: 8px 0;
	border: 0;
	border-bottom: 1px solid #808285;
	border-radius: 0;
	background: transparent;
	color: var(--pv-navy);
	font-family: var(--pv-font-body);
	font-size: 14px;
}

.pv-form input[type="text"]:focus,
.pv-form input[type="email"]:focus,
.pv-form input[type="tel"]:focus,
.pv-form textarea:focus {
	border-bottom-color: var(--pv-gold);
	outline: none;
}

.pv-form input[type="submit"] {
	padding: 0;
	border: 0;
	border-bottom: 1px solid var(--pv-gold);
	background: none;
	color: var(--pv-gold);
	font-family: var(--pv-font-body);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
}

.pv-form input[type="submit"]:hover {
	background: none;
	color: var(--pv-gold-line);
}

/* -------------------------------------------------------------------------
   5. Header flotante — transparente y superpuesto sobre el hero
   ------------------------------------------------------------------------- */

#page {
	position: relative;
}

/* Header Footer Builder trae `.ehf-header #masthead { position: relative }`,
   por eso hace falta ganarle en especificidad para el header flotante. */
body.ehf-header #masthead {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: 99;
}

/* Escape hatch: paginas sin hero (el header vuelve a ocupar espacio en el flujo). */
body.pv-no-overlay.ehf-header #masthead {
	position: static;
}

.pv-header-logo img,
.pv-footer-lockup img {
	display: block;
}

/* Separador vertical entre el selector de idioma y los iconos sociales
   (comp: linea de 22px de alto a x=1611.5). */
/* El contenedor de iconos no debe estirarse al ancho de la columna: si lo hace,
   en mobile empuja el selector de idioma a una segunda fila y descoloca el
   separador vertical. */
.pv-header .pv-header-social {
	position: relative;
	width: auto;
	flex: 0 0 auto;
}

.pv-header-social::before {
	content: "";
	position: absolute;
	top: 50%;
	left: -18px;
	width: 1px;
	height: 22px;
	background: var(--pv-cream);
	opacity: 0.7;
	transform: translateY(-50%);
}

.pv-header-lang {
	line-height: 1;
}

.pv-header-menu .hfe-nav-menu a.hfe-menu-item {
	transition: color 0.15s ease;
}

@media (max-width: 767px) {
	/* El separador es un detalle del comp de escritorio; en mobile estorba. */
	.pv-header-social::before {
		display: none;
	}
}

/* Menu colapsado: el panel se despliega a lo ancho del header, no dentro de la
   columna del boton (que mide ~22% y hacia que el texto se solapara con el
   selector de idioma). */
@media (max-width: 1024px) {
	/* El JS de Header Footer Builder escribe width/left inline sobre el nav
	   colapsado calculando mal el contenedor (queda de 77px). Hay que ganarle
	   con !important para que el panel ocupe el ancho del header. */
	.pv-header-menu nav.hfe-dropdown {
		position: absolute !important;
		top: 100% !important;
		right: 0 !important;
		left: 0 !important;
		width: 100% !important;
		max-width: 100vw;
	}

	/* El bloque contenedor del panel absoluto tiene que ser el header, no el
	   widget del menu (Elementor le pone position:relative a todo widget). */
	.pv-header-col--nav,
	.pv-header-menu {
		position: static !important;
	}

	.pv-header-menu .hfe-nav-menu__toggle {
		position: relative;
		z-index: 2;
	}

	/* La lista interna conserva el ancho de la columna del boton si no se la
	   estira: los items quedarian centrados en una franja de ~80px. */
	.pv-header-menu nav.hfe-dropdown ul.hfe-nav-menu,
	.pv-header-menu nav.hfe-dropdown li.menu-item,
	.pv-header-menu nav.hfe-dropdown ul.sub-menu {
		width: 100%;
	}

	.pv-header-menu nav.hfe-dropdown {
		padding-bottom: 8px;
	}
}

/* -------------------------------------------------------------------------
   6. Footer — marca de agua del ala y columnas
   ------------------------------------------------------------------------- */

.pv-footer {
	position: relative;
	overflow: hidden;
}

.pv-footer-watermark {
	position: absolute !important;
	top: 28px;
	left: 50%;
	z-index: 0;
	transform: translateX(-50%);
	pointer-events: none;
}

.pv-footer-watermark img {
	pointer-events: none;
	user-select: none;
}

.pv-footer-cols,
.pv-footer-legal {
	position: relative;
	z-index: 1;
}

.pv-footer-menu .hfe-nav-menu a.hfe-menu-item,
.pv-footer-menu .hfe-nav-menu a.hfe-sub-menu-item {
	padding-right: 0;
	padding-left: 0;
}

.pv-footer-contact p {
	margin: 0 0 22px;
}

.pv-footer-contact p:last-child {
	margin-bottom: 0;
}

.pv-footer-legal-text p {
	margin: 0;
}

.pv-footer-legal a {
	color: var(--pv-cream);
	text-decoration: none;
}

.pv-footer-legal a:hover {
	color: var(--pv-gold);
}

/* -------------------------------------------------------------------------
   7. Encabezados dentro de widgets Heading de Elementor
   Elementor aplica a TODO widget Heading la tipografia global "Primary"
   (Minerva 68px) sin mirar la etiqueta, y eso pisa el Theme Style del kit
   (que si distingue h1..h6). Estas reglas restituyen el comportamiento por
   etiqueta con los MISMOS valores del kit, y siguen siendo pisables por los
   ajustes de cada widget (que tienen mas especificidad).
   ------------------------------------------------------------------------- */

.elementor-widget-heading h1.elementor-heading-title {
	color: var(--pv-white);
	font-family: var(--pv-font-heading);
	font-size: 68px;
	font-weight: 400;
	line-height: 1em;
}

.elementor-widget-heading h2.elementor-heading-title {
	color: var(--pv-navy);
	font-family: var(--pv-font-heading);
	font-size: 48px;
	font-weight: 400;
	line-height: 1.083em;
}

.elementor-widget-heading h3.elementor-heading-title {
	color: var(--pv-gold);
	font-family: var(--pv-font-heading);
	font-size: 36px;
	font-weight: 400;
	line-height: 1.111em;
}

.elementor-widget-heading h4.elementor-heading-title {
	color: var(--pv-navy);
	font-family: var(--pv-font-heading);
	font-size: 28px;
	font-weight: 400;
	line-height: 1.15em;
}

.elementor-widget-heading h5.elementor-heading-title {
	color: var(--pv-gold);
	font-family: var(--pv-font-heading);
	font-size: 24px;
	font-weight: 400;
	line-height: 1.292em;
}

.elementor-widget-heading h6.elementor-heading-title {
	color: var(--pv-gold);
	font-family: var(--pv-font-heading);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.3em;
}

/* Escalado de titulos en pantallas chicas. Los comps son solo de escritorio
   (1980px): estos tamanios son una derivacion de build, no un valor medido. */
@media (max-width: 1024px) {
	.elementor-widget-heading h1.elementor-heading-title { font-size: 52px; }
	.elementor-widget-heading h2.elementor-heading-title { font-size: 38px; }
	.elementor-widget-heading h3.elementor-heading-title { font-size: 30px; }
}

@media (max-width: 767px) {
	.elementor-widget-heading h1.elementor-heading-title { font-size: 38px; }
	.elementor-widget-heading h2.elementor-heading-title { font-size: 30px; }
	.elementor-widget-heading h3.elementor-heading-title { font-size: 24px; }
}

/* -------------------------------------------------------------------------
   8. Guardas de overflow horizontal
   ------------------------------------------------------------------------- */

html,
body {
	overflow-x: hidden;
	max-width: 100%;
}

.pv-footer-legal-text p {
	overflow-wrap: break-word;
	word-break: break-word;
}
