@import url('https://fonts.googleapis.com/css2?family=Cabin:wght@400;500;600;700&display=swap');

:root {
    --azul: #005EB8;
    --azul-2: #0D68C2;
    --azul-3: #002554;
    --celeste: #00A9E0;
    --celeste-2: #00A9E0;
    --turquesa: #40C1AC;
    --turquesa-2: #007672;
    --turquesa-3: #00C4AC;
    --naranja: #FF8200;
    --gris-texto: #737373;
    --gris-texto-2: #959595;
    --blanco: #FFFFFF;
    --gris-suave: #f6f8f9;
    --cafe: #7D3F16;
    --cafe-2: #6E6259;
    --negro: #000000;


    --fuente-base: 'Cabin', sans-serif;
}

/* Contenedor principal */
.calculator-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    overflow: hidden;
    font-family: var(--fuente-base);
    background-color: var(--blanco);
    transition: all 0.3s ease;
}

/* Formulario */
.crfc-calculator-form {
    background-color: var(--turquesa);
    padding: 40px 100px;
    width: 50%;
    min-width: 300px;
    color: var(--blanco);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.crfc-calculator-form label {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--blanco);
}

.crfc-calculator-form .form-control {
    width: 100%;
    padding: 12px;
    margin-bottom: 8px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    color: var(--celeste);
    background-color: var(--blanco);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease-in-out;
}

.crfc-calculator-form .form-control:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--celeste-2);
}

.crfc-calculator-form button {
    width: 100%;
    background-color: var(--azul);
    color: var(--blanco);
    padding: 14px;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 20px;
}

.crfc-calculator-form button:hover {
    background-color: var(--celeste-2);
    color: var(--blanco);
    transform: translateY(-2px);
}

/* Resultados */
.crfc-result {
    width: 50%;
    min-width: 300px;
    background-color: var(--gris-suave);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    position: relative;
    color: var(--gris-texto);
    text-align: center;
}

.crfc-result h2 {
    color: var(--gris-texto);
    font-size: 24px;
    margin-bottom: 12px;
}

.crfc-result h3.crfc-fee {
    color: var(--azul);
    font-size: 40px;
    font-weight: 700;
    margin: 10px 0 20px;
}

.crfc-result .crfc-rate,
.crfc-result .crfc-maxamount,
.crfc-result .crfc-tita {
    font-size: 16px;
    color: var(--azul);
    margin-bottom: 10px;
    transition: opacity 0.3s ease;
}

.crfc-result span {
    font-weight: bold;
    color: var(--azul);
}

.crfc-block {
    background-color: var(--blanco);; /* fondo gris muy suave */
    border-radius: 30px;
    padding: 20px;
    margin-bottom: 16px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.crfc-label {
    font-size: 20px;
    font-weight: 600;
    color: var(--celeste);
    margin-bottom: 8px;
    text-align: left;
}

.crfc-value {
    font-size: 28px;
    font-weight: bold;
    color: var(--azul);
    text-align: left;
    margin: 0;
}

.crfc-fee {
    font-size: 38px;
    font-weight: bold;
    color: var(--azul);
    margin: 0 0 15px;
}

.crfc-value span {
    font-size: 28px;
    font-weight: bold;
    color: var(--azul);
}

.crfc-disclaimer {
    font-size: 12px;
    color: var(--gris-texto);
    text-align: justify;
    margin-top: auto;
    padding: 0 20px;
    opacity: 0.8;
}

/* Slider */
input[type="range"] {
    width: 100%;
    accent-color: var(--azul);
    box-shadow: none;
}

input[type="range"]:hover {
  outline: none;
  box-shadow: none;
}

/* Responsive */
@media (max-width: 768px) {
    .crfc-calculator-form,
    .crfc-result {
        width: 100%;
        padding: 30px 20px;
    }

    .calculator-container {
        flex-direction: column;
        border-radius: 30;
    }

    .crfc-result h3.crfc-fee {
        font-size: 32px;
    }
}

.crfc-calculator-form label i {
    color: var(--blanco);
    font-size: 16px;
    transition: color 0.3s ease;
}

.crfc-calculator-form label:hover i {
    color: var(--naranja);
}


.crfc-result i {
    color: var(--azul);
    font-size: 16px;
    transition: color 0.3s ease;
}

.crfc-result i:hover {
    color: var(--naranja);
}

/* Contenedor de cada campo */
.crfc-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.crfc-field label {
  font-weight: 600;
  margin-bottom: 8px;
  margin-left: 10px;
  color: var(--azul); /* usa tu color corporativo */
}

/* Wrapper que contiene icono + input */
.crfc-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

/* Icono dentro del campo */
.crfc-input-wrap i {
  position: absolute;
  left: -65px;
  color: var(--azul); /* azul corporativo */
  font-size: 30px;
  pointer-events: none; /* no bloquea clics en el select */
}

.crfc-button {
    background-color:var(--azul);  
    color:var(--blanco); 
}

input::placeholder {
  color: var(--celeste);   /* tu variable de color */
  opacity: 1;                 /* importante: algunos navegadores lo ponen semi-transparente */
}

.icon-category {
  display: inline-block;
  width: 50px;
  height: 50px;
  background-image: url('../images/ico_category.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-money {
  display: inline-block;
  width: 50px;
  height: 50px;
  background-image: url('../images/ico_money.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-term {
  display: inline-block;
  width: 50px;
  height: 50px;
  background-image: url('../images/ico_term.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-amount {
  display: inline-block;
  width: 50px;
  height: 50px;
  background-image: url('../images/ico_amount.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}