/* ----- POLKA DOT GRID OVERLAY ----- */
html {
  overflow-x: hidden;
  scrollbar-color: #6a4bc8 #ffffff;
}

body {
  overflow-x: hidden;
  position: relative;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(rgba(26, 21, 48, 0.035) 9%, transparent 10%),
    radial-gradient(rgba(26, 21, 48, 0.035) 9%, transparent 10%);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
  z-index: 1;
  pointer-events: none;
}

.elementor-section,
.e-con,
.elementor-widget-wrap {
  position: relative;
  z-index: 2;
}

::selection {
  background-color: #6a4bc8;
  color: #ffffff;
}

.text-gradient {
  background: linear-gradient(135deg, var(--e-global-color-cbd6053) 0%, var(--e-global-color-d6ed465) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ----- CURSOR ----- */
.custom-cursor {
  width: 44px !important;
  height: 44px !important;
  border: 2px solid #6a4bc8 !important;
  background: transparent !important;
  border-radius: 50% !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  transform: translate(-50%, -50%);
  pointer-events: none !important;
  z-index: 99999 !important;
  opacity: 0.75;
  transition: width .3s cubic-bezier(.175, .885, .32, 1.275),
    height .3s cubic-bezier(.175, .885, .32, 1.275),
    background-color .3s ease, border-color .3s ease;
}

.custom-cursor-dot {
  width: 8px !important;
  height: 8px !important;
  background: #c2178a !important;
  border-radius: 50% !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  transform: translate(-50%, -50%);
  pointer-events: none !important;
  z-index: 99999 !important;
}

.custom-cursor.hovered {
  width: 64px !important;
  height: 64px !important;
  background: rgba(106, 75, 200, 0.08) !important;
  border-color: #c2178a !important;
}

@media (hover:none) {

  .custom-cursor,
  .custom-cursor-dot {
    display: none !important;
  }
}

.wpr-circle-menu-box li .wpr-circle-menu-item {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* ----- BURBUJAS ----- */
.l1-btn .elementor-button {
  position: relative;
  overflow: visible;
  cursor: pointer;
}

.l1-btn .elementor-button-content-wrapper {
  position: relative;
  z-index: 2;
}

.l1-btn .bubble {
  position: absolute;
  bottom: 10px;
  background: #6a4bc8;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: none;
}

.l1-btn .bubble:nth-child(even) {
  background: transparent;
  border: 2px solid #c2178a;
}

.l1-btn .elementor-button:hover .bubble {
  animation: bubbleUp 1.2s infinite ease-out;
}

@keyframes bubbleUp {
  0% {
    transform: translate(var(--drift-start, 0px), 0) scale(var(--start-scale, 0.3));
    opacity: 0;
    bottom: 10px;
  }

  20% {
    opacity: 0.8;
  }

  100% {
    transform: translate(var(--drift-end, 0px), -180px) scale(var(--end-scale, 1.2));
    opacity: 0;
  }
}

/* ----- DRIFTING BLOBS ----- */
.blob {
  filter: blur(64px);
  opacity: 0.3;
  animation: driftBlob 22s infinite alternate ease-in-out;
}

.delay-4 {
  animation-delay: -4s;
}

.delay-8 {
  animation-delay: -8s;
}

.delay-12 {
  animation-delay: -12s;
}

@keyframes driftBlob {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(50px, 30px) scale(1.1);
  }

  100% {
    transform: translate(-30px, -50px) scale(0.95);
  }
}

/* ----- INFINITE MARQUEE ----- */
.l1-marquee {
  width: max-content;
  animation: l1MarqueeScroll 30s linear infinite;
}

.l1-marquee span {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 2.4rem;
  font-weight: 700;
  padding-right: 0;
  color: #ffffff;
}

@keyframes l1MarqueeScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ----- SERVICIOS ----- */
.service-card:hover .service-icon {
  transform: rotate(5deg);
  background-image: linear-gradient(135deg, var(--e-global-color-cbd6053) 0%, var(--e-global-color-d6ed465) 100%);
}

.service-card:hover .service-icon svg,
.service-card:hover .service-icon svg path {
  fill: #ffffff;
}

/* ----- LABORATORIO ----- */
.elementor-widget-n-tabs .e-n-tab-title {
  border-radius: var(--n-tabs-title-border-radius) !important;
}

/* ----- CONTACTO (CF7) ----- */
.l1-form .wpcf7-form-control:not(.wpcf7-submit) {
  margin-bottom: 3%;
  border: 3px solid var(--e-global-color-accent);
  padding: 15px 20px;
  border-radius: 15px;
}

.l1-form select.wpcf7-form-control {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.l1-form .wpcf7-form-control::placeholder {
  color: #000000;
}

.l1-form textarea.wpcf7-form-control {
  resize: none;
}

.l1-form .wpcf7-submit {
  width: 100%;
  margin-top: 2%;
  padding: 15px 35px;
  border-radius: 100px !important;
  border: 3px solid var(--e-global-color-accent) !important;
  background: linear-gradient(135deg, var(--e-global-color-cbd6053) 0%, var(--e-global-color-d6ed465) 100%);
  color: #fff !important;
  font-size: var(--e-global-typography-19f589f-font-size) !important;
  font-weight: var(--e-global-typography-19f589f-font-weight) !important;
  font-style: var(--e-global-typography-19f589f-font-style) !important;
}

span.wpcf7-spinner {
  margin-top: 16px;
}

/* ----- BURBUJAS (CF7) ----- */
.l1-cf7-btn-wrap {
  position: relative;
  display: block;
  overflow: visible;
}

.l1-form .wpcf7-submit {
  position: relative;
  z-index: 3;
  overflow: visible;
  box-shadow: 0px 6px 0 #1A1530;
}

.l1-form .wpcf7-submit:hover {
  box-shadow: 0px 0px 0 #1A1530;
  transform: translate(0px, 3px);
}

.l1-cf7-btn-wrap .bubble {
  position: absolute;
  bottom: 10px;
  background: var(--c-purple, #6a4bc8);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: none;
}

.l1-cf7-btn-wrap .bubble:nth-child(even) {
  background: transparent;
  border: 2px solid var(--c-magenta, #c2178a);
}

.l1-cf7-btn-wrap:hover .bubble {
  animation: bubbleUp 1.2s infinite ease-out;
}

.wpr-circle-menu-box li {
  visibility: visible !important;
}