body, .form-container, .form-container * {
    font-family: 'DM Sans', sans-serif !important;
}

.open-button {
    background-color: var(--maincolor);
    color: white;
    padding: 0 20px 0 17px;
    border: none;
    cursor: pointer;
    position: fixed;
    bottom: 30px;
    right: 103px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    height: 46px;
    line-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index:1000;
}
.open-button-cabezote {
    background: var(--maincolor);
    color: white;
    padding: 0px;
    border: none;
    cursor: pointer;
    bottom: 23px;
    right: 28px;
    border-radius: 15px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    height: 54px;
    line-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index:1000;
    width:135px;
}
.open-button i { margin-right: 8px; color: white; font-size: 34px; }
.open-button-cabezote i { margin-right: 7px; color: white; font-size: 34px; }
.open-button-cabezote p {
  font-size: 14px;
  line-height: 14px;
  margin-top: -1px;
  color: #fff;
  margin-bottom: 0;
  text-align: left;
}
.boton_asesoria_top { font-weight:400; }
.boton_asesoria_bottom {  font-weight:800; }
.open-button:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
    background-color: #1C2539;
}
.open-button-cabezote:hover {
    opacity: 1;
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
    background-color: #1C2539;
    transform: translateY(-2px);
}

.popup {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 10000;
}
.popup label { color:#1C2539; }

.form-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 340px;
    width: 92%;
    padding: 22px 18px 18px 18px;
    background-color: white;
    border-radius: 17px;
    box-shadow: 0 0 16px rgba(0,0,0,0.18);
}
.form-container h3 {
    margin-top: 0;
    margin-bottom: 14px;
    color: #1C2539;
    font-size: 20px;
    line-height: 22px;
    text-align: center;
    font-weight: 700;
}
.form-container label {
    color: #1C2539;
    font-size: 14px;
    line-height: 15px;
    margin-bottom: 2px;
    margin-top: 6px;
    display: block;
    font-weight: 500;
    padding: 0;
}
.form-container input[type=text],
.form-container input[type=email],
.form-container input[type=tel] {
    width: 100%;
    padding: 0.7rem 0.8rem !important;
    margin: 6px 0 6px;
    display: inline-block;
    border: 1px solid #ddd;
    box-sizing: border-box;
    border-radius: 7px;
    font-size: 15px;
    transition: border-color 0.3s ease;
    color: #1C2539;
}
/* Color del placeholder en todos los navegadores */
.form-container input::placeholder {
    color: #1C2539 !important;
    opacity: 1;
}
.form-container input::-webkit-input-placeholder { color: #1C2539 !important; }
.form-container input:-moz-placeholder { color: #1C2539 !important; }
.form-container input::-moz-placeholder { color: #1C2539 !important; }
.form-container input:-ms-input-placeholder { color: #1C2539 !important; }

.form-container input:focus {
    border-color: #DB0B00;
    outline: none;
}
.form-container .btn {
  background-color: var(--maincolor);
  color: white;
  padding: 12px 20px;
  margin: 12px 0 2px;
  border: none;
  cursor: pointer;
  width: max-content;
  opacity: 0.9;
  border-radius: 40px;
  font-size: 15px;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  display: block;
  margin: 10px auto 0;
}
.form-container .btn-enviar { background: #1C2539;
}
.form-container .btn-enviar:hover {  background: var(--maincolor);
}
.btn-enviar {
    width: 120px !important; /* Angosto */
    margin: 12px auto 2px auto !important;
    display: block !important;
    padding: 12px 0 !important;
    text-align: center !important;
}
.form-container .btn:hover,
.custom-file-label:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background-color: #1D1D1D;
}

/* --- Botón de adjuntar archivo igual al de enviar --- */
.custom-file-label {
    background-color: var(--maincolor);
    color: #fff !important;
    padding: 12px 0;
    border-radius: 40px;
    cursor: pointer;
    font-size: 15px;
    font-family: 'DM Sans', sans-serif !important;
    font-weight: bold;
    text-align: center;
    transition: background 0.2s, color 0.2s;
    border: none;
    outline: none;
    position: relative;
    width: 100%;
    margin-bottom: 10px;
    margin-top: 0;
    display: block;
}
.custom-file-label input[type="file"] {
    display: none;
}

.message {
    margin-top: 12px;
    padding: 8px;
    border-radius: 40px;
    font-weight: bold;
    text-align: center;
    font-size: 13px;
}
.success {
    background-color: #d4edda;
    color: #155724;
}
.error {
    background-color: #f8d7da;
    color: #721c24;
}
.close-btn {
    position: absolute;
    right: 14px;
    top: 10px;
    font-size: 36px;
    font-weight: bold;
    color: #bbb;
    cursor: pointer;
    transition: color 0.3s ease;
}
.close-btn:hover {
    color: #333;
}
#messageContainer { margin:0px; }
#messageContainer .message {
    padding: 8px;
    border-radius: 40px;
    font-weight: bold;
    text-align: center;
    font-size: 13px;
}
.form-container select {
    width: 100%;
    padding: 9px 14px;
    margin: 6px 0 12px;
    display: inline-block;
    border: 1px solid #ddd;
    box-sizing: border-box;
    border-radius: 40px;
    font-size: 15px;
    transition: border-color 0.3s ease;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 12px top 50%;
    background-size: 12px auto;
}
.form-container select:focus {
    border-color: #FF8C00;
    outline: none;
}

/* SOLO TEXTO, COLOR PERSONALIZADO, SIN FONDO NI BORDES */
#archivo-nombre {
    display: block;
    font-size: 14px;
    color: #1C2539 !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0;
    margin-bottom: 8px;
    margin-top: -3px;
    text-align: center;
    font-family: 'DM Sans', sans-serif !important;
    font-weight: normal;
    box-shadow: none !important;
}