/* ==========================================
   CÁPSULA FLOTANTE DE NAVEGACIÓN (GLASSMORPHISM)
   ========================================== */

body.admin-bar .l-header, 
body.admin-bar header.l-header {
  top: 47px !important;
}

.l-header, 
header.l-header {
  position: fixed !important;
  top: 15px !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Convierte la fila del medio en la cápsula flotante */
.l-header .l-subheader.at_middle {
  width: 85% !important;
  max-width: 950px !important;
  margin: 0 auto !important;
  background: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-radius: 50px !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
  padding: 0px 25px !important;
}

/* Estilo de los textos del menú */
.l-header .w-nav-anchor {
  font-weight: 700 !important;
  font-size: 15px !important;
  color: #0f172a !important;
  transition: color 0.2s ease !important;
}

.l-header .w-nav-anchor:hover,
.l-header .menu-item.current-menu-item > .w-nav-anchor {
  color: #00b4d8 !important;
}




/* ==========================================
   FORMULARIO TRANSPARENTE, CÁPSULAS E ICONOS
   ========================================== */

div.wpcf7 form.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 12px !important;
}

div.wpcf7 form.wpcf7-form .campo-con-icono {
  position: relative !important;
  width: 100% !important;
  margin: 0 !important;
}

/* Iconos de los campos de texto dentro de las cápsulas */
div.wpcf7 form.wpcf7-form .campo-con-icono::before {
  position: absolute !important;
  left: 18px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 14px !important;
  z-index: 3 !important;
  pointer-events: none !important;
  line-height: 1 !important;
}

div.wpcf7 form.wpcf7-form .campo-con-icono:nth-child(2)::before { content: "👤"; }
div.wpcf7 form.wpcf7-form .campo-con-icono:nth-child(3)::before { content: "✉️"; }
div.wpcf7 form.wpcf7-form .campo-con-icono:nth-child(4)::before { content: "📞"; }
div.wpcf7 form.wpcf7-form .campo-con-icono:nth-child(5)::before { content: "📝"; }

/* Campos con diseño neón, bordes redondeados y espacio para el icono */
div.wpcf7 form.wpcf7-form input[type="text"],
div.wpcf7 form.wpcf7-form input[type="email"],
div.wpcf7 form.wpcf7-form input[type="tel"],
div.wpcf7 form.wpcf7-form input[type="url"],
div.wpcf7 form.wpcf7-form input[type="number"],
div.wpcf7 form.wpcf7-form textarea,
.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-email,
.wpcf7-form-control.wpcf7-tel,
.wpcf7-form-control.wpcf7-textarea {
  width: 100% !important;
  background: rgba(0, 212, 255, 0.08) !important;
  border: 1.5px solid #00d4ff !important;
  border-radius: 14px !important;
  padding: 12px 16px 12px 48px !important;
  color: #ffffff !important;
  font-size: 15px !important;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.4), inset 0 0 8px rgba(0, 212, 255, 0.15) !important;
  outline: none !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

/* Color para los textos de placeholder */
div.wpcf7 form.wpcf7-form input::placeholder,
div.wpcf7 form.wpcf7-form textarea::placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
}

/* Efecto al hacer clic/focus en los campos */
div.wpcf7 form.wpcf7-form input:not([type="submit"]):focus,
div.wpcf7 form.wpcf7-form textarea:focus {
  border-color: #00d4ff !important;
  background: rgba(0, 212, 255, 0.12) !important;
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.7), inset 0 0 12px rgba(0, 212, 255, 0.3) !important;
}

/* Botón de envío estilizado */
div.wpcf7 form.wpcf7-form input[type="submit"] {
  background: linear-gradient(135deg, #0070f3, #00d4ff) !important;
  color: #ffffff !important;
  padding: 12px 20px !important;
  border-radius: 50px !important;
  border: none !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  width: 100% !important;
  box-shadow: 0 4px 15px rgba(0, 112, 243, 0.4) !important;
  margin-top: 6px !important;
}

div.wpcf7 form.wpcf7-form input[type="submit"]:hover {
  opacity: 0.9 !important;
}

/* ==========================================
   AJUSTE DEL LOGO DENTRO DE LA CÁPSULA
   ========================================== */

.l-header .l-subheader.at_middle {
  min-height: 0 !important;
  height: auto !important;
}

.l-header .l-subheader.at_middle .l-subheader-cell {
  align-items: center !important;
}

/* Contenedor y tamaño del logo */
.l-header .w-image.with_img,
.l-header .w-image {
  height: auto !important;
  margin: 0 !important;
}

.l-header .w-image img,
.l-header .w-image-h img {
  height: 65px !important;
  width: auto !important;
  max-height: 65px !important;
  object-fit: contain !important;
  display: block !important;
}

/* ==========================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================== */

a.oltp-whatsapp {
  position: fixed !important;
  right: 20px !important;
  bottom: 20px !important;
  width: 85px !important;
  height: 85px !important;
  z-index: 9998 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
  line-height: 0 !important;
  transition: transform 0.2s ease !important;
}

a.oltp-whatsapp img {
  width: 85px !important;
  height: 85px !important;
  min-width: 85px !important;
  max-width: none !important;
  max-height: none !important;
  display: block !important;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)) !important;
}

a.oltp-whatsapp:hover {
  transform: scale(1.1) !important;
}

/* Laptops: un poco más pequeño y pegado a la esquina */
@media (max-width: 1500px) {
  a.oltp-whatsapp {
    right: 8px !important;
    bottom: 8px !important;
    width: 70px !important;
    height: 70px !important;
  }
  a.oltp-whatsapp img {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
  }
}

/* Celulares */
@media (max-width: 600px) {
  a.oltp-whatsapp {
    right: 10px !important;
    bottom: 10px !important;
    width: 64px !important;
    height: 64px !important;
  }
  a.oltp-whatsapp img {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
  }
}

/* ==========================================
   OCULTAR BADGE DE RECAPTCHA
   ========================================== */

.grecaptcha-badge {
  visibility: hidden !important;
}

/* ==========================================
   QUITAR FRANJA BLANCA BAJO EL FOOTER
   ========================================== */
.l-footer,
.l-footer .l-section,
.l-footer .l-section-h,
.l-footer .g-cols,
.l-footer .wpb_wrapper,
.l-footer .w-html,
.l-footer .vc_row {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Si queda algo de margen, que se funda con el azul del footer */
.l-footer,
.l-footer .l-section {
  background-color: #021a4a !important;
}