/* === Estilos Personalizados Optimización Visual === */

/* Tipografía y jerarquía */

h1, h2, h3 {

  font-weight: 700;

  color: #1a1a1a;

}

/* Fondo para secciones */

/* Botones */

.btn {

  transition: all 0.3s ease-in-out;

}

.btn:hover {

  transform: scale(1.03);

}

.btn-primary {

  background-color: #004085;

  border-color: #004085;

}

.btn-primary:hover {

  background-color: #003368;

  border-color: #002952;

}



/* Fondo blanco explícito para footer */

.footer-blanco {
  background-color: #ffffff !important;
}

.bg-white-section {
  background-color: #ffffff !important;
}


/* === Menú flotante de contacto (inferior derecha) === */
#contactMenu {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  left: auto !important;
  z-index: 10000 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
}

#contactToggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25D366;
  color: white;
  border: none;
  font-size: 26px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.3s ease;
}

#contactToggle:hover {
  transform: scale(1.1) rotate(10deg);
}

#contactOptions {
  /* Siempre presente para permitir transición */
  display: flex !important;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;

  margin-bottom: 10px;

  /* Oculto por defecto */
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  max-height: 0;
  overflow: hidden;

  transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease;
}

#contactOptions.show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  max-height: 500px;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #444;
  color: white;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.contact-btn:hover {
  transform: translateX(4px);
  opacity: 0.95;
}

.contact-whatsapp { background-color: #25D366; }
.contact-email    { background-color: #6F42C1; }
.contact-demo     { background-color: #8E4A9B; }


/* Utilidad accesibilidad */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Ajustes para conservar máscaras sin recortar imagen */

.custom-mask-img-2,
.custom-mask-img-3 {
  position: relative;
  border-radius: 20px;
  overflow: visible !important; /* evita el recorte */
  clip-path: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* mejora visual */
  z-index: 1;
}

.custom-mask-img-3 {
  margin-top: 1.5rem;
  transform: translateX(20px);
}


/* Ajuste visual sello 100% apego a la normativa */
.custom-el-1 p mark {
  font-size: 50px;  /* tamaño */
  line-height: 1;
}

.custom-el-1 em mark {
  font-size: 23px;   /* texto inferior */
  line-height: 1.2;
  opacity: 0.85;     /* saturación visual */
}

/* === accesibilidad + reduce motion === */
#contactToggle:focus-visible,
.contact-btn:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.55);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  #contactToggle,
  #contactOptions,
  .contact-btn,
  .btn {
    transition: none !important;
    animation: none !important;
  }
  #contactToggle:hover {
    transform: none !important;
  }
}


#contactToggle { pointer-events: auto; z-index: 100000; }
#contactOptions { z-index: 100000; }


@media (max-width: 576px) {
  #contactToggle { width: 64px; height: 64px; font-size: 28px; }
  .contact-btn { padding: 12px 18px; font-size: 15px; }
}

/* =========================================
   MÓDULOS - EXPERIENCIA SAAS PREMIUM
========================================= */

.modulo-premium {
	position: relative;
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	background: #ffffff;
	border: 1px solid rgba(27, 57, 106, 0.08);
	border-radius: 18px !important;
	padding: 18px 20px !important;
	min-height: 88px;
	box-shadow: 0 8px 24px rgba(20, 34, 66, 0.06);
	transition:
		transform 0.28s ease,
		box-shadow 0.28s ease,
		border-color 0.28s ease,
		background-color 0.28s ease;
	overflow: hidden !important;
}

.modulo-premium:hover,
.modulo-premium.activo {
	transform: translateY(-6px);
	box-shadow: 0 18px 38px rgba(20, 34, 66, 0.14);
	border-color: rgba(27, 57, 106, 0.18);
	background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
	text-decoration: none !important;
}

.modulo-premium .modulo-main {
	display: flex;
	align-items: center;
	gap: 14px;
	flex: 1;
	min-width: 0;
}

.modulo-premium .modulo-icono {
	width: 56px;
	height: 56px;
	min-width: 56px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f4f8fc;
	box-shadow: inset 0 0 0 1px rgba(27, 57, 106, 0.06);
	transition:
		transform 0.28s ease,
		background-color 0.28s ease,
		box-shadow 0.28s ease;
}

.modulo-premium:hover .modulo-icono,
.modulo-premium.activo .modulo-icono {
	transform: scale(1.06);
	background: #eaf2fb;
	box-shadow: inset 0 0 0 1px rgba(27, 57, 106, 0.10);
}

.modulo-premium .modulo-icono img {
	width: 34px;
	height: 34px;
	object-fit: contain;
}

.modulo-premium .modulo-texto {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.modulo-premium .modulo-titulo {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	color: #142241;
	margin: 0;
}

.modulo-premium .modulo-descripcion {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transform: translateY(6px);
	transition:
		max-height 0.32s ease,
		opacity 0.25s ease,
		transform 0.25s ease,
		margin-top 0.25s ease;
	margin-top: 0;
	font-size: 13px;
	line-height: 1.55;
	color: #53627c;
	padding-right: 10px;
}

.modulo-premium:hover .modulo-descripcion,
.modulo-premium.activo .modulo-descripcion {
	max-height: 120px;
	opacity: 1;
	transform: translateY(0);
	margin-top: 8px;
}

.modulo-premium .modulo-arrow {
	width: 34px;
	height: 34px;
	min-width: 34px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(27, 57, 106, 0.06);
	color: #1b396a;
	font-size: 14px;
	transition:
		transform 0.28s ease,
		background-color 0.28s ease;
}

.modulo-premium:hover .modulo-arrow,
.modulo-premium.activo .modulo-arrow {
	transform: rotate(45deg);
	background: rgba(27, 57, 106, 0.12);
}

#modulos .row,
#modulos .col-lg-4,
#modulos .d-grid {
	overflow: visible !important;
}

@media (max-width: 991px) {
	.modulo-premium {
		padding: 16px 18px !important;
		min-height: 84px;
	}

	.modulo-premium .modulo-titulo {
		font-size: 16px;
	}

	.modulo-premium .modulo-descripcion {
		font-size: 12.5px;
	}
}


.modulo-premium:hover .modulo-titulo,
.modulo-premium.activo .modulo-titulo {
	font-weight: 600;
	color: #1b396a;
}