/* calculadora.css */
.form-tasacion {
    max-width: 700px;
    margin: auto;
    background-color: #2e323e;
    padding: 25px;
    border-radius: 10px;
    color: white;
    font-family: 'Roboto', sans-serif;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.form-tasacion > * {
    width: 90%;
}

.form-tasacion h2 {
    font-family: 'PT Serif', serif;
    font-weight: 700;
    font-size: 22px;
    color: #c1a264;
    margin-bottom: 10px;
    text-align: center;
}

.form-tasacion label {
    display: block;
    font-weight: bold;
    color: #ffffff;
}

.form-tasacion label i {
    margin-right: 6px;
    color: #c1a264;
}

.form-tasacion input,
.form-tasacion select {
    width: 100%;
    padding: 10px;
    border: 1px solid #9aa6a0;
    background-color: #2e323e;
    color: white;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
}

.form-tasacion input::placeholder {
    color: #9aa6a0;
}

.grupo-checks,
.toggle-group,
.inline-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.inline-group > div,
.grupo-checks > label {
    flex: 1 1 calc(20% - 10px);
    min-width: 100px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Botones toggle ocupar mismo ancho */
.toggle-group.full .toggle-btn {
    flex: 1;
    text-align: center;
}

.toggle-btn {
    padding: 10px 0;
    border: 2px solid #9aa6a0;
    background-color: transparent;
    color: #9aa6a0;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    width: 100%;
}

.toggle-btn.active {
    background-color: #c1a264;
    color: #2e323e;
    border-color: #c1a264;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: #c1a264;
}

button[type="submit"] {
    background: #540b0e;
    color: white;
    font-weight: bold;
    border: none;
    padding: 14px;
    margin-top: 10px;
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'PT Serif', serif;
    transition: background 0.3s ease;
}

button[type="submit"]:hover {
    background: #6b1013;
}

.btn-inc, .btn-dec {
    padding: 6px 12px;
    font-weight: bold;
    background: #9aa6a0;
    border: none;
    border-radius: 4px;
    color: #2e323e;
    cursor: pointer;
}

.btn-inc:hover, .btn-dec:hover {
    background: #c1a264;
    color: #2e323e;
}

.ambiente-counter {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

#resultado-tasacion {
    font-size: 18px;
    font-weight: bold;
    color: #c1a264;
    margin-top: 20px;
    font-family: 'PT Serif', serif;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .toggle-group.full,
    .inline-group,
    .grupo-checks {
        flex-direction: column;
        align-items: stretch;
    }

    .toggle-group.full .toggle-btn,
    .inline-group > div,
    .grupo-checks > label {
        flex: 1 1 100%;
        min-width: unset;
    }

    .inline-group .form-group,
    .direccion-group .form-group,
    .adjuntos-group .form-group {
        flex: 1 1 100%;
    }

    .form-tasacion > * {
        width: 100%;
    }

    .row-direccion {
        flex-direction: column;
    }

    .campo-direccion,
    .campo-numero,
    .campo-piso,
    .campo-depto {
        flex: 1 1 100%;
    }
}

.row-direccion {
    display: flex;
    gap: 10px;
    width: 100%;
}

.campo-direccion {
    flex: 7;
}

.campo-numero {
    flex: 3;
}

.row-piso-depto {
    display: flex;
    gap: 10px;
    width: 100%;
}

.campo-piso,
.campo-depto {
    flex: 1;
}
.campo-direccion label,
.campo-numero label,
.campo-piso label,
.campo-depto label {
    display: block;
    width: 100%;
}

.campo-direccion input,
.campo-numero input,
.campo-piso input,
.campo-depto input {
    width: 100%;
}

@media screen and (max-width: 768px) {
  .grupo-checks {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .grupo-checks > label {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .grupo-checks > label input[type="checkbox"] {
    width: 30%;
    max-width: 40px;
    transform: scale(1.2);
  }

  .grupo-checks > label span {
    width: 70%;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
  }
}

.grupo-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.grupo-checks > label {
  flex: 1 1 calc(20% - 10px);
  display: flex;
  align-items: center;
  gap: 5px;
  color: white;
}

.grupo-checks > label i {
  color: #c1a264;
}

.grupo-checks > label span {
  display: inline-block;
}

/* Grupo Ambientes, Cochera y A estrenar - Escritorio */
.grupo-campos {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    justify-content: space-between;
}

.grupo-campos .form-group {
    flex: 1 1 calc(33.333% - 10px);
    min-width: 200px;
}

/* Versión móvil: mostrar cada uno en su fila */
@media screen and (max-width: 768px) {
    .grupo-campos {
        flex-direction: column;
    }

    .grupo-campos .form-group {
        flex: 1 1 100%;
        width: 100%;
    }
}


