/* ============================================
   ESTILO COMPLETO DEL FORMULARIO - LANDING PAGE
   ============================================ */

/* ======= Labels ======= */
.landing-form .wpcf7-form label {
  display: block;
  font-weight: 700;
  color: #002147;
  margin-bottom: 0px; /* menos espacio bajo el label */
  margin-top: 0px;    /* menos espacio arriba del label */
}

/* Si el tema usa contenedores de grupo anidados para quitar padding */
.landing-form .wp-block-group .wp-block-group {
  padding-top: 0;
  padding-bottom: 0;
}

/* ======= Inputs y textarea ======= */
.landing-form .wpcf7-form input[type="text"],
.landing-form .wpcf7-form input[type="email"],
.landing-form .wpcf7-form input[type="tel"],
.landing-form .wpcf7-form textarea {
  width: 100%;
  padding: 4px 5px;            /* reduce altura interna */
  border: 4px solid #002147;    /* borde azul marino */
  border-radius: 6px;
  box-sizing: border-box;
  transition: 0.3s;
  margin-bottom: 1px;           /* reduce espacio entre campos */
}

/* ======= Foco (cuando el usuario escribe) ======= */
.landing-form .wpcf7-form input[type="text"]:focus,
.landing-form .wpcf7-form input[type="email"]:focus,
.landing-form .wpcf7-form input[type="tel"]:focus,
.landing-form .wpcf7-form textarea:focus {
  border-color: #004080; /* azul más intenso */
  box-shadow: 0 0 4px rgba(0, 33, 71, 0.25);
  outline: none;
}

/* ======= Ajuste global de párrafos del formulario ======= */
.landing-form .wpcf7-form p {
  margin: 1px 0; /* reduce el espacio vertical entre bloques <p> */
  padding: 0;
}

/* ======= Botón principal ======= */
.landing-form .wpcf7-form input[type="submit"] {
  background-color: #ff0033;      /* azul marino */
  color: #ffffff;                 /* texto blanco */
  font-weight: 700;
  font-size: 18px;
  text-transform: none;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;             /* tamaño más compacto */
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: 0 3px 8px rgba(0, 33, 71, 0.3);
  margin-top: 12px !important;               /* pequeño margen superior */
}

/* ======= Hover (al pasar el cursor) ======= */
.landing-form .wpcf7-form input[type="submit"]:hover {
  background-color: #AB0325;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 33, 71, 0.4);
}

/* ======= Active (cuando se hace clic) ======= */
.landing-form .wpcf7-form input[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0, 33, 71, 0.3);
}

/* ================================
   REDUCCIÓN DE ALTURA DEL CONTENEDOR INTERNO
   SOLO EN LA LANDING PAGE
   ================================ */

.landing-form .wp-block-group,
.landing-form .wp-block-group__inner-container,
.landing-form .wpcf7 {
  min-height: auto !important;   /* elimina la altura mínima */
  height: auto !important;       /* asegura altura automática */
  line-height: 1.2;              /* compacta el espaciado del texto */
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Ajusta altura interna de los campos */
.landing-form .wpcf7-form input[type="text"],
.landing-form .wpcf7-form input[type="email"],
.landing-form .wpcf7-form input[type="tel"],
.landing-form .wpcf7-form textarea {
  height: 40px;           /* altura total del campo */
  line-height: 1.1;       /* compacta texto dentro del input */
  padding-top: 4px;
  padding-bottom: 4px;
}

/* Ajusta etiquetas para reducir su altura visual */
.landing-form .wpcf7-form label {
  line-height: 1.2;
  margin-top: 1px;
  margin-bottom: 1px;
}

/* Compacta espacio del párrafo contenedor */
.landing-form .wpcf7-form p {
  margin: 2px 0;
  padding: 0;
}

/* Desplazamiento suave al hacer clic en anclas internas */
html {
  scroll-behavior: smooth;
}

/* Color de fondo para la primera fila de la tabla de la Página de Aviso de Privacidad */
.tabla-aviso tr:first-child td,
.tabla-aviso tr:first-child th {
  background-color: #cce9ff; /* azul cielo */
  font-weight: 600;           /* (opcional) negrita */
}

/* ============================
   ELIMINAR ESPACIOS ENTRE BLOQUES — LANDING PAGE
   ============================ */

/* Elimina márgenes entre bloques */
.registro-landing * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

/* Elimina padding entre bloques */
.registro-landing .wp-block-group,
.registro-landing .wp-block-group > * {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding: 0 !important;
}

/* Elimina GAPS generados por el editor */
.registro-landing .wp-block-group,
.registro-landing .wp-block-columns,
.registro-landing .wp-block-column {
  gap: 0 !important;
  row-gap: 0 !important;
  column-gap: 0 !important;
}

/* Elimina alturas mínimas del tema */
.registro-landing .wp-block-group,
.registro-landing .wp-block-group > * {
  min-height: 0 !important;
  height: auto !important;
}

/* =============================
   FORMULARIO SUPER COMPACTO
   ============================= */

/* Compactar los párrafos que envuelven cada campo */
.registro-landing .wpcf7-form p {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  line-height: 1.0 !important; /* compacta el espacio interno */
}

/* Compactar las etiquetas */
.registro-landing .wpcf7-form label {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.0 !important;
  height: 22px !important;
  min-height: 22px !important;
  display: block !important;
}

/* Altura exacta de inputs */
.registro-landing .wpcf7-form input[type="text"],
.registro-landing .wpcf7-form input[type="email"],
.registro-landing .wpcf7-form input[type="tel"] {
  height: 35px !important; /* TU RANGO: entre 15–20–22 px */
  min-height: 35px !important;
  padding: 2px 4px !important;
  line-height: 1.0 !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

/* Altura del textarea */
.registro-landing .wpcf7-form textarea {
  height: 30px !important;   /* compactado */
  min-height: 30px !important;
  line-height: 1.0 !important;
  padding: 2px 4px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* Ajuste para el contenedor WP */
.registro-landing .wp-block-group,
.registro-landing .wp-block-group > * {
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1.0 !important;
}

/* ==============================
   CONTACTO — Heading
   ============================== */

.dc-heading-contact .uagb-heading-text {
    font-family: 'Poppins', sans-serif !important;
    font-size: 40px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    line-height: 1.2 !important;
}

/* ==============================
   CONTACTO — Texto descriptivo
   ============================== */

.dc-text-contact .uagb-desc-text {
    font-family: 'Rubik', sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #555555 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 1.6 !important;
}
