/*
 Theme Name:   Divi Child
 Theme URI:    https://www.polyuprotec.com/
 Description:  Tema hijo de Divi para Polyuprotec S.A. Aqui vive el codigo propio (GTM) para que sobreviva a las actualizaciones del tema Divi.
 Author:       Polyuprotec S.A.
 Author URI:   https://www.polyuprotec.com/
 Template:     Divi
 Version:      1.0.0
*/

/* =========================================================
   Modernizacion visual del sitio (conserva 100% colores,
   logo, tipografia y contenido existentes).
   Solo retoca forma: bordes, sombras, espaciados, hover.
   ========================================================= */

/* =========================================================
   Menu principal: desplegable moderno tipo tarjeta, se abre
   con click (no con hover) y se cierra al hacer click afuera.
   Los enlaces "Empresa/Servicios/Proyectos/Recursos" no tenian
   pagina propia (href="#"), por eso convertirlos en botones de
   apertura no quita ninguna navegacion existente.
   ========================================================= */

/* Desactiva la apertura por hover */
#top-menu-nav .nav > li.menu-item-has-children:hover > ul.sub-menu {
	opacity: 0 !important;
	visibility: hidden !important;
}

/* Panel desplegable con look de tarjeta moderna */
#top-menu-nav .nav > li.menu-item-has-children > ul.sub-menu {
	border-top: none;
	border-radius: 16px;
	border: 1px solid rgba(0,0,0,0.08);
	box-shadow: 0 14px 34px rgba(0,0,0,0.14);
	padding: 8px;
	margin-top: 14px;
	transform: translateY(-8px);
	transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}
#top-menu-nav .nav > li.menu-item-has-children.menu-open > ul.sub-menu {
	opacity: 1 !important;
	visibility: visible !important;
	transform: translateY(0);
}
#top-menu-nav .nav li ul.sub-menu li {
	padding: 0 !important;
	margin: 0 !important;
}
#top-menu-nav .nav li ul.sub-menu li a {
	width: auto !important;
	padding: 11px 14px !important;
	border-radius: 10px;
	font-size: 13.5px;
	transition: background-color 0.15s ease;
}
#top-menu-nav .nav li ul.sub-menu li a:hover {
	background-color: rgba(0,0,0,0.045) !important;
	opacity: 1 !important;
}

/* Flecha que gira al abrir, como un acordeon moderno */
#top-menu .menu-item-has-children > a:first-child:after {
	transition: transform 0.25s ease;
}
#top-menu > li.menu-item-has-children.menu-open > a:first-child:after {
	transform: rotate(180deg);
}

/* Encabezado fijo: sombra sutil al pegarse arriba al hacer scroll */
#main-header.et-fixed-header {
	box-shadow: 0 2px 16px rgba(0,0,0,0.1) !important;
}

/* Botones tipo pildora, con leve sombra y transicion suave (igual a
   referencias del sector: Laminaire/Armametal) */
.et_pb_button {
	border-radius: 999px !important;
	padding-left: 1.6em !important;
	padding-right: 1.6em !important;
	box-shadow: 0 4px 14px rgba(0,0,0,0.12);
	transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.et_pb_button:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.18);
	filter: brightness(1.08);
}

/* Tarjetas de texto+icono (blurbs): aire, sombra suave y hover sutil */
.et_pb_blurb {
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	border-radius: 10px;
}
.et_pb_blurb:hover {
	transform: translateY(-4px);
}
.et_pb_blurb_content {
	border-radius: 10px;
}

/* Icono del blurb en circulo con fondo suave, como en Laminaire/Armametal */
.et_pb_blurb .et_pb_main_blurb_image {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.25s ease, transform 0.25s ease;
}
.et_pb_blurb:not(.et_pb_blurb_position_left) .et_pb_main_blurb_image {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: currentColor;
	margin-left: auto;
	margin-right: auto;
}
.et_pb_blurb:not(.et_pb_blurb_position_left) .et_pb_main_blurb_image .et-pb-icon,
.et_pb_blurb:not(.et_pb_blurb_position_left) .et_pb_main_blurb_image img {
	position: relative;
}
.et_pb_blurb:not(.et_pb_blurb_position_left) .et_pb_main_blurb_image::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.1;
}
.et_pb_blurb:hover .et_pb_main_blurb_image {
	transform: scale(1.06);
}

/* Linea de acento bajo los titulos de seccion, como en ambas referencias */
.et_pb_section > .et_pb_row > .et_pb_column > .et_pb_module.et_pb_text:first-child h2,
.et_pb_section > .et_pb_row > .et_pb_column > .et_pb_text:first-child h2 {
	position: relative;
	padding-bottom: 14px;
	display: inline-block;
}
.et_pb_section > .et_pb_row > .et_pb_column > .et_pb_module.et_pb_text:first-child h2::after,
.et_pb_section > .et_pb_row > .et_pb_column > .et_pb_text:first-child h2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 54px;
	height: 3px;
	border-radius: 2px;
	background: currentColor;
	opacity: 0.55;
}

/* Imagenes con esquinas suaves y zoom sutil al pasar el mouse */
.et_pb_image,
.et_pb_gallery_image {
	overflow: hidden;
	border-radius: 8px;
}
.et_pb_image img,
.et_pb_post_content img,
.et_pb_gallery img {
	border-radius: 8px;
	transition: transform 0.45s ease;
}
.et_pb_image:hover img,
.et_pb_gallery_image:hover img {
	transform: scale(1.05);
}

/* Scroll suave al navegar con anclas */
html {
	scroll-behavior: smooth;
}

/* =========================================================
   Pagina Contacto (page-id-5763): mismo contenido y datos,
   presentacion en tarjetas, mas profesional y ordenada.
   ========================================================= */

/* Encabezado de cada columna (la pregunta) */
.page-id-5763 .et_pb_row_2 .et_pb_column_4 > .et_pb_text:first-child p,
.page-id-5763 .et_pb_row_2 .et_pb_column_5 > .et_pb_text:first-child p {
	font-size: 19px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	padding-bottom: 12px;
	margin-bottom: 18px;
	border-bottom: 2px solid rgba(0,0,0,0.08);
}

/* Cada bloque "titulo (h1) + datos" se ve como una sola tarjeta */
.page-id-5763 .et_pb_row_2 .et_pb_column_4 .et_pb_text:has(h1),
.page-id-5763 .et_pb_row_2 .et_pb_column_5 .et_pb_text:has(h1) {
	background: #fff;
	border: 1px solid rgba(0,0,0,0.08);
	border-bottom: none;
	border-radius: 10px 10px 0 0;
	padding: 14px 16px 6px 16px;
	margin-bottom: 0 !important;
	box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.page-id-5763 .et_pb_row_2 .et_pb_column_4 .et_pb_text:has(h1) h1,
.page-id-5763 .et_pb_row_2 .et_pb_column_5 .et_pb_text:has(h1) h1 {
	font-size: 15px;
	line-height: 1.3;
	margin: 0;
}
.page-id-5763 .et_pb_row_2 .et_pb_column_4 .et_pb_text:has(h1) + .et_pb_text,
.page-id-5763 .et_pb_row_2 .et_pb_column_5 .et_pb_text:has(h1) + .et_pb_text {
	background: #fff;
	border: 1px solid rgba(0,0,0,0.08);
	border-top: none;
	border-radius: 0 0 10px 10px;
	padding: 6px 16px 16px 16px;
	margin-top: 0 !important;
	margin-bottom: 22px !important;
	box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.page-id-5763 .et_pb_row_2 .et_pb_column_4 .et_pb_text:has(h1) + .et_pb_text p,
.page-id-5763 .et_pb_row_2 .et_pb_column_5 .et_pb_text:has(h1) + .et_pb_text p {
	font-size: 13.5px;
	line-height: 1.6;
	margin: 0 0 6px 0;
	text-align: left;
}
.page-id-5763 .et_pb_row_2 .et_pb_column_4 .et_pb_text:has(h1) + .et_pb_text a,
.page-id-5763 .et_pb_row_2 .et_pb_column_5 .et_pb_text:has(h1) + .et_pb_text a {
	word-break: break-word;
}

/* El bloque de texto que queda suelto despues de la ultima tarjeta
   (ej. "ENVIE SU HOJA DE VIDA") tambien se ve como tarjeta completa */
.page-id-5763 .et_pb_row_2 .et_pb_column_4 .et_pb_code,
.page-id-5763 .et_pb_row_2 .et_pb_column_5 .et_pb_code {
	display: none;
}

/* El formulario de contacto: tarjeta clara con sombra, mas aire */
.page-id-5763 #et_pb_contact_form_0.et_pb_contact_form_container {
	background: #fff;
	border: 1px solid rgba(0,0,0,0.08) !important;
	border-radius: 14px;
	padding: 28px 30px;
	box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}
.page-id-5763 .et_pb_row_2 .et_pb_column_6 .et_pb_text_19 p {
	font-size: 20px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	margin-bottom: 4px;
}
.page-id-5763 .et_pb_row_2 .et_pb_column_6 .et_pb_text_20 p {
	color: #666;
	margin-bottom: 18px;
}

/* Formularios (campos de contacto): mas aire, bordes redondeados */
.et_pb_contact_form input[type="text"],
.et_pb_contact_form input[type="email"],
.et_pb_contact_form input[type="tel"],
.et_pb_contact_form textarea,
.et_pb_contact_form select {
	border-radius: 6px !important;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.et_pb_contact_form input:focus,
.et_pb_contact_form textarea:focus,
.et_pb_contact_form select:focus {
	box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}

/* Jerarquia tipografica: mismo tipo de letra, mas legible y actual */
.et_pb_module h1,
.et_pb_module h2,
.et_pb_module h3 {
	letter-spacing: 0.2px;
	line-height: 1.25;
}
.et_pb_module p {
	line-height: 1.7;
}

/* =========================================================
   Footer global: mismo contenido, presentacion mas profesional
   ========================================================= */

/* Footer compacto: mismo contenido, mucho menos alto (estilo minimalista) */
.et-l--footer .et_pb_section_0_tb_footer {
	padding-top: 18px !important;
	padding-bottom: 8px !important;
}

/* Logo mas pequeno, acorde a un footer minimalista */
.et-l--footer .container-logo {
	margin-bottom: 4px;
	max-width: 140px;
}
.et-l--footer .container-logo img {
	max-width: 140px;
	height: auto;
}

/* Textos del footer (descripcion, navegacion, ubicacion): mas compactos */
.et-l--footer .et_pb_row_0_tb_footer .et_pb_text_inner p,
.et-l--footer .et_pb_row_0_tb_footer .et_pb_text_inner h3 {
	font-size: 13px;
	line-height: 1.4;
	margin: 0 0 4px 0;
}
.et-l--footer .et_pb_row_0_tb_footer .et_pb_text_inner h3 {
	font-size: 14px;
	margin-bottom: 6px;
}

/* Enlaces de navegacion del footer: hover mas claro */
.et-l--footer .enlace .et_pb_text_inner p a {
	display: inline-block;
	transition: opacity 0.2s ease, letter-spacing 0.2s ease;
	opacity: 0.85;
}
.et-l--footer .enlace .et_pb_text_inner p a:hover {
	opacity: 1;
	letter-spacing: 0.3px;
}

/* Fila de politicas: estilo de "barra legal" compacta */
.et-l--footer .container-politicas {
	border-top: 1px solid rgba(255,255,255,0.15);
	border-bottom: 1px solid rgba(255,255,255,0.15);
	padding-top: 5px;
	padding-bottom: 5px;
}
.et-l--footer .container-politicas .et_pb_text_inner p {
	font-size: 10.5px;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	opacity: 0.75;
	margin: 2px 0;
	transition: opacity 0.2s ease;
}
.et-l--footer .container-politicas:hover .et_pb_text_inner p {
	opacity: 0.6;
}
.et-l--footer .container-politicas .et_pb_column:hover .et_pb_text_inner p {
	opacity: 1;
}

/* Iconos sociales: circulos pequenos, como un footer minimalista */
.et-l--footer .icon-grid {
	padding-top: 5px;
	padding-bottom: 2px;
}
.et-l--footer .icon-grid .et_pb_icon {
	display: flex;
	justify-content: center;
}
.et-l--footer .icon-grid .et_pb_icon_wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(255,255,255,0.08);
	transition: background 0.25s ease, transform 0.25s ease;
}
.et-l--footer .icon-grid .et_pb_icon_wrap .et-pb-icon {
	font-size: 14px !important;
}
.et-l--footer .icon-grid .et_pb_icon_wrap:hover {
	background: rgba(255,255,255,0.18);
	transform: translateY(-2px);
}

/* Barra final de copyright: texto mas chico y menos aire */
.et-l--footer .et_pb_row:last-child .et_pb_text_inner p {
	font-size: 11px;
	margin: 1px 0;
	opacity: 0.8;
}
