/* widgets.css — estilos de componentes JS (slideshow, modal, whatsapp, loader, scroll)
   No redefine la base del tema; solo lo que el JS necesita. */

/* ---------- Reveal: .inv nunca debe dejar contenido invisible ---------- */
.inv { visibility: visible !important; }

/* ---------- Hero background slideshow ---------- */
.hero-slideshow { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero-slide {
	position: absolute; inset: 0;
	background-size: cover;
	background-position: center center;
	opacity: 0;
	transition: opacity 1.5s ease;
}
.hero-slide.is-active { opacity: 1; animation: kbZoom 9s ease-out forwards; }
@keyframes kbZoom { from { transform: scale(1); } to { transform: scale(1.08); } }

/* ---------- Fancy text ---------- */
.ea-fancy-text-strings { display: inline-block; }
.ea-fancy-text-strings.sw { animation: ftUp .55s ease; }
@keyframes ftUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- Modal (sina -> sn) ---------- */
.sn-modal-overlay { display: none; }
.sn-modal-overlay.is-open { display: flex; }
.sn-modal-box.is-open .sn-modal-overlay { display: flex; }

/* ---------- WhatsApp ---------- */
.wa-widget { position: fixed; left: 24px; bottom: 24px; z-index: 9990; }
.wa-button {
	display: flex; align-items: center; justify-content: center;
	width: 56px; height: 56px; border: 0; border-radius: 50%;
	background: #25d366; box-shadow: 0 4px 16px rgba(0,0,0,.25);
	cursor: pointer; transition: transform .2s;
	/* icono oficial de Joinchat (la var la define core.css) */
	background-image: var(--joinchat-ico);
	background-position: center; background-repeat: no-repeat;
	background-size: 32px;
}
.wa-button svg { display: none; } /* el glyph va por background */
.wa-button:hover { transform: scale(1.08); }
.wa-chat {
	position: absolute; left: 0; bottom: 70px; width: 300px;
	background: #fff; border-radius: 12px; overflow: hidden;
	box-shadow: 0 10px 30px rgba(0,0,0,.2);
	opacity: 0; visibility: hidden; transform: translateY(10px);
	transition: .25s;
}
.wa-widget.is-open .wa-chat { opacity: 1; visibility: visible; transform: none; }
.wa-chat-header {
	display: flex; justify-content: space-between; align-items: center;
	background: #075e54; color: #fff; padding: 14px 16px; font-family: 'Noto Sans', sans-serif;
}
.wa-close { background: none; border: 0; color: #fff; font-size: 20px; cursor: pointer; }
.wa-chat-body { padding: 18px 16px; background: #e5ddd5; }
.wa-chat-body p { background: #fff; padding: 12px 14px; border-radius: 8px; font-size: 14px; margin: 0; }
.wa-chat-footer { padding: 12px 16px; }
.btn-wa {
	display: block; text-align: center; padding: 12px;
	background: #25d366; color: #fff; border-radius: 5px;
	font-weight: 700; text-decoration: none;
}
.btn-wa:hover { background: #1da851; color: #fff; }

/* ---------- Scroll top (generado por JS) ---------- */
.scrolltop {
	position: fixed; right: 24px; bottom: 24px; z-index: 9980;
	width: 46px; height: 46px; border: 0; border-radius: 50%;
	background: #ff6000; color: #fff; font-size: 18px; line-height: 1;
	cursor: pointer; opacity: 0; visibility: hidden; transition: .3s;
}
.scrolltop.show { opacity: 1; visibility: visible; }
.scrolltop:hover { background: #030252; }

/* ---------- Carrusel (slick -> slider propio) ---------- */
.carousel-wrap { position: relative; overflow: hidden; }
.carousel-track { display: flex; transition: transform .8s ease; }
.carousel-track > .item_pos { flex: 0 0 calc(100% / var(--show, 3)); box-sizing: border-box; }
.carousel-btn {
	position: absolute; top: 50%; transform: translateY(-50%);
	z-index: 10; width: 42px; height: 42px;
	border: 0; border-radius: 50%;
	background: #ff6000; color: #fff; font-size: 18px;
	cursor: pointer; opacity: .9; transition: .2s;
}
.carousel-btn:hover { opacity: 1; background: #030252; }
.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }
@media (max-width: 767px) {
	.carousel-track > .item_pos { flex-basis: 100%; }
}

/* ---------- Nav: hfe lo mostraba vía JS, lo forzamos visible ---------- */
.nvmenu { display: flex; }

/* ---------- Imágenes de sección (single_image) ---------- */
.single_image img { display: block; width: 100%; }

/* ---------- Acordeones: la animación la maneja site.js (height transition) ---------- */

/* ---------- Formulario de contacto: aviso de estado ---------- */
.contact-form-status:empty { display: none; }
.contact-form-status {
	margin: 0 auto 14px; max-width: 420px; padding: 10px 14px;
	border-radius: 6px; font-size: 14px; text-align: center;
}
.contact-form-status.is-ok { background: #e8f7ee; color: #1d7a3f; border: 1px solid #bfe6cc; }
.contact-form-status.is-error { background: #fdecec; color: #b33838; border: 1px solid #f3c0c0; }

/* ---------- (el logo partner es parte del fondo HOME1-IMG-23.jpg) ---------- */

/* ---------- Logo partner del footer ---------- */
/* ---------- (el logo partner es parte del fondo HOME1-IMG-23.jpg) ---------- */
/* ---------- Nav móvil (generado por JS) ---------- */
.nav-burger {
	display: none; position: absolute; right: 18px; top: 50%;
	transform: translateY(-50%);
	background: none; border: 0; cursor: pointer; padding: 8px; z-index: 1000;
}
.nav-burger i, .nav-burger i::before, .nav-burger i::after {
	display: block; width: 26px; height: 3px; background: #222429;
	border-radius: 2px; transition: .25s; content: "";
}
.nav-burger i { position: relative; }
.nav-burger i::before { position: absolute; top: -8px; }
.nav-burger i::after { position: absolute; top: 8px; }
.nav-burger.open i { background: transparent; }
.nav-burger.open i::before { transform: translateY(8px) rotate(45deg); }
.nav-burger.open i::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 991px) {
	.nav-burger { display: block; }
	.nvmenu { display: none !important; }
	.nvmenu.nav-open { display: block !important; }
	.nvmenu.nav-open > ul { flex-direction: column; }
	.nvmenu.nav-open li { display: block; width: 100%; }
	.nvmenu.nav-open .sub-menu {
		position: static !important;
		opacity: 1 !important; visibility: visible !important;
		transform: none !important;
		display: none;
		box-shadow: none;
	}
	.nvmenu.nav-open li.open > .sub-menu { display: block; }
}
