/*--------------------------------------------------------------
  *TODO lo relacionado con formularios
INPUTS
TEXTAREA
SELECT
LABELS
MENSAJES ERROR
VALIDACIONES
BOTONES FORMULARIOS
CAPTCHA
ALERTAS
LOADER
CONTENEDOR FORMULARIOS
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Contact-FORM
--------------------------------------------------------------*/
   /* Formulario*/
   .form-group-custom {
    position: relative;
}

.custom-input {
    border-radius: 12px;
    border: 1px solid #dcdcdc;
    padding: 14px 16px;
    min-height: 52px;
    transition: all .3s ease;
    font-size: 15px;
}

.custom-input:focus {
    border-color: #b51c1c;
    box-shadow: 0 0 0 0.2rem rgba(181, 28, 28, 0.15);
}

.custom-input.is-valid {
    border-color: #198754;
}

.custom-input.is-invalid {
    border-color: #dc3545;
}



.captcha-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 8px;
    display: block;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    flex-wrap: wrap;
}

.d-none {
    display: none;
} 


.alert-success {
    background: #e9f9ee;
    border: 1px solid #b7ebc6;
    color: #146c2e;
}

.alert-danger {
    background: #fff1f1;
    border: 1px solid #ffc9c9;
    color: #b42318;
}

/* Mensaje de Formulario*/


.alert-icon i {
    font-size: 42px;
    color: #28a745;
}

.alert-content h4 {
    margin: 0 0 5px;
    font-size: 30px;
    font-weight: 700;
    color: #14532d;
}

.alert-content p {
    margin: 0;
    color: #14532d;
    font-size: 17px;
}

.alert-danger {
    background: #fff1f1;
    border-left: 5px solid #dc3545;
}

.alert-danger h4,
.alert-danger p {
    color: #842029;
}

/*--------------------------------------------------------------
# MICROCRÉDITO
--------------------------------------------------------------*/
/* Botones alineados a la derecha */
.cta-buttons {
  display: flex;
  justify-content: flex-end; /* 👈 clave */
  gap: 10px;
}      
        

.btn-cta-primary {
  background: #0d6efd;
  color: #fff;
  padding: 10px 22px;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
}

.btn-cta-primary:hover {
  background: #084298;
}

.btn-cta-secondary {
  border: 2px solid #fff;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
}

.btn-cta-secondary:hover {
  background: #fff;
  color: #0d6efd;
}

/*--------------------------------------------------------------
# PAGAR-FORM
--------------------------------------------------------------*/

.pago-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 40px;
      align-items: center;
    }

    .pago-img img {
      width: 100%;
      border-radius: 12px;
    }

    .pago-form {
      background: #fff;
      padding: 30px;
      border-radius: 12px;
      box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    }

    .form-group {
      margin-bottom: 15px;
    }

    .form-row {
      display: flex;
      gap: 10px;
    }

    input, select {
      width: 100%;
      padding: 10px;
      border: 1px solid #ddd;
      border-radius: 6px;
    }

    .btn-primary {
      background: #28a745;
      color: #fff;
      padding: 12px;
      border: none;
      width: 100%;
      border-radius: 6px;
      cursor: pointer;
    }

/*--------------------------------------------------------------
# SIMULADOR-FORM
--------------------------------------------------------------*/
/*--radio button* --*/
.checkboxes-and-radios {
	 width: 320px;
	}

.checkboxes-and-radios input {
	 display: none;
	}

.checkboxes-and-radios label {
	 cursor: pointer;
	 padding-right: 10px;
	 position: relative;
	 display: block;
	 font-size: 14px;
	}

.checkboxes-and-radios input[type="radio"] {
	 position: absolute;
	 visibility: hidden !important;
	}

.checkboxes-and-radios input[type="radio"] + label:before,
.checkboxes-and-radios input[type="radio"] + label:after {
	 content: '';
	 position: absolute;
	 top: 50%;
	 margin-top: -7.5px;
	 box-sizing: border-box;
}

.checkboxes-and-radios input[type="radio"] + label:before {
	 width: 30px;
	 height: 15px;
	 right: 0px;
	 background: #fff;
	 border: 1px solid #e4e3e1;
	 border-radius: 15px;
	}

.checkboxes-and-radios input[type="radio"] + label:after {
	 width: 15px;
	 height: 15px;
	 right: 15px;
	 background: #BDBDBD;
	 border-radius: 50%;
	 -webkit-transition: all 200ms ease-out;
	 transition: all 200ms ease-out;
	}

.checkboxes-and-radios input[type="radio"]:checked + label:after {
	 right: 0px;
	 background: #337ab7; /*--olor del radio button seleccionado --*/
	}

	/*-- Estlo de las tablas de simulación del Crédito* --*/
#calculadora1 table td { padding: 7px; }

#calculadora1 input, input[type="button"] { height: 10px; }

#calculadora1 select { height: 10px; }

#calculadora1 #table-2 { font-size: 12px }

#calculadora1 #table-2 td { border: 1px solid gray }

#calculadora1 #table-2 th { background-color: #0d4393 ); }

#calculadora1 #table-2 caption { background-color: #0d4393; color: white }

	 /* CODIGO DE E*/
.label {
	   border: 1px solid #000;
	 }

.label-primary {
	 background-color: #337ab7;
	}

.label-primary[href]:hover,
.label-primary[href]:focus {
 background-color: #286090;
}
	
	/*--panel da--*/
#paneldat{
	border-bottom:3px double #e5e5e5;
	display:inline-block;
	font-size:18px}
}
	
.l5 {
	 font-size: 14px;
	 font-family: inherit;
	 text-align:left;
	 text-transform: uppercase;
}
	
/*--btn de calculadora--*/
.btn,
.btn-cal{
	font-size: 14px;
	text-align: center;
	background-color: #fe9580; 
	border-color: #f8674c; 
}
	
.btn-cal {
	background-image: -webkit-linear-gradient(top, #fe9580 0%, #d07c6b 100%);
	background-image: -o-linear-gradient(top, #fe9580 0%, #d07c6b 100%);
	background-image: -webkit-gradient(linear, left top, left bottom, from(#fe9580), to(#d07c6b));
	background-image: linear-gradient(to bottom, #fe9580 0%, #d07c6b 100%);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fc8f7c', endColorstr='#d07c6b', GradientType=0);
	filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
	background-repeat: repeat-x;
	border-color: #f8674c;
}

.btn-cal:hover,
.btn-cal:focus {
	 background-color: #fe9580;
	 border-color: #f8674c;
	 background-position: 0 -15px;
}
	
.btn-cal:active,
.btn-cal.active {
	background-color: #fe9580;
	border-color: #f8674c;
	 -webkit-box-shadow: inset 0 3px 5px rgba(255, 255, 255, 0.15);
	 box-shadow: inset 0 3px 5px rgba(255, 255, 255, 0.15);
}

.btn-cal
	{
	text-shadow: 0 -1px 0 rgba(0, 0, 0, .2);
	-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);
	}

.btn-cal:disabled,
.btn-cal[disabled] {
	background-color: #fe9580;
	border-color: #f8674c;
	background-image: none;
}

.btn-cal:hover,
.btn-cal:focus {
	background-color: #fe9580;
	border-color: #f8674c;
	background-position: 0 -15px;
}

.btn-cal:active,
.btn-cal.active {
	background-color: #fe9580;
	border-color: #f8674c;
}

.btn-cal:disabled,
.btn-cal[disabled] {
    background-color: #d07c6b;
	border-color: #fe9580;
	background-image: none;
}

.btn-cal .badge {
	text-shadow: none;
}

/*--------------------------------------------------------------
# SOLICITUD-FORM
--------------------------------------------------------------*/

.form-title {
  font-weight: 600;
  margin-bottom: 15px;
  color: #0d6efd;
}

.form-control {
  border-radius: 6px;
  padding: 10px;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.btn-enviar {
  background: linear-gradient(135deg, #0d6efd, #0b5ed7);
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;   
}
 
.is-invalid {
  border: 2px solid #dc3545;
}

.is-valid {
  border: 2px solid #198754;
}

.alert-custom {
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
  background: #f8f9fa;
}

.alert-success {
  background: #d1e7dd;
}

.alert-error {
  background: #f8d7da;
} 
  
/*--------------------------------------------------------------
# VACANTES-FORM
--------------------------------------------------------------*/
#vacantes img {
  max-height: 420px;
  object-fit: cover;
}

#vacantes .form-control {
  border-radius: 6px;
  padding: 10px;
}

#vacantes .form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.1);
}

#vacantes button {
 border-color: #106eea;  
 border-radius: 4px;
 font-weight: 600;
    border: 0;
    padding: 10px 30px;
    color: #fff;
    transition: 0.4s;
    border-radius: 4px;
}

/*--------------------------------------------------------------
# SIMULADOR-FORM
--------------------------------------------------------------*/

/* CONTENEDOR */
.simulador-container {
  background: #f4f7fb;
  padding: 40px 20px;
}

/* TARJETA */
.simulador-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  max-width: 900px;
  margin: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* TÍTULOS */
.simulador-title {
  font-weight: 700;
  margin-bottom: 5px;
}

.simulador-subtitle {
  color: #777;
  margin-bottom: 25px;
}

/* INPUTS */
.form-control {
  border-radius: 8px;
  height: 55px;
  border: 1px solid #ddd;
  transition: all 0.3s;
}

.form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.1);
}

/* LABEL FLOTANTE */
.form-floating {
  margin-bottom: 20px;
  position: relative;
}

/* INPUT CON MONEDA */
.input-group-modern {
  position: relative;
}

.input-group-modern .currency {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
  color: #555;
}

.input-group-modern input {
  padding-left: 40px;
}

/* BOTÓN */
.btn-calcular {
  width: 100%;
  height: 55px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #fff;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-calcular:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,123,255,0.3);
}

.resultado-card {
  background: #fff;
  border-radius: 16px;
  padding: 25px;
  margin-top: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.resultado-header {
  border-bottom: 1px solid #eee;
  margin-bottom: 15px;
  padding-bottom: 10px;
}

.table-modern {
  border-radius: 10px;
  overflow: hidden;
}

.table-modern thead {
  background: #0d6efd;
  color: white;
}

.table-modern tbody tr:hover {
  background: #f5f9ff;
}

.mensaje-exito {
  margin-top: 20px;
}

.mensaje-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #eef6f8;
  border-radius: 12px;
  padding: 25px;
  border-left: 6px solid #2e7d32;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.icono {
  font-size: 50px;
  color: #2e7d32;
  background: #e0f2e9;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contenido h3 {
  margin: 0;
  color: #1b5e20;
  font-weight: 600;
}

.contenido p {
  margin: 5px 0;
  color: #555;
}

.detalle {
  margin-top: 10px;
  font-size: 14px;
  color: #333;
}

.oculto {
  display: none;
}

#respuesta {
    display: none;
    margin-top: 15px;
      }


#respuesta {
  display: none;
  margin-top: 20px;
  font-family: 'Segoe UI', sans-serif;
}

.alert-custom {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 20px;
  border-radius: 10px;
  animation: fadeIn 0.5s ease;
}


.alert-success {
  background: #f0f9f4;
  border-left: 5px solid #28a745;
}

.alert-error {
  background: #fff5f5;
  border-left: 5px solid #dc3545;
}

.alert-icon {
  font-size: 28px;
}


.alert-success .alert-icon {
  color: #28a745;
}


.alert-error .alert-icon {
  color: #dc3545;
}

.alert-content h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.alert-content p {
  margin: 5px 0 0;
  font-size: 14px;
  color: #555;
}


.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap; /* para responsive */
  margin-top: 15px;
}

.g-recaptcha {
  transform: scale(0.95);
  transform-origin: left;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding: 15px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e3e6ea;
}

.btn-enviar {
  background: #0d6efd;
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: 500;
  transition: 0.3s;
}

.btn-enviar {
  background: linear-gradient(135deg, #0d6efd, #0b5ed7);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(13, 110, 253, 0.2);
}

.btn-enviar:hover {
  background: #0b5ed7;
}
.btn-enviar:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(13, 110, 253, 0.3);
}