/*
Theme Name: Hello Elementor Child
Theme URI: https://www.solucionweb.com/
Description: Tema hijo personalizado para Hello Elementor con login privado, reglas de acceso, botones flotantes configurables, WhatsApp y shortcodes básicos administrables.
Author: Solución Web
Author URI: https://www.solucionweb.com/
Template: hello-elementor
Version: 2.4.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: custom-login, translation-ready, elementor, child-theme
*/

/* Los estilos personalizados se cargan desde /assets/css/. */

.logo a img[src$=".svg"]{ width: 150px; }

html, body{
	overflow-x: hidden;
}


/* ---------- Menú ---------- */
/* Menú auto */
@media (min-width: 768px){
	.nav-auto ul.elementor-nav-menu {
		display: flex !important;
		justify-content: space-between !important;
		width: 100% !important;
	}

	.nav-auto ul.elementor-nav-menu > li {
		flex: 0 0 auto !important;
		width: max-content !important;
	}

	.nav-auto ul.elementor-nav-menu > li > a {
		display: inline-flex !important;
		width: max-content !important;
		white-space: nowrap !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
}
	
.nav-auto ul.elementor-nav-menu::after {
    display: none;
}

/* Tipografía */
/*
html, body, h1, h2, h3, h4, h5, h6, p, a, span, label, input, div:is-not(#wpadminbar), textarea, select, option, ul, ol, li, button{
	font-family: 'Inter', 'Poppins', 'Sans-serif' !important;
}
*/


/* Párrafos */
.p-no-bottom p:last-child{
	margin-bottom: 0;
}

.p-no-bottom-all p{
	margin-bottom: 0;
}


/* ---------- Fondo ken burns ---------- */
.bg-ken-burns .elementor-background-slideshow__slide__image {
    animation: kenBurnsUnico 15s linear infinite alternate !important;
}

@keyframes kenBurnsUnico {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.15);
    }
}



.bg-image-ken-burns {
    overflow: hidden !important;
}

.bg-image-ken-burns .elementor-background-overlay {
    animation: kenBurnsNativo 15s linear infinite alternate !important;
}

@keyframes kenBurnsNativo {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.15);
    }
}

/* ---------- Blogs ---------- */
.title-hover-zoom{
	transition: all .3s ease;
	&:hover{
		transform: scale(1.05);
	}
}

.post-title {
  display: -webkit-box;       
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-description{
  --lines: 4;
  white-space: normal;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--lines);
  line-clamp: var(--lines);
}

@supports not (-webkit-line-clamp: 1) {
  .post-description{
    display: block;
    line-height: 1.45;
    max-height: calc(1.45em * var(--lines));
  }
}

.margin-top-auto{
	margin-top: auto !important;
}


/* ---------- Formularios ---------- */

/* Textarea: sin resize */
.effect-label-form form textarea.effect-label-control {
  resize: none;
  padding-top: 15px;
}

.effect-label-form form {
  position: relative;
}

.effect-label-form form .effect-label-field {
  position: relative;
  margin-bottom: 1.25rem;
}

.effect-label-form form .effect-label-control {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding-bottom: 5px;
  padding-top: 15px;
}

/* Label flotando en el input */
.effect-label-form form .effect-label-label {
  position: absolute;
  left: 25px;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  line-height: 1.2;
  color: #777;
  pointer-events: none;
  transition: all 0.18s ease-out;
  margin: 0 !important;
  background: transparent;
  z-index: 1;
}

.effect-label-form form .effect-label-field.elementor-field-type-textarea .effect-label-label {
  top: 5% !important;
  transform: translateY(0) !important;
}

/* Estados de focus o con contenido */
.effect-label-form form .effect-label-field.is-focused .effect-label-label,
.effect-label-form form .effect-label-field.is-filled .effect-label-label,
.effect-label-form form .effect-label-field.filled .effect-label-label {
  top: 4px;
  transform: translateY(0);
  font-size: 0.6rem;
  z-index: 999;
}




/* ----- Carruseles ----- */
:root {
    --marquee-gap: 0px;
    --marquee-speed: 90s;
}

.marquee-box,
.marquee-box > .e-con,
.marquee-box > .e-con-inner,
.marquee-box > .e-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
    min-width: 100% !important;
    gap: var(--marquee-gap, 0px) !important;
}

.pista-marquee {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    flex-shrink: 0 !important;
    gap: var(--marquee-gap, 0px) !important;
    animation-name: m-left;
    animation-duration: var(--marquee-speed);
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.pista-marquee > * {
    flex: 0 0 auto !important;
    max-width: none !important;
}

.pista-marquee img {
    max-width: none !important;
    display: block !important;
}

@keyframes m-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% - var(--marquee-gap, 0px))); }
}

.marquee-box:hover .pista-marquee {
    animation-play-state: paused !important;
}

