/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/
/* =========================================
   CONTACT FORM 7 - SALIENT (WPBAKERY)
   (desktop + responsive)
========================================= */

/* Opcional: si tu formulario está dentro de una columna, esto evita que "toque" bordes */
.wpcf7 {
  width: 100%;
}

/* CONTENEDOR DEL FORMULARIO */
.wpcf7 form {
  background: #ffffff;
  padding: 32px;
  border-radius: 24px;
  max-width: 500px;
  margin: 0 auto;
  font-family: inherit;

  min-height: 480px;      /* alto base en desktop */
  height: auto;           /* crece con errores */
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
}

/* LABELS */
.wpcf7 label {
  display: block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
	padding-bottom: 15px !important;
  color: #6b6b6b;
  margin-bottom: 20px !important;
  text-transform: none;   /* por si Salient fuerza mayúsculas */
}

/* INPUTS Y TEXTAREA (forzados para que Salient no los cambie) */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #d9d9d9;
  font-size: 12px;
  line-height: 1.2;
  outline: none;
  transition: border-color 0.2s ease;
margin-top:12px; 
  background: #ffffff !important;  /* CLAVE en Salient */
  box-shadow: none !important;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

/* FOCUS */
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-color: #000000;
}

/* ESPACIADO ENTRE CAMPOS */
.wpcf7 .wpcf7-form-control-wrap {
  margin-bottom: 18px;
  display: block;
}

/* TEXTAREA */
.wpcf7 textarea {
  flex: 1;
  resize: none;
  min-height: 140px;
}

/* BOTÓN */
.wpcf7 input[type="submit"] {
  width: 100%;
  background-color: #1d403c;
  color: #f3ece0;
  border: none;
  border-radius: 999px;
  padding: 14px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;

  margin-top: 16px;
  margin-bottom: 8px;

  box-shadow: none !important;
}

/* HOVER BOTÓN */
.wpcf7 input[type="submit"]:hover {
  background: #c7b38a;
  transform: translateY(-1px);
}

/* MENSAJES DE ERROR (debajo de cada campo) */
.wpcf7-not-valid-tip {
  display: block;
  font-size: 12px;
  margin-top: 6px;
  color: #c0392b;
}

/* MENSAJE GENERAL (éxito/error) */
.wpcf7-response-output {
  border: none !important;
  margin-top: 12px;
  font-size: 14px;
  padding: 0 !important;
}

/* =========================================
   RESPONSIVE - MÓVIL (Salient/WPBakery)
========================================= */
@media (max-width: 768px) {

  /* evita que quede pegado a los bordes */
  .wpcf7 {
    padding: 0 16px;
  }

  .wpcf7 form {
    max-width: 100%;
    min-height: 0;        /* sin altura fija en móvil */
    padding: 20px;
    border-radius: 18px;
  }

  .wpcf7 label {
    font-size: 11px;
    letter-spacing: 0.10em;
    margin-bottom: 8px;
  }

  /* iPhone: 16px evita zoom al enfocar */
  .wpcf7 input[type="text"],
  .wpcf7 input[type="email"],
  .wpcf7 textarea {
    font-size: 16px !important;
    padding: 12px 14px;
    border-radius: 12px;
    background: #ffffff !important; /* mantiene blanco en móvil */
  }

  .wpcf7 textarea {
    min-height: 160px;
  }

  .wpcf7 .wpcf7-form-control-wrap {
    margin-bottom: 14px;
  }

  .wpcf7 input[type="submit"] {
    font-size: 15px;
    padding: 14px;
    margin-top: 12px;
    margin-bottom: 0;
  }

  .wpcf7-response-output {
    font-size: 13px;
    margin-top: 10px;
  }
}



.esparati{
	line-height: 25px !important; 
	font-size: 20px !important;
}





/* =========================================
   CÓDIGO FINAL: FORMULARIO LIMPIO Y CENTRADO
   ========================================= */

/* 1. CONTENEDOR PRINCIPAL: Transparente y Centrado Flexible */
.pum-theme-lightbox .pum-content, 
.pum-content {
    background-color: transparent !important; /* Hace invisible la caja grande */
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}
    

/* 2. TU TARJETA DE FORMULARIO */
.mi-formulario-clean {
    background-color: #ffffff !important;
    border: 1px solid #d4c5b0 !important; /* Borde fino beige */
    padding: 30px !important; /* Espacio interno justo */
    width: 750px !important; /* Ancho fijo para que no se estire */   
	max-width: 98% !important; /* Para móviles */
    position: relative !important; /* Necesario para ubicar el botón cerrar */
    box-sizing: border-box !important;
}

/* 3. ETIQUETAS (Nombre, Email) - Color Verde Oscuro */
.mi-formulario-clean label {
    color: #0f3d3e !important; 
    font-weight: bold !important;
    font-size: 14px !important;
    margin-bottom: 5px !important;
    display: block !important;
    text-align: left !important;
}

/* 4. CAMPOS DE TEXTO - Fondo Gris */
.mi-formulario-clean input[type="text"],
.mi-formulario-clean input[type="email"] {
    background-color: #e9ecef !important;
    border: none !important;
    padding: 12px !important;
    margin-bottom: 15px !important; /* Espacio reducido entre campos */
    width: 100% !important;
    color: #333 !important;
    border-radius: 0 !important;
}

/* 5. BOTÓN DE ENVÍO - Marrón */
.mi-formulario-clean input[type="submit"] {
    background-color: #5e3032 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 0 !important;
    width: 100% !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    margin-top: 5px !important;
    cursor: pointer;
    border-radius: 0 !important;
}

/* 6. BOTÓN "CERRAR" - Posicionado sobre la tarjeta */
/* NOTA: Esto mueve el botón "CERRAR" justo encima de tu tarjeta */
.pum-close.popmake-close {
    background-color: #5e3032 !important; /* Marrón */
    color: white !important;
    font-size: 12px !important;
    padding: 5px 5px !important;
    opacity: 1 !important;
    
    /* Posición exacta */
    position: absolute !important;
    top: -10px !important; /* Arriba de la tarjeta */
    right: 0 !important;   /* Alineado a la derecha de la tarjeta */
    left: auto !important;
    bottom: auto !important;
    
    box-shadow: none !important;
    text-shadow: none !important;
}

/* 7. LIMPIEZA TÉCNICA (Elimina espacios vacíos de Contact Form 7) */
.mi-formulario-clean p { margin: 0 !important; padding: 0 !important; }
.mi-formulario-clean br { display: none !important; }




body:not(.woocommerce-block-theme-has-button-styles) .wc-block-components-button:not(.is-link) {
	
	background-color: #1d403c!important;
}